From 4d204f056b41feec2e5f8d2136f1500131e81e69 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 27 Jul 2023 21:05:15 +0000 Subject: [PATCH 1/4] docs: Minor formatting PiperOrigin-RevId: 551578436 Source-Link: https://github.com/googleapis/googleapis/commit/3f1a96435c9373e9370f74d5130cee85b3e74c01 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a30fe8b64757be352378c412dc046bf6643b3a49 Copy-Tag: eyJwIjoiamF2YS10cmFuc2xhdGUvLk93bEJvdC55YW1sIiwiaCI6ImEzMGZlOGI2NDc1N2JlMzUyMzc4YzQxMmRjMDQ2YmY2NjQzYjNhNDkifQ== --- .../translate/v3/TranslationServiceGrpc.java | 1502 ------------ .../v3beta1/TranslationServiceGrpc.java | 1517 ------------- .../v3/CreateGlossaryRequestOrBuilder.java | 95 - .../v3/DeleteGlossaryRequestOrBuilder.java | 54 - .../v3/GetGlossaryRequestOrBuilder.java | 54 - .../translate/v3/TranslationServiceProto.java | 1021 --------- .../CreateGlossaryRequestOrBuilder.java | 95 - .../DeleteGlossaryRequestOrBuilder.java | 54 - .../v3beta1/GetGlossaryRequestOrBuilder.java | 54 - .../v3beta1/TranslationServiceProto.java | 1023 --------- .../v3/TranslationServiceClient.java | 2010 +++++++++++++++++ .../v3/TranslationServiceSettings.java | 375 +++ .../cloud/translate/v3/gapic_metadata.json | 48 + .../cloud/translate/v3/package-info.java | 46 + ...GrpcTranslationServiceCallableFactory.java | 113 + .../v3/stub/GrpcTranslationServiceStub.java | 548 +++++ ...JsonTranslationServiceCallableFactory.java | 105 + .../stub/HttpJsonTranslationServiceStub.java | 910 ++++++++ .../v3/stub/TranslationServiceStub.java | 143 ++ .../stub/TranslationServiceStubSettings.java | 868 +++++++ .../reflect-config.json | 1946 ++++++++++++++++ .../translate/v3/MockTranslationService.java | 59 + .../v3/MockTranslationServiceImpl.java | 271 +++ .../TranslationServiceClientHttpJsonTest.java | 1197 ++++++++++ .../v3/TranslationServiceClientTest.java | 1161 ++++++++++ .../google/cloud/location/LocationsGrpc.java | 308 +-- .../translate/v3/TranslationServiceGrpc.java | 1157 ++++++++++ .../v3/BatchDocumentInputConfig.java | 384 ++-- .../v3/BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3/BatchDocumentOutputConfig.java | 480 ++-- .../BatchDocumentOutputConfigOrBuilder.java | 50 +- .../v3/BatchTranslateDocumentMetadata.java | 782 +++---- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../v3/BatchTranslateDocumentRequest.java | 1846 ++++++--------- ...atchTranslateDocumentRequestOrBuilder.java | 263 +-- .../v3/BatchTranslateDocumentResponse.java | 712 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../translate/v3/BatchTranslateMetadata.java | 593 ++--- .../v3/BatchTranslateMetadataOrBuilder.java | 41 +- .../translate/v3/BatchTranslateResponse.java | 524 ++--- .../v3/BatchTranslateResponseOrBuilder.java | 43 +- .../v3/BatchTranslateTextRequest.java | 1742 ++++++-------- .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../translate/v3/CreateGlossaryMetadata.java | 565 ++--- .../v3/CreateGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/CreateGlossaryRequest.java | 492 ++-- .../v3/CreateGlossaryRequestOrBuilder.java | 56 + .../translate/v3/DeleteGlossaryMetadata.java | 565 ++--- .../v3/DeleteGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/DeleteGlossaryRequest.java | 347 ++- .../v3/DeleteGlossaryRequestOrBuilder.java | 29 + .../translate/v3/DeleteGlossaryResponse.java | 491 ++-- .../v3/DeleteGlossaryResponseOrBuilder.java | 43 +- .../translate/v3/DetectLanguageRequest.java | 868 +++---- .../v3/DetectLanguageRequestOrBuilder.java | 95 +- .../translate/v3/DetectLanguageResponse.java | 405 ++-- .../v3/DetectLanguageResponseOrBuilder.java | 36 +- .../cloud/translate/v3/DetectedLanguage.java | 346 ++- .../v3/DetectedLanguageOrBuilder.java | 30 +- .../translate/v3/DocumentInputConfig.java | 507 ++--- .../v3/DocumentInputConfigOrBuilder.java | 41 +- .../translate/v3/DocumentOutputConfig.java | 591 ++--- .../v3/DocumentOutputConfigOrBuilder.java | 71 +- .../translate/v3/DocumentTranslation.java | 477 ++-- .../v3/DocumentTranslationOrBuilder.java | 45 +- .../cloud/translate/v3/GcsDestination.java | 312 ++- .../translate/v3/GcsDestinationOrBuilder.java | 27 +- .../google/cloud/translate/v3/GcsSource.java | 309 ++- .../translate/v3/GcsSourceOrBuilder.java | 27 +- .../translate/v3/GetGlossaryRequest.java | 347 ++- .../v3/GetGlossaryRequestOrBuilder.java | 29 + .../v3/GetSupportedLanguagesRequest.java | 496 ++-- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../google/cloud/translate/v3/Glossary.java | 1764 ++++++--------- .../translate/v3/GlossaryInputConfig.java | 381 ++-- .../v3/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3/GlossaryName.java | 0 .../cloud/translate/v3/GlossaryOrBuilder.java | 97 +- .../cloud/translate/v3/InputConfig.java | 443 ++-- .../translate/v3/InputConfigOrBuilder.java | 35 +- .../translate/v3/ListGlossariesRequest.java | 524 ++--- .../v3/ListGlossariesRequestOrBuilder.java | 56 +- .../translate/v3/ListGlossariesResponse.java | 480 ++-- .../v3/ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3/LocationName.java | 0 .../cloud/translate/v3/OutputConfig.java | 371 ++- .../translate/v3/OutputConfigOrBuilder.java | 26 +- .../cloud/translate/v3/SupportedLanguage.java | 455 ++-- .../v3/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3/SupportedLanguages.java | 406 ++-- .../v3/SupportedLanguagesOrBuilder.java | 36 +- .../v3/TranslateDocumentRequest.java | 1435 +++++------- .../v3/TranslateDocumentRequestOrBuilder.java | 162 +- .../v3/TranslateDocumentResponse.java | 697 ++---- .../TranslateDocumentResponseOrBuilder.java | 63 +- .../v3/TranslateTextGlossaryConfig.java | 356 ++- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../translate/v3/TranslateTextRequest.java | 1153 ++++------ .../v3/TranslateTextRequestOrBuilder.java | 139 +- .../translate/v3/TranslateTextResponse.java | 549 ++--- .../v3/TranslateTextResponseOrBuilder.java | 54 +- .../cloud/translate/v3/Translation.java | 567 ++--- .../translate/v3/TranslationOrBuilder.java | 53 +- .../translate/v3/TranslationServiceProto.java | 879 +++++++ .../translate/v3/translation_service.proto | 18 +- .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...anguageLocationnameStringStringString.java | 0 ...etectLanguageStringStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationname.java | 0 .../SyncListGlossariesString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 ...slateTextLocationnameStringListstring.java | 0 ...ameStringStringStringStringListstring.java | 0 ...ncTranslateTextStringStringListstring.java | 0 ...ingStringStringStringStringListstring.java | 0 .../translatetext/SyncTranslateText.java | 0 .../v3beta1/TranslationServiceClient.java | 1790 +++++++++++++++ .../v3beta1/TranslationServiceSettings.java | 376 +++ .../translate/v3beta1/gapic_metadata.json | 48 + .../cloud/translate/v3beta1/package-info.java | 53 + ...GrpcTranslationServiceCallableFactory.java | 115 + .../stub/GrpcTranslationServiceStub.java | 556 +++++ ...JsonTranslationServiceCallableFactory.java | 105 + .../stub/HttpJsonTranslationServiceStub.java | 916 ++++++++ .../v3beta1/stub/TranslationServiceStub.java | 145 ++ .../stub/TranslationServiceStubSettings.java | 869 +++++++ .../reflect-config.json | 1946 ++++++++++++++++ .../v3beta1/MockTranslationService.java | 59 + .../v3beta1/MockTranslationServiceImpl.java | 271 +++ .../TranslationServiceClientHttpJsonTest.java | 1036 +++++++++ .../v3beta1/TranslationServiceClientTest.java | 1005 +++++++++ .../google/cloud/location/LocationsGrpc.java | 308 +-- .../v3beta1/TranslationServiceGrpc.java | 1157 ++++++++++ .../v3beta1/BatchDocumentInputConfig.java | 384 ++-- .../BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3beta1/BatchDocumentOutputConfig.java | 515 ++--- .../BatchDocumentOutputConfigOrBuilder.java | 56 +- .../BatchTranslateDocumentMetadata.java | 818 +++---- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../BatchTranslateDocumentRequest.java | 1860 ++++++--------- ...atchTranslateDocumentRequestOrBuilder.java | 258 +-- .../BatchTranslateDocumentResponse.java | 733 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../v3beta1/BatchTranslateMetadata.java | 596 ++--- .../BatchTranslateMetadataOrBuilder.java | 41 +- .../v3beta1/BatchTranslateResponse.java | 527 ++--- .../BatchTranslateResponseOrBuilder.java | 43 +- .../v3beta1/BatchTranslateTextRequest.java | 1746 ++++++-------- .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../v3beta1/CreateGlossaryMetadata.java | 568 ++--- .../CreateGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/CreateGlossaryRequest.java | 492 ++-- .../CreateGlossaryRequestOrBuilder.java | 56 + .../v3beta1/DeleteGlossaryMetadata.java | 568 ++--- .../DeleteGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/DeleteGlossaryRequest.java | 350 ++- .../DeleteGlossaryRequestOrBuilder.java | 29 + .../v3beta1/DeleteGlossaryResponse.java | 494 ++-- .../DeleteGlossaryResponseOrBuilder.java | 43 +- .../v3beta1/DetectLanguageRequest.java | 874 +++---- .../DetectLanguageRequestOrBuilder.java | 95 +- .../v3beta1/DetectLanguageResponse.java | 396 ++-- .../DetectLanguageResponseOrBuilder.java | 36 +- .../translate/v3beta1/DetectedLanguage.java | 353 ++- .../v3beta1/DetectedLanguageOrBuilder.java | 30 +- .../v3beta1/DocumentInputConfig.java | 507 ++--- .../v3beta1/DocumentInputConfigOrBuilder.java | 41 +- .../v3beta1/DocumentOutputConfig.java | 598 ++--- .../DocumentOutputConfigOrBuilder.java | 71 +- .../v3beta1/DocumentTranslation.java | 480 ++-- .../v3beta1/DocumentTranslationOrBuilder.java | 45 +- .../translate/v3beta1/GcsDestination.java | 319 ++- .../v3beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/translate/v3beta1/GcsSource.java | 312 ++- .../translate/v3beta1/GcsSourceOrBuilder.java | 27 +- .../translate/v3beta1/GetGlossaryRequest.java | 350 ++- .../v3beta1/GetGlossaryRequestOrBuilder.java | 29 + .../v3beta1/GetSupportedLanguagesRequest.java | 519 ++--- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../cloud/translate/v3beta1/Glossary.java | 1795 ++++++--------- .../v3beta1/GlossaryInputConfig.java | 381 ++-- .../v3beta1/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3beta1/GlossaryName.java | 0 .../translate/v3beta1/GlossaryOrBuilder.java | 100 +- .../cloud/translate/v3beta1/InputConfig.java | 440 ++-- .../v3beta1/InputConfigOrBuilder.java | 35 +- .../v3beta1/ListGlossariesRequest.java | 527 ++--- .../ListGlossariesRequestOrBuilder.java | 56 +- .../v3beta1/ListGlossariesResponse.java | 483 ++-- .../ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3beta1/LocationName.java | 0 .../cloud/translate/v3beta1/OutputConfig.java | 447 ++-- .../v3beta1/OutputConfigOrBuilder.java | 44 +- .../translate/v3beta1/SupportedLanguage.java | 459 ++-- .../v3beta1/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3beta1/SupportedLanguages.java | 396 ++-- .../v3beta1/SupportedLanguagesOrBuilder.java | 36 +- .../v3beta1/TranslateDocumentRequest.java | 1274 ++++------- .../TranslateDocumentRequestOrBuilder.java | 150 +- .../v3beta1/TranslateDocumentResponse.java | 747 +++--- .../TranslateDocumentResponseOrBuilder.java | 66 +- .../v3beta1/TranslateTextGlossaryConfig.java | 376 ++- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../v3beta1/TranslateTextRequest.java | 1157 ++++------ .../TranslateTextRequestOrBuilder.java | 142 +- .../v3beta1/TranslateTextResponse.java | 594 ++--- .../TranslateTextResponseOrBuilder.java | 51 +- .../cloud/translate/v3beta1/Translation.java | 595 ++--- .../v3beta1/TranslationOrBuilder.java | 56 +- .../v3beta1/TranslationServiceProto.java | 882 ++++++++ .../v3beta1/translation_service.proto | 28 +- .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...etectLanguageLocationnameStringString.java | 0 .../SyncDetectLanguageStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationnameString.java | 0 .../SyncListGlossariesStringString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 292 files changed, 43059 insertions(+), 38649 deletions(-) delete mode 100644 java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java delete mode 100644 java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java rename {java-translate => owl-bot-staging/java-translate/v3}/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java (77%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java (83%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java (66%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java (65%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java (60%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java (63%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java (80%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java (56%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java (64%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java (52%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java (63%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java (84%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java (86%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java (88%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java (94%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java (80%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java (65%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java (79%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto (99%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java (100%) create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java (77%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java (83%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java (80%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java (63%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java (65%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java (60%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java (63%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java (74%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java (80%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java (68%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java (56%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java (59%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java (52%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java (62%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java (85%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java (86%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java (85%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java (90%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java (74%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java (61%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java (85%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java (78%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto (98%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java (100%) diff --git a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java deleted file mode 100644 index 2d181242ce0a..000000000000 --- a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java +++ /dev/null @@ -1,1502 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.translate.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = - getTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = - getDetectLanguageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = - getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.SupportedLanguages - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = - getTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> - getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> - getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = - getBatchTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = - TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = - getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = - getCreateGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.CreateGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = - getListGlossariesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = - getGetGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.Glossary.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = - getDeleteGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DeleteGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText( - com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectLanguageMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGlossariesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public abstract static class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateTextResponse translateText( - com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.Glossary getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.TranslateTextResponse> - translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.DetectLanguageResponse> - detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.SupportedLanguages> - getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.TranslateDocumentResponse> - translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.ListGlossariesResponse> - listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.Glossary> - getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText( - (com.google.cloud.translate.v3.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage( - (com.google.cloud.translate.v3.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages( - (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument( - (com.google.cloud.translate.v3.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText( - (com.google.cloud.translate.v3.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument( - (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary( - (com.google.cloud.translate.v3.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries( - (com.google.cloud.translate.v3.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary( - (com.google.cloud.translate.v3.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary( - (com.google.cloud.translate.v3.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.CreateGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary>(service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DeleteGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private abstract static class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java deleted file mode 100644 index c3f4d6158c2e..000000000000 --- a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java +++ /dev/null @@ -1,1517 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.translate.v3beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = - getTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = - getDetectLanguageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = - getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.SupportedLanguages - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = - getTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = - getBatchTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = - TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = - getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = - getCreateGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = - getListGlossariesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3beta1.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = - getGetGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = - getDeleteGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectLanguageMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGlossariesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public abstract static class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.Glossary getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.TranslateTextResponse> - translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.SupportedLanguages> - getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.Glossary> - getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText( - (com.google.cloud.translate.v3beta1.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.TranslateTextResponse>) - responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage( - (com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.DetectLanguageResponse>) - responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages( - (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument( - (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>) - responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText( - (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument( - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary( - (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries( - (com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.ListGlossariesResponse>) - responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary( - (com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary( - (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary>(service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private abstract static class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index 7d76230e64de..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface CreateGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The glossary. - */ - com.google.cloud.translate.v3.Glossary getGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 10e9ed863205..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface DeleteGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index bddba5a37dcb..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface GetGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java deleted file mode 100644 index 51734e862e27..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java +++ /dev/null @@ -1,1021 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Translation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/translate/v3/translation_" - + "service.proto\022\033google.cloud.translation." - + "v3\032\034google/api/annotations.proto\032\027google" - + "/api/client.proto\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\032#g" - + "oogle/longrunning/operations.proto\032\037goog" - + "le/protobuf/timestamp.proto\"P\n\033Translate" - + "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" - + "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" - + "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" - + "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" - + "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" - + "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" - + "\n!locations.googleapis.com/Location\022\023\n\005m" - + "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" - + "\01328.google.cloud.translation.v3.Translat" - + "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" - + "\0132=.google.cloud.translation.v3.Translat" - + "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" - + "\n\025TranslateTextResponse\022>\n\014translations\030" - + "\001 \003(\0132(.google.cloud.translation.v3.Tran" - + "slation\022G\n\025glossary_translations\030\003 \003(\0132(" - + ".google.cloud.translation.v3.Translation" - + "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" - + "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" - + "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" - + "le.cloud.translation.v3.TranslateTextGlo" - + "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" - + "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" - + "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" - + "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" - + "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" - + "ation.v3.DetectLanguageRequest.LabelsEnt" - + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" - + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" - + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" - + "nguages\030\001 \003(\0132-.google.cloud.translation" - + ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" - + "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" - + "locations.googleapis.com/Location\022#\n\025dis" - + "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" - + "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" - + "guages\030\001 \003(\0132..google.cloud.translation." - + "v3.SupportedLanguage\"p\n\021SupportedLanguag" - + "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" - + "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" - + "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" - + "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" - + "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" - + "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" - + "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" - + "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" - + "estination\030\001 \001(\0132+.google.cloud.translat" - + "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" - + "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" - + "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" - + "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" - + "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" - + "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" - + "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" - + "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" - + "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" - + "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" - + "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" - + "\n\025document_input_config\030\004 \001(\01320.google.c" - + "loud.translation.v3.DocumentInputConfigB" - + "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." - + "google.cloud.translation.v3.DocumentOutp" - + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" - + "lossary_config\030\007 \001(\01328.google.cloud.tran" - + "slation.v3.TranslateTextGlossaryConfigB\004" - + "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" - + "slation.v3.TranslateDocumentRequest.Labe" - + "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" - + "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" - + "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" - + "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" - + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" - + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" - + "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" - + "nse\022N\n\024document_translation\030\001 \001(\01320.goog" - + "le.cloud.translation.v3.DocumentTranslat" - + "ion\022W\n\035glossary_document_translation\030\002 \001" - + "(\01320.google.cloud.translation.v3.Documen" - + "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" - + "config\030\004 \001(\01328.google.cloud.translation." - + "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" - + "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" - + "\001\002\372A#\n!locations.googleapis.com/Location" - + "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" - + "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" - + "els\030\004 \003(\0132B.google.cloud.translation.v3." - + "BatchTranslateTextRequest.ModelsEntryB\004\342" - + "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" - + "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" - + "tput_config\030\006 \001(\0132).google.cloud.transla" - + "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" - + "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" - + "chTranslateTextRequest.GlossariesEntryB\004" - + "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" - + "slation.v3.BatchTranslateTextRequest.Lab" - + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" - + "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" - + "oud.translation.v3.TranslateTextGlossary" - + "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" - + "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" - + "lation.v3.BatchTranslateMetadata.State\022\035" - + "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" - + "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" - + "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" - + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" - + "atchTranslateResponse\022\030\n\020total_character" - + "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" - + "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" - + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" - + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" - + "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " - + "\001(\0132&.google.cloud.translation.v3.GcsSou" - + "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" - + "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" - + ".cloud.translation.v3.Glossary.LanguageC" - + "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." - + "google.cloud.translation.v3.Glossary.Lan" - + "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." - + "google.cloud.translation.v3.GlossaryInpu" - + "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" - + "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" - + "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " - + "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" - + "language_code\030\001 \001(\t\022\034\n\024target_language_c" - + "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" - + "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" - + ".com/Glossary\022=projects/{project}/locati" - + "ons/{location}/glossaries/{glossary}B\013\n\t" - + "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" - + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" - + "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" - + "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" - + "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" - + "\372A#\n!translate.googleapis.com/Glossary\"Q" - + "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" - + "A\001\002\372A#\n!translate.googleapis.com/Glossar" - + "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " - + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" - + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" - + "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" - + "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" - + "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" - + "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" - + "\030\002 \001(\01629.google.cloud.translation.v3.Cre" - + "ateGlossaryMetadata.State\022/\n\013submit_time" - + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" - + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" - + "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" - + "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" - + "le.cloud.translation.v3.DeleteGlossaryMe" - + "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" - + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" - + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" - + "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" - + "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" - + "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" - + "!locations.googleapis.com/Location\022\"\n\024so" - + "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" - + "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" - + "figs\030\004 \003(\01325.google.cloud.translation.v3" - + ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" - + "t_config\030\005 \001(\01326.google.cloud.translatio" - + "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" - + "models\030\006 \003(\0132F.google.cloud.translation." - + "v3.BatchTranslateDocumentRequest.ModelsE" - + "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." - + "cloud.translation.v3.BatchTranslateDocum" - + "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" - + "at_conversions\030\010 \003(\0132Q.google.cloud.tran" - + "slation.v3.BatchTranslateDocumentRequest" - + ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" - + "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" - + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" - + "\01328.google.cloud.translation.v3.Translat" - + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" - + "rce\030\001 \001(\0132&.google.cloud.translation.v3." - + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" - + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" - + "ogle.cloud.translation.v3.GcsDestination" - + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" - + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" - + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" - + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" - + "_characters\030\005 \001(\003\022\035\n\025translated_characte" - + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" - + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" - + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" - + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" - + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" - + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" - + "on.v3.BatchTranslateDocumentMetadata.Sta" - + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" - + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" - + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" - + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" - + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" - + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" - + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" - + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" - + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" - + "TranslateText\0221.google.cloud.translation" - + ".v3.TranslateTextRequest\0322.google.cloud." - + "translation.v3.TranslateTextResponse\"\333\001\332" - + "A$parent,target_language_code,contents\332A" - + "Iparent,model,mime_type,source_language_" - + "code,target_language_code,contents\202\323\344\223\002b" - + "\"1/v3/{parent=projects/*/locations/*}:tr" - + "anslateText:\001*Z*\"%/v3/{parent=projects/*" - + "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." - + "google.cloud.translation.v3.DetectLangua" - + "geRequest\0323.google.cloud.translation.v3." - + "DetectLanguageResponse\"\213\001\332A\036parent,model" - + ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" - + "ojects/*/locations/*}:detectLanguage:\001*Z" - + "+\"&/v3/{parent=projects/*}:detectLanguag" - + "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." - + "cloud.translation.v3.GetSupportedLanguag" - + "esRequest\032/.google.cloud.translation.v3." - + "SupportedLanguages\"\221\001\332A\"parent,model,dis" - + "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" - + "ojects/*/locations/*}/supportedLanguages" - + "Z,\022*/v3/{parent=projects/*}/supportedLan" - + "guages\022\304\001\n\021TranslateDocument\0225.google.cl" - + "oud.translation.v3.TranslateDocumentRequ" - + "est\0326.google.cloud.translation.v3.Transl" - + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" - + "=projects/*/locations/*}:translateDocume" - + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" - + "oud.translation.v3.BatchTranslateTextReq" - + "uest\032\035.google.longrunning.Operation\"t\312A0" - + "\n\026BatchTranslateResponse\022\026BatchTranslate" - + "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" - + "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" - + "tchTranslateDocument\022:.google.cloud.tran" - + "slation.v3.BatchTranslateDocumentRequest" - + "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" - + "atchTranslateDocumentResponse\022\036BatchTran" - + "slateDocumentMetadata\332AMparent,source_la" - + "nguage_code,target_language_codes,input_" - + "configs,output_config\202\323\344\223\002?\":/v3/{parent" - + "=projects/*/locations/*}:batchTranslateD" - + "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" - + "loud.translation.v3.CreateGlossaryReques" - + "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" - + "lossary\022\026CreateGlossaryMetadata\332A\017parent" - + ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" - + "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" - + "stGlossaries\0222.google.cloud.translation." - + "v3.ListGlossariesRequest\0323.google.cloud." - + "translation.v3.ListGlossariesResponse\"?\332" - + "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" - + "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" - + ".google.cloud.translation.v3.GetGlossary" - + "Request\032%.google.cloud.translation.v3.Gl" - + "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" - + "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" - + "Glossary\0222.google.cloud.translation.v3.D" - + "eleteGlossaryRequest\032\035.google.longrunnin" - + "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" - + "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" - + "v3/{name=projects/*/locations/*/glossari" - + "es/*}\032~\312A\030translate.googleapis.com\322A`htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/clou" - + "d-translationB\321\001\n\035com.google.cloud.trans" - + "late.v3B\027TranslationServiceProtoP\001Z;clou" - + "d.google.com/go/translate/apiv3/translat" - + "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" - + "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" - + "gle::Cloud::Translate::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { - "Glossary", "IgnoreCase", - }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, - new java.lang.String[] { - "Contents", - "MimeType", - "SourceLanguageCode", - "TargetLanguageCode", - "Parent", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, - new java.lang.String[] { - "Translations", "GlossaryTranslations", - }); - internal_static_google_cloud_translation_v3_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Translation_descriptor, - new java.lang.String[] { - "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, - new java.lang.String[] { - "Parent", "Model", "Content", "MimeType", "Labels", "Source", - }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayLanguageCode", "Model", - }); - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", - }); - internal_static_google_cloud_translation_v3_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsSource_descriptor, - new java.lang.String[] { - "InputUri", - }); - internal_static_google_cloud_translation_v3_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_InputConfig_descriptor, - new java.lang.String[] { - "MimeType", "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsDestination_descriptor, - new java.lang.String[] { - "OutputUriPrefix", - }); - internal_static_google_cloud_translation_v3_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, - new java.lang.String[] { - "Content", "GcsSource", "MimeType", "Source", - }); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "MimeType", "Destination", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCode", - "DocumentInputConfig", - "DocumentOutputConfig", - "Model", - "GlossaryConfig", - "Labels", - "CustomizedAttribution", - "IsTranslateNativePdfOnly", - "EnableShadowRemovalNativePdf", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, - new java.lang.String[] { - "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, - new java.lang.String[] { - "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "Models", - "InputConfigs", - "OutputConfig", - "Glossaries", - "Labels", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, - new java.lang.String[] { - "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, - new java.lang.String[] { - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_descriptor, - new java.lang.String[] { - "Name", - "LanguagePair", - "LanguageCodesSet", - "InputConfig", - "EntryCount", - "SubmitTime", - "EndTime", - "DisplayName", - "Languages", - }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { - "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { - "LanguageCodes", - }); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, - new java.lang.String[] { - "Parent", "Glossary", - }); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, - new java.lang.String[] { - "Glossaries", "NextPageToken", - }); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { - "Name", "SubmitTime", "EndTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "InputConfigs", - "OutputConfig", - "Models", - "Glossaries", - "FormatConversions", - "CustomizedAttribution", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { - "State", - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index b9810ef60902..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface CreateGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The glossary. - */ - com.google.cloud.translate.v3beta1.Glossary getGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 153d3300edb2..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface DeleteGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index fda4692c0f60..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface GetGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java deleted file mode 100644 index d5ebbba25ba0..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java +++ /dev/null @@ -1,1023 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Translation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/translate/v3beta1/transla" - + "tion_service.proto\022 google.cloud.transla" - + "tion.v3beta1\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032#google/longrunning/operations.p" - + "roto\032\037google/protobuf/timestamp.proto\"P\n" - + "\033TranslateTextGlossaryConfig\022\026\n\010glossary" - + "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" - + "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" - + "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" - + "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" - + "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" - + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" - + "onfig\030\007 \001(\0132=.google.cloud.translation.v" - + "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" - + "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" - + "ion.v3beta1.TranslateTextRequest.LabelsE" - + "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" - + "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" - + ".translation.v3beta1.Translation\022L\n\025glos" - + "sary_translations\030\003 \003(\0132-.google.cloud.t" - + "ranslation.v3beta1.Translation\"\255\001\n\013Trans" - + "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" - + "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" - + "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" - + "ranslation.v3beta1.TranslateTextGlossary" - + "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" - + "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." - + "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" - + "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" - + "\006labels\030\006 \003(\0132C.google.cloud.translation" - + ".v3beta1.DetectLanguageRequest.LabelsEnt" - + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" - + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" - + "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" - + "nguages\030\001 \003(\01322.google.cloud.translation" - + ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" - + "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" - + "\372A#\n!locations.googleapis.com/Location\022#" - + "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" - + "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" - + "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" - + "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" - + "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" - + "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" - + "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" - + "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" - + "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" - + "(\0132+.google.cloud.translation.v3beta1.Gc" - + "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" - + "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" - + "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" - + ".cloud.translation.v3beta1.GcsDestinatio" - + "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" - + "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" - + "\0132+.google.cloud.translation.v3beta1.Gcs" - + "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" - + "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" - + "n\030\001 \001(\01320.google.cloud.translation.v3bet" - + "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" - + " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" - + "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" - + "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" - + "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" - + "_input_config\030\004 \001(\01325.google.cloud.trans" - + "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" - + "\022\\\n\026document_output_config\030\005 \001(\01326.googl" - + "e.cloud.translation.v3beta1.DocumentOutp" - + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" - + "lossary_config\030\007 \001(\0132=.google.cloud.tran" - + "slation.v3beta1.TranslateTextGlossaryCon" - + "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" - + ".translation.v3beta1.TranslateDocumentRe" - + "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" - + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" - + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" - + "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" - + "nse\022S\n\024document_translation\030\001 \001(\01325.goog" - + "le.cloud.translation.v3beta1.DocumentTra" - + "nslation\022\\\n\035glossary_document_translatio" - + "n\030\002 \001(\01325.google.cloud.translation.v3bet" - + "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" - + "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" - + "anslation.v3beta1.TranslateTextGlossaryC" - + "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" - + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" - + "is.com/Location\022\"\n\024source_language_code\030" - + "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" - + "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." - + "translation.v3beta1.BatchTranslateTextRe" - + "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" - + "\030\005 \003(\0132-.google.cloud.translation.v3beta" - + "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" - + "(\0132..google.cloud.translation.v3beta1.Ou" - + "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" - + "oogle.cloud.translation.v3beta1.BatchTra" - + "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" - + "]\n\006labels\030\t \003(\0132G.google.cloud.translati" - + "on.v3beta1.BatchTranslateTextRequest.Lab" - + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" - + "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" - + "oud.translation.v3beta1.TranslateTextGlo" - + "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" - + "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." - + "translation.v3beta1.BatchTranslateMetada" - + "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" - + "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" - + "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" - + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" - + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" - + "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" - + "_characters\030\001 \001(\003\022\035\n\025translated_characte" - + "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" - + "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" - + ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" - + "_source\030\001 \001(\0132+.google.cloud.translation" - + ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" - + "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" - + "\030\003 \001(\0132;.google.cloud.translation.v3beta" - + "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" - + "e_codes_set\030\004 \001(\0132;.google.cloud.transla" - + "tion.v3beta1.Glossary.LanguageCodesSetH\000" - + "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" - + "anslation.v3beta1.GlossaryInputConfig\022\031\n" - + "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" - + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" - + "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" - + "e_language_code\030\001 \001(\t\022\034\n\024target_language" - + "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" - + "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" - + "is.com/Glossary\022=projects/{project}/loca" - + "tions/{location}/glossaries/{glossary}B\013" - + "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" - + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" - + "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" - + "ogle.cloud.translation.v3beta1.GlossaryB" - + "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" - + "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" - + "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" - + " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" - + "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" - + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" - + "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" - + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" - + "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" - + "ssaries\030\001 \003(\0132*.google.cloud.translation" - + ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " - + "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" - + "ation.v3beta1.CreateGlossaryMetadata.Sta" - + "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" - + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" - + "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" - + "tate\030\002 \001(\0162>.google.cloud.translation.v3" - + "beta1.DeleteGlossaryMetadata.State\022/\n\013su" - + "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" - + "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" - + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" - + "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" - + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" - + "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" - + "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" - + "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" - + "pis.com/Location\022\"\n\024source_language_code" - + "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " - + "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" - + "e.cloud.translation.v3beta1.BatchDocumen" - + "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" - + "\0132;.google.cloud.translation.v3beta1.Bat" - + "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" - + " \003(\0132K.google.cloud.translation.v3beta1." - + "BatchTranslateDocumentRequest.ModelsEntr" - + "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" - + "ud.translation.v3beta1.BatchTranslateDoc" - + "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" - + "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" - + "anslation.v3beta1.BatchTranslateDocument" - + "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" - + "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" - + "alue\030\002 \001(\0132=.google.cloud.translation.v3" - + "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" - + "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" - + "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" - + "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" - + "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" - + "tination\030\001 \001(\01320.google.cloud.translatio" - + "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" - + "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" - + "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " - + "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" - + "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" - + "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" - + "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" - + "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" - + "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" - + "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" - + "F.google.cloud.translation.v3beta1.Batch" - + "TranslateDocumentMetadata.State\022\023\n\013total" - + "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" - + "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" - + "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" - + "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" - + "aracters\030\010 \001(\003\022!\n\031total_billable_charact" - + "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." - + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" - + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" - + "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" - + "xt\0226.google.cloud.translation.v3beta1.Tr" - + "anslateTextRequest\0327.google.cloud.transl" - + "ation.v3beta1.TranslateTextResponse\"r\202\323\344" - + "\223\002l\"6/v3beta1/{parent=projects/*/locatio" - + "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" - + "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" - + "ctLanguage\0227.google.cloud.translation.v3" - + "beta1.DetectLanguageRequest\0328.google.clo" - + "ud.translation.v3beta1.DetectLanguageRes" - + "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" - + "7/v3beta1/{parent=projects/*/locations/*" - + "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" - + "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" - + "portedLanguages\022>.google.cloud.translati" - + "on.v3beta1.GetSupportedLanguagesRequest\032" - + "4.google.cloud.translation.v3beta1.Suppo" - + "rtedLanguages\"\233\001\332A\"parent,display_langua" - + "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" - + "ojects/*/locations/*}/supportedLanguages" - + "Z1\022//v3beta1/{parent=projects/*}/support" - + "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" - + "le.cloud.translation.v3beta1.TranslateDo" - + "cumentRequest\032;.google.cloud.translation" - + ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" - + "\002?\":/v3beta1/{parent=projects/*/location" - + "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" - + "lateText\022;.google.cloud.translation.v3be" - + "ta1.BatchTranslateTextRequest\032\035.google.l" - + "ongrunning.Operation\"y\312A0\n\026BatchTranslat" - + "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" - + ";/v3beta1/{parent=projects/*/locations/*" - + "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" - + "teDocument\022?.google.cloud.translation.v3" - + "beta1.BatchTranslateDocumentRequest\032\035.go" - + "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" - + "ranslateDocumentResponse\022\036BatchTranslate" - + "DocumentMetadata\332AMparent,source_languag" - + "e_code,target_language_codes,input_confi" - + "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" - + "=projects/*/locations/*}:batchTranslateD" - + "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" - + "loud.translation.v3beta1.CreateGlossaryR" - + "equest\032\035.google.longrunning.Operation\"|\312" - + "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" - + "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" - + "rojects/*/locations/*}/glossaries:\010gloss" - + "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" - + "anslation.v3beta1.ListGlossariesRequest\032" - + "8.google.cloud.translation.v3beta1.ListG" - + "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" - + "5\0223/v3beta1/{parent=projects/*/locations" - + "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." - + "cloud.translation.v3beta1.GetGlossaryReq" - + "uest\032*.google.cloud.translation.v3beta1." - + "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" - + "projects/*/locations/*/glossaries/*}\022\337\001\n" - + "\016DeleteGlossary\0227.google.cloud.translati" - + "on.v3beta1.DeleteGlossaryRequest\032\035.googl" - + "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" - + "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" - + "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" - + "ations/*/glossaries/*}\032~\312A\030translate.goo" - + "gleapis.com\322A`https://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/cloud-translationB\360\001\n\"com.g" - + "oogle.cloud.translate.v3beta1B\027Translati" - + "onServiceProtoP\001ZFcloud.google.com/go/tr" - + "anslation/apiv3beta1/translationpb;trans" - + "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" - + "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" - + "Google::Cloud::Translate::V3beta1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { - "Glossary", "IgnoreCase", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, - new java.lang.String[] { - "Contents", - "MimeType", - "SourceLanguageCode", - "TargetLanguageCode", - "Parent", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, - new java.lang.String[] { - "Translations", "GlossaryTranslations", - }); - internal_static_google_cloud_translation_v3beta1_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Translation_descriptor, - new java.lang.String[] { - "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, - new java.lang.String[] { - "Parent", "Model", "Content", "MimeType", "Labels", "Source", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayLanguageCode", "Model", - }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", - }); - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, - new java.lang.String[] { - "InputUri", - }); - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, - new java.lang.String[] { - "MimeType", "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, - new java.lang.String[] { - "OutputUriPrefix", - }); - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, - new java.lang.String[] { - "Content", "GcsSource", "MimeType", "Source", - }); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "MimeType", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCode", - "DocumentInputConfig", - "DocumentOutputConfig", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, - new java.lang.String[] { - "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, - new java.lang.String[] { - "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "Models", - "InputConfigs", - "OutputConfig", - "Glossaries", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, - new java.lang.String[] { - "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, - new java.lang.String[] { - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, - new java.lang.String[] { - "Name", - "LanguagePair", - "LanguageCodesSet", - "InputConfig", - "EntryCount", - "SubmitTime", - "EndTime", - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { - "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { - "LanguageCodes", - }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, - new java.lang.String[] { - "Parent", "Glossary", - }); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, - new java.lang.String[] { - "Glossaries", "NextPageToken", - }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { - "Name", "SubmitTime", "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "InputConfigs", - "OutputConfig", - "Models", - "Glossaries", - "FormatConversions", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { - "State", - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java new file mode 100644 index 000000000000..2be31aa95c39 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java @@ -0,0 +1,2010 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.stub.TranslationServiceStub; +import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides natural language translation operations. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   String targetLanguageCode = "targetLanguageCode-106414698";
+ *   List contents = new ArrayList<>();
+ *   TranslateTextResponse response =
+ *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TranslationServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newHttpJsonBuilder().build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class TranslationServiceClient implements BackgroundResource { + private final TranslationServiceSettings settings; + private final TranslationServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of TranslationServiceClient with default settings. */ + public static final TranslationServiceClient create() throws IOException { + return create(TranslationServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TranslationServiceClient create(TranslationServiceSettings settings) + throws IOException { + return new TranslationServiceClient(settings); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(TranslationServiceSettings). + */ + public static final TranslationServiceClient create(TranslationServiceStub stub) { + return new TranslationServiceClient(stub); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected TranslationServiceClient(TranslationServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final TranslationServiceSettings getSettings() { + return settings; + } + + public TranslationServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + LocationName parent, String targetLanguageCode, List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + String parent, String targetLanguageCode, List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(
+   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The `model` type requested for this translation. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

For global (non-regionalized) requests, use `location-id` `global`. For example, + * `projects/{project-number-or-id}/locations/global/models/general/nmt`. + *

If not provided, the default Google model (NMT) will be used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for + * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If + * the source language isn't specified, the API attempts to identify the source language + * automatically and returns the source language within the response. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + LocationName parent, + String model, + String mimeType, + String sourceLanguageCode, + String targetLanguageCode, + List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .setSourceLanguageCode(sourceLanguageCode) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(
+   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The `model` type requested for this translation. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

For global (non-regionalized) requests, use `location-id` `global`. For example, + * `projects/{project-number-or-id}/locations/global/models/general/nmt`. + *

If not provided, the default Google model (NMT) will be used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for + * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If + * the source language isn't specified, the API attempts to identify the source language + * automatically and returns the source language within the response. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + String parent, + String model, + String mimeType, + String sourceLanguageCode, + String targetLanguageCode, + List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .setSourceLanguageCode(sourceLanguageCode) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateTextResponse response = translationServiceClient.translateText(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText(TranslateTextRequest request) { + return translateTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateTextCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateTextResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable translateTextCallable() { + return stub.translateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String content = "content951530617";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param content The content of the input stored as a string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + LocationName parent, String model, String mimeType, String content) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .setContent(content) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String content = "content951530617";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param content The content of the input stored as a string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + String parent, String model, String mimeType, String content) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .setContent(content) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { + return detectLanguageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.detectLanguageCallable().futureCall(request);
+   *   // Do something.
+   *   DetectLanguageResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + detectLanguageCallable() { + return stub.detectLanguageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + LocationName parent, String model, String displayLanguageCode) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setDisplayLanguageCode(displayLanguageCode) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + String parent, String model, String displayLanguageCode) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setDisplayLanguageCode(displayLanguageCode) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { + return getSupportedLanguagesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
+   *   // Do something.
+   *   SupportedLanguages response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSupportedLanguagesCallable() { + return stub.getSupportedLanguagesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .setIsTranslateNativePdfOnly(true)
+   *           .setEnableShadowRemovalNativePdf(true)
+   *           .build();
+   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { + return translateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .setIsTranslateNativePdfOnly(true)
+   *           .setEnableShadowRemovalNativePdf(true)
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + translateDocumentCallable() { + return stub.translateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   BatchTranslateResponse response =
+   *       translationServiceClient.batchTranslateTextAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateTextAsync(BatchTranslateTextRequest request) { + return batchTranslateTextOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return stub.batchTranslateTextOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable batchTranslateTextCallable() { + return stub.batchTranslateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + LocationName parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + String parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { + return batchTranslateDocumentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return stub.batchTranslateDocumentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchTranslateDocumentCallable() { + return stub.batchTranslateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + LocationName parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGlossary(glossary) + .build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + String parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + CreateGlossaryRequest request) { + return createGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createGlossaryOperationCallable() { + return stub.createGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.createGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createGlossaryCallable() { + return stub.createGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(LocationName parent) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(String parent) { + ListGlossariesRequest request = ListGlossariesRequest.newBuilder().setParent(parent).build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { + return listGlossariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Glossary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesPagedCallable() { + return stub.listGlossariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListGlossariesResponse response =
+   *         translationServiceClient.listGlossariesCallable().call(request);
+   *     for (Glossary element : response.getGlossariesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesCallable() { + return stub.listGlossariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GlossaryName name) { + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(String name) { + GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   Glossary response = translationServiceClient.getGlossary(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GetGlossaryRequest request) { + return getGlossaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getGlossaryCallable() { + return stub.getGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + GlossaryName name) { + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + String name) { + DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + DeleteGlossaryRequest request) { + return deleteGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeleteGlossaryResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable() { + return stub.deleteGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteGlossaryCallable() { + return stub.deleteGlossaryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListGlossariesPagedResponse + extends AbstractPagedListResponse< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGlossariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGlossariesPagedResponse(ListGlossariesPage page) { + super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGlossariesPage + extends AbstractPage< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { + + private ListGlossariesPage( + PageContext context, + ListGlossariesResponse response) { + super(context, response); + } + + private static ListGlossariesPage createEmptyPage() { + return new ListGlossariesPage(null, null); + } + + @Override + protected ListGlossariesPage createPage( + PageContext context, + ListGlossariesResponse response) { + return new ListGlossariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGlossariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGlossariesFixedSizeCollection createEmptyCollection() { + return new ListGlossariesFixedSizeCollection(null, 0); + } + + @Override + protected ListGlossariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGlossariesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java new file mode 100644 index 000000000000..7bd9560be9eb --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java @@ -0,0 +1,375 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TranslationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateTextOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateDocumentOperationSettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); + } + + public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) + throws IOException { + return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TranslationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TranslationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TranslationServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TranslationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TranslationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TranslationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TranslationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TranslationServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); + } + + public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TranslationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return getStubSettingsBuilder().translateTextSettings(); + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return getStubSettingsBuilder().detectLanguageSettings(); + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getStubSettingsBuilder().getSupportedLanguagesSettings(); + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return getStubSettingsBuilder().translateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return getStubSettingsBuilder().batchTranslateTextSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return getStubSettingsBuilder().batchTranslateTextOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return getStubSettingsBuilder().batchTranslateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return getStubSettingsBuilder().createGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return getStubSettingsBuilder().createGlossaryOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return getStubSettingsBuilder().listGlossariesSettings(); + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getStubSettingsBuilder().getGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return getStubSettingsBuilder().deleteGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return getStubSettingsBuilder().deleteGlossaryOperationSettings(); + } + + @Override + public TranslationServiceSettings build() throws IOException { + return new TranslationServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json new file mode 100644 index 000000000000..b5190737c2ce --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json @@ -0,0 +1,48 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.translation.v3", + "libraryPackage": "com.google.cloud.translate.v3", + "services": { + "TranslationService": { + "clients": { + "grpc": { + "libraryClient": "TranslationServiceClient", + "rpcs": { + "BatchTranslateDocument": { + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + }, + "BatchTranslateText": { + "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] + }, + "CreateGlossary": { + "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] + }, + "DeleteGlossary": { + "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] + }, + "DetectLanguage": { + "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] + }, + "GetGlossary": { + "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] + }, + "GetSupportedLanguages": { + "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] + }, + "ListGlossaries": { + "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] + }, + "TranslateDocument": { + "methods": ["translateDocument", "translateDocumentCallable"] + }, + "TranslateText": { + "methods": ["translateText", "translateText", "translateText", "translateText", "translateText", "translateTextCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java new file mode 100644 index 000000000000..cefd0d9f7223 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Translation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TranslationServiceClient ======================= + * + *

Service Description: Provides natural language translation operations. + * + *

Sample for TranslationServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   String targetLanguageCode = "targetLanguageCode-106414698";
+ *   List contents = new ArrayList<>();
+ *   TranslateTextResponse response =
+ *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.translate.v3; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..9bf80365681a --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java new file mode 100644 index 000000000000..248781dac1b5 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java @@ -0,0 +1,548 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceStub extends TranslationServiceStub { + private static final MethodDescriptor + translateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + detectLanguageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") + .setRequestMarshaller( + ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getSupportedLanguagesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + translateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGlossariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") + .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTranslationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings translateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + detectLanguageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getSupportedLanguagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + translateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings batchTranslateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchTranslateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGlossariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + operationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + operationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + operationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..97038ade44c6 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTranslationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java new file mode 100644 index 000000000000..18d3e72b5280 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java @@ -0,0 +1,910 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTranslationServiceStub extends TranslationServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(DeleteGlossaryMetadata.getDescriptor()) + .add(BatchTranslateResponse.getDescriptor()) + .add(BatchTranslateMetadata.getDescriptor()) + .add(Glossary.getDescriptor()) + .add(CreateGlossaryMetadata.getDescriptor()) + .add(BatchTranslateDocumentResponse.getDescriptor()) + .add(DeleteGlossaryResponse.getDescriptor()) + .add(BatchTranslateDocumentMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + translateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:translateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3/{parent=projects/*}:translateText") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + detectLanguageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:detectLanguage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3/{parent=projects/*}:detectLanguage") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSupportedLanguagesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/supportedLanguages", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3/{parent=projects/*}/supportedLanguages") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "displayLanguageCode", request.getDisplayLanguageCode()); + serializer.putQueryParam(fields, "model", request.getModel()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SupportedLanguages.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + translateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:translateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchTranslateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:batchTranslateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateTextRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + batchTranslateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:batchTranslateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateDocumentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("glossary", request.getGlossary(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listGlossariesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Glossary.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTranslationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v3/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v3/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v3/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v3/{name=projects/*/locations/*}/operations") + .build()) + .put( + "google.longrunning.Operations.WaitOperation", + HttpRule.newBuilder() + .setPost("/v3/{name=projects/*/locations/*/operations/*}:wait") + .build()) + .build()); + + HttpJsonCallSettings + translateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + detectLanguageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getSupportedLanguagesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + translateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings batchTranslateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchTranslateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGlossariesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(translateTextMethodDescriptor); + methodDescriptors.add(detectLanguageMethodDescriptor); + methodDescriptors.add(getSupportedLanguagesMethodDescriptor); + methodDescriptors.add(translateDocumentMethodDescriptor); + methodDescriptors.add(batchTranslateTextMethodDescriptor); + methodDescriptors.add(batchTranslateDocumentMethodDescriptor); + methodDescriptors.add(createGlossaryMethodDescriptor); + methodDescriptors.add(listGlossariesMethodDescriptor); + methodDescriptors.add(getGlossaryMethodDescriptor); + methodDescriptors.add(deleteGlossaryMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java new file mode 100644 index 000000000000..9b277a5ca6a4 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class TranslationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable translateTextCallable() { + throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); + } + + public UnaryCallable detectLanguageCallable() { + throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); + } + + public UnaryCallable + getSupportedLanguagesCallable() { + throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); + } + + public UnaryCallable + translateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); + } + + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateTextOperationCallable()"); + } + + public UnaryCallable batchTranslateTextCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); + } + + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateDocumentOperationCallable()"); + } + + public UnaryCallable batchTranslateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); + } + + public OperationCallable + createGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); + } + + public UnaryCallable createGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); + } + + public UnaryCallable + listGlossariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); + } + + public UnaryCallable listGlossariesCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); + } + + public UnaryCallable getGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); + } + + public OperationCallable + deleteGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); + } + + public UnaryCallable deleteGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java new file mode 100644 index 000000000000..96107b428481 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java @@ -0,0 +1,868 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceStubSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceStubSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TranslationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-translation") + .build(); + + private final UnaryCallSettings + translateTextSettings; + private final UnaryCallSettings + detectLanguageSettings; + private final UnaryCallSettings + getSupportedLanguagesSettings; + private final UnaryCallSettings + translateDocumentSettings; + private final UnaryCallSettings batchTranslateTextSettings; + private final OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings + batchTranslateDocumentSettings; + private final OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings createGlossarySettings; + private final OperationCallSettings + createGlossaryOperationSettings; + private final PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings getGlossarySettings; + private final UnaryCallSettings deleteGlossarySettings; + private final OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + + private static final PagedListDescriptor + LIST_GLOSSARIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { + return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGlossariesRequest injectPageSize( + ListGlossariesRequest payload, int pageSize) { + return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGlossariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGlossariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGlossariesResponse payload) { + return payload.getGlossariesList() == null + ? ImmutableList.of() + : payload.getGlossariesList(); + } + }; + + private static final PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + LIST_GLOSSARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGlossariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); + return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return translateTextSettings; + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + public TranslationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTranslationServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTranslationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "translate.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "translate.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + translateTextSettings = settingsBuilder.translateTextSettings().build(); + detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); + getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); + translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); + batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); + batchTranslateTextOperationSettings = + settingsBuilder.batchTranslateTextOperationSettings().build(); + batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); + batchTranslateDocumentOperationSettings = + settingsBuilder.batchTranslateDocumentOperationSettings().build(); + createGlossarySettings = settingsBuilder.createGlossarySettings().build(); + createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); + listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); + getGlossarySettings = settingsBuilder.getGlossarySettings().build(); + deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); + deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); + } + + /** Builder for TranslationServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + translateTextSettings; + private final UnaryCallSettings.Builder + detectLanguageSettings; + private final UnaryCallSettings.Builder + getSupportedLanguagesSettings; + private final UnaryCallSettings.Builder + translateDocumentSettings; + private final UnaryCallSettings.Builder + batchTranslateTextSettings; + private final OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings.Builder + batchTranslateDocumentSettings; + private final OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings.Builder + createGlossarySettings; + private final OperationCallSettings.Builder< + CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> + createGlossaryOperationSettings; + private final PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings.Builder getGlossarySettings; + private final UnaryCallSettings.Builder + deleteGlossarySettings; + private final OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); + batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); + createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGlossaryOperationSettings = OperationCallSettings.newBuilder(); + listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); + getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + initDefaults(this); + } + + protected Builder(TranslationServiceStubSettings settings) { + super(settings); + + translateTextSettings = settings.translateTextSettings.toBuilder(); + detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); + getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); + translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); + batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); + batchTranslateTextOperationSettings = + settings.batchTranslateTextOperationSettings.toBuilder(); + batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); + batchTranslateDocumentOperationSettings = + settings.batchTranslateDocumentOperationSettings.toBuilder(); + createGlossarySettings = settings.createGlossarySettings.toBuilder(); + createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); + listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); + getGlossarySettings = settings.getGlossarySettings.toBuilder(); + deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); + deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .translateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .detectLanguageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSupportedLanguagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .translateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchTranslateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchTranslateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listGlossariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchTranslateTextOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .batchTranslateDocumentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchTranslateDocumentResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchTranslateDocumentMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return translateTextSettings; + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @Override + public TranslationServiceStubSettings build() throws IOException { + return new TranslationServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json new file mode 100644 index 000000000000..50a0b6fd1797 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json @@ -0,0 +1,1946 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentTranslation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentTranslation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GlossaryInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GlossaryInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.InputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.InputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.OutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.OutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguages", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguages$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Translation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Translation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java new file mode 100644 index 000000000000..2dbe7ffafa73 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationService implements MockGrpcService { + private final MockTranslationServiceImpl serviceImpl; + + public MockTranslationService() { + serviceImpl = new MockTranslationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java new file mode 100644 index 000000000000..f5d5d4f8e4af --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java @@ -0,0 +1,271 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import com.google.api.core.BetaApi; +import com.google.cloud.translate.v3.TranslationServiceGrpc.TranslationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationServiceImpl extends TranslationServiceImplBase { + private List requests; + private Queue responses; + + public MockTranslationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void translateText( + TranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateTextResponse) { + requests.add(request); + responseObserver.onNext(((TranslateTextResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateTextResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void detectLanguage( + DetectLanguageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DetectLanguageResponse) { + requests.add(request); + responseObserver.onNext(((DetectLanguageResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DetectLanguage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DetectLanguageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSupportedLanguages( + GetSupportedLanguagesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SupportedLanguages) { + requests.add(request); + responseObserver.onNext(((SupportedLanguages) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SupportedLanguages.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void translateDocument( + TranslateDocumentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateDocumentResponse) { + requests.add(request); + responseObserver.onNext(((TranslateDocumentResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateDocumentResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateText( + BatchTranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateDocument( + BatchTranslateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGlossary( + CreateGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGlossaries( + ListGlossariesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGlossariesResponse) { + requests.add(request); + responseObserver.onNext(((ListGlossariesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGlossaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGlossariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Glossary) { + requests.add(request); + responseObserver.onNext(((Glossary) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Glossary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGlossary( + DeleteGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..1a414ea7557d --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java @@ -0,0 +1,1197 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.translate.v3.stub.HttpJsonTranslationServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTranslationServiceStub.getMethodDescriptors(), + TranslationServiceSettings.getDefaultEndpoint()); + TranslationServiceSettings settings = + TranslationServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest2() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest3() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest4() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java new file mode 100644 index 000000000000..9293f056bd67 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java @@ -0,0 +1,1161 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTranslationService mockTranslationService; + private LocalChannelProvider channelProvider; + private TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTranslationService = new MockTranslationService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TranslationServiceSettings settings = + TranslationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest2() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest3() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest4() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); + Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertEquals( + request.getCustomizedAttribution(), actualRequest.getCustomizedAttribution()); + Assert.assertEquals( + request.getIsTranslateNativePdfOnly(), actualRequest.getIsTranslateNativePdfOnly()); + Assert.assertEquals( + request.getEnableShadowRemovalNativePdf(), actualRequest.getEnableShadowRemovalNativePdf()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals( + request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); + Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); + Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); + Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockTranslationService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockTranslationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String name = "name3373707"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java index bf8e7906ee95..90086bd0466e 100644 --- a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -37,134 +20,113 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.ListLocationsRequest,
-            com.google.cloud.location.ListLocationsResponse>
-        getListLocationsMethod;
+  public static io.grpc.MethodDescriptor getListLocationsMethod() {
+    io.grpc.MethodDescriptor getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod =
-              getListLocationsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-                      .build();
+          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+              .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-        getGetLocationMethod;
+  public static io.grpc.MethodDescriptor getGetLocationMethod() {
+    io.grpc.MethodDescriptor getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod =
-              getGetLocationMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.Location.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-                      .build();
+          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.Location.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+              .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsStub(channel, callOptions);
+        }
+      };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsBlockingStub(channel, callOptions);
+        }
+      };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static LocationsFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsFutureStub(channel, callOptions);
+        }
+      };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -174,108 +136,88 @@ public LocationsFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); + default void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - default void getLocation( - com.google.cloud.location.GetLocationRequest request, + default void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class LocationsImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub + extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** - * - * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, + public void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -284,7 +226,8 @@ public void getLocation(
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -295,27 +238,21 @@ protected LocationsBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -323,7 +260,6 @@ public com.google.cloud.location.Location getLocation( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -332,38 +268,35 @@ public com.google.cloud.location.Location getLocation(
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -372,11 +305,11 @@ protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_LOCATIONS = 0; private static final int METHODID_GET_LOCATION = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -390,14 +323,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -419,24 +349,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>( + service, METHODID_GET_LOCATION))) .build(); } - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -478,13 +408,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java new file mode 100644 index 000000000000..f773156a3adf --- /dev/null +++ b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java @@ -0,0 +1,1157 @@ +package com.google.cloud.translate.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateTextMethod() { + io.grpc.MethodDescriptor getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetectLanguageMethod() { + io.grpc.MethodDescriptor getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { + io.grpc.MethodDescriptor getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { + io.grpc.MethodDescriptor getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListGlossariesMethod() { + io.grpc.MethodDescriptor getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetGlossaryMethod() { + io.grpc.MethodDescriptor getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.Glossary.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TranslationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static abstract class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateTextResponse translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.Glossary getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateText( + com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText((com.google.cloud.translate.v3.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage((com.google.cloud.translate.v3.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument((com.google.cloud.translate.v3.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText((com.google.cloud.translate.v3.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary((com.google.cloud.translate.v3.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries((com.google.cloud.translate.v3.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary((com.google.cloud.translate.v3.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary((com.google.cloud.translate.v3.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.CreateGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary>( + service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DeleteGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private static abstract class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java similarity index 77% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java index 9a81bd5f3586..946d7d46a52c 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentInputConfig() {} + private BatchDocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -133,7 +107,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -141,8 +114,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -166,19 +137,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -206,13 +174,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,7 +191,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -238,9 +206,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -250,18 +217,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentInputConfig other =
-        (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentInputConfig other = (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -291,136 +258,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentInputConfig) com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -455,11 +417,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentInputConfig result = - new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchDocumentInputConfig result = new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -472,7 +431,8 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -481,39 +441,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInput public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -521,18 +480,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -560,19 +516,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,12 +538,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -600,13 +556,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -630,7 +581,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -638,8 +588,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -663,7 +611,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -681,8 +628,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -721,8 +666,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -747,7 +690,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -758,8 +702,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -786,13 +728,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -808,8 +747,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -851,8 +788,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -881,8 +816,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -919,8 +852,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -946,19 +877,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -968,9 +894,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -980,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentInputConfig();
   }
@@ -994,27 +920,27 @@ public static com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1029,4 +955,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
index d4533a75c6d8..7abfa317fddb 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentInputConfigOrBuilder
-    extends
+public interface BatchDocumentInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -49,13 +31,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +58,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
similarity index 78%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
index 9bc8cac72170..4412ae007b88 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
@@ -1,78 +1,56 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentOutputConfig() {} + private BatchDocumentOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -146,20 +120,19 @@ public DestinationCase getDestinationCase() {
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -167,8 +140,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -205,32 +176,29 @@ public boolean hasGcsDestination() {
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -267,15 +235,15 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
    * output is a txt file containing error details.
    * 
* @@ -284,13 +252,12 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } @@ -316,9 +284,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -328,18 +295,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchDocumentOutputConfig other = - (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj; + com.google.cloud.translate.v3.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -369,136 +336,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override @@ -533,11 +495,8 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentOutputConfig result = - new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -547,11 +506,11 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentOutputConf int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -560,39 +519,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -600,18 +558,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -639,19 +594,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,12 +616,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -679,13 +634,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -722,20 +672,19 @@ public Builder clearDestination() {
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -743,8 +692,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -781,20 +728,19 @@ public boolean hasGcsDestination() {
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -812,8 +758,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -850,15 +794,15 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* @@ -878,8 +822,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -916,15 +858,15 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* @@ -942,8 +884,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -980,15 +920,15 @@ public Builder setGcsDestination(
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* @@ -996,13 +936,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3.GcsDestination.newBuilder( - (com.google.cloud.translate.v3.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1018,8 +955,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1056,15 +991,15 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* @@ -1087,8 +1022,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1125,15 +1058,15 @@ public Builder clearGcsDestination() {
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* @@ -1143,8 +1076,6 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1181,15 +1112,15 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* @@ -1207,8 +1138,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1245,34 +1174,29 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
      * output is a txt file containing error details.
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1282,9 +1206,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr onChanged(); return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1294,12 +1218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentOutputConfig) private static final com.google.cloud.translate.v3.BatchDocumentOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentOutputConfig(); } @@ -1308,27 +1232,27 @@ public static com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1343,4 +1267,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java similarity index 82% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java index 75a4cbcf6408..9b98837a7172 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchDocumentOutputConfigOrBuilder - extends +public interface BatchDocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -62,26 +44,23 @@ public interface BatchDocumentOutputConfigOrBuilder
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -118,26 +97,23 @@ public interface BatchDocumentOutputConfigOrBuilder
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -174,15 +150,15 @@ public interface BatchDocumentOutputConfigOrBuilder
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
    * output is a txt file containing error details.
    * 
* diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java index c3d6824ce0f0..cea5c3242091 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -84,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -94,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -104,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +123,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -170,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -180,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -203,6 +158,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,57 +183,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -297,52 +248,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -353,15 +290,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -372,15 +306,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -391,15 +322,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -410,14 +338,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -428,15 +353,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -447,15 +369,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -466,15 +385,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -485,14 +401,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -500,14 +413,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ @java.lang.Override @@ -515,8 +425,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -529,7 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -541,10 +448,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -583,37 +489,45 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -623,26 +537,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = - (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() != other.getTotalPages()) return false; - if (getTranslatedPages() != other.getTranslatedPages()) return false; - if (getFailedPages() != other.getFailedPages()) return false; - if (getTotalBillablePages() != other.getTotalBillablePages()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (getTotalPages() + != other.getTotalPages()) return false; + if (getTranslatedPages() + != other.getTranslatedPages()) return false; + if (getFailedPages() + != other.getFailedPages()) return false; + if (getTotalBillablePages() + != other.getTotalBillablePages()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() + != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -658,21 +580,29 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -683,136 +613,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -835,14 +760,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -857,17 +781,13 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = - new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { + private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -897,7 +817,9 @@ private void buildPartial0( result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -905,39 +827,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)other); } else { super.mergeFrom(other); return this; @@ -945,9 +866,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other) { - if (other - == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1004,73 +923,64 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1080,34 +990,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1118,38 +1020,28 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { + public Builder setState(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1159,14 +1051,11 @@ public Builder setState( return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1176,17 +1065,14 @@ public Builder clearState() { return this; } - private long totalPages_; + private long totalPages_ ; /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -1194,15 +1080,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1214,15 +1097,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1232,17 +1112,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -1250,15 +1127,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1270,15 +1144,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1288,17 +1159,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -1306,15 +1174,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1326,15 +1191,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1344,17 +1206,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1362,15 +1221,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1382,15 +1238,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1400,16 +1253,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -1417,14 +1267,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1436,14 +1283,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1453,17 +1297,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1471,15 +1312,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1491,15 +1329,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1509,17 +1344,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -1527,15 +1359,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1547,15 +1376,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1565,17 +1391,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1583,15 +1406,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1603,15 +1423,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1623,47 +1440,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1684,15 +1488,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1703,8 +1506,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1713,9 +1514,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1728,8 +1529,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1747,8 +1546,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1761,8 +1558,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1773,14 +1568,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1788,24 +1580,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1815,13 +1604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(); } @@ -1830,27 +1618,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1865,4 +1653,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java index 56aa416281ab..a2a7d1b0cc1e 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,191 +1,137 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentMetadataOrBuilder - extends +public interface BatchTranslateDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState(); /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java similarity index 66% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java index 7b5efed61524..a638507885ad 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java @@ -1,64 +1,49 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); customizedAttribution_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -67,27 +52,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -100,10 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -112,15 +89,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -133,18 +109,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -153,12 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -166,7 +138,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -175,15 +146,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -191,15 +161,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -208,53 +179,41 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -262,30 +221,24 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List inputConfigs_; /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -293,18 +246,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -312,18 +260,14 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,17 +275,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -349,17 +289,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -367,9 +303,7 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( @@ -380,18 +314,13 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -399,76 +328,60 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -490,21 +403,20 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -530,8 +442,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -553,19 +463,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -587,11 +495,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -599,122 +507,92 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
-
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        defaultEntry =
+        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.translate.v3.TranslationServiceProto
-                            .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.translate.v3.TranslateTextGlossaryConfig
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-      glossaries_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-      internalGetGlossaries() {
+      java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
+  private com.google.protobuf.MapField
+  internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
-
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -724,36 +602,32 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; - private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -767,26 +641,23 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -800,17 +671,13 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -824,24 +691,20 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -855,16 +718,14 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -872,12 +733,9 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object customizedAttribution_ = ""; /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -886,7 +744,6 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ @java.lang.Override @@ -895,15 +752,14 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -912,15 +768,16 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -929,7 +786,6 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -941,7 +797,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -957,11 +814,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModels(), + ModelsDefaultEntryHolder.defaultEntry, + 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetGlossaries(), + GlossariesDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -993,43 +859,42 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry : - internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry models__ = - ModelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - entry : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - GlossariesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry : - internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry formatConversions__ = - FormatConversionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry + : internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry + models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, models__); + } + for (java.util.Map.Entry entry + : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry + glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry + : internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry + formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, formatConversions__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); @@ -1042,26 +907,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = - (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList() + .equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList() + .equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals(other.internalGetModels())) return false; - if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; - if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals( + other.internalGetModels())) return false; + if (!internalGetGlossaries().equals( + other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals( + other.internalGetFormatConversions())) return false; + if (!getCustomizedAttribution() + .equals(other.getCustomizedAttribution())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1109,121 +982,116 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.cloud.translate.v3.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -1232,12 +1100,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1246,34 +1115,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1294,9 +1165,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1315,18 +1186,14 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = - new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1351,8 +1218,9 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1375,39 +1243,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1415,8 +1282,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1455,10 +1321,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1467,11 +1332,14 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom( + other.internalGetFormatConversions()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1504,97 +1372,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.cloud.translate.v3.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry - formatConversions__ = - input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFormatConversions() - .getMutableMap() - .put(formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.cloud.translate.v3.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + formatConversions__ = input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFormatConversions().getMutableMap().put( + formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1604,13 +1455,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1623,16 +1471,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1641,8 +1487,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1655,17 +1499,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1673,8 +1516,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1687,25 +1528,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1718,10 +1553,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1731,8 +1563,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1745,17 +1575,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1765,8 +1591,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1774,13 +1598,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1789,8 +1613,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1798,14 +1620,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1813,8 +1636,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1822,22 +1643,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1845,7 +1662,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1855,8 +1671,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1864,14 +1678,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1881,7 +1693,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1889,49 +1700,38 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1939,41 +1739,33 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1981,23 +1773,18 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -2005,64 +1792,53 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -2072,26 +1848,18 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = - new java.util.ArrayList( - inputConfigs_); + inputConfigs_ = new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> - inputConfigsBuilder_; + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2099,12 +1867,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -2112,8 +1877,6 @@ private void ensureInputConfigsIsMutable() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2121,9 +1884,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2133,8 +1894,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2142,9 +1901,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2154,8 +1911,6 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2163,9 +1918,7 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2182,8 +1935,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2191,9 +1942,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2207,8 +1956,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2216,9 +1963,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2234,8 +1979,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2243,9 +1986,7 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2262,8 +2003,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2271,9 +2010,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2287,8 +2024,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2296,9 +2031,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2312,8 +2045,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2321,16 +2052,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2338,8 +2067,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2347,9 +2074,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2362,8 +2087,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2371,9 +2094,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2386,8 +2107,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2395,17 +2114,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2413,21 +2128,16 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2435,12 +2145,10 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2448,8 +2156,6 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2457,17 +2163,13 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2475,19 +2177,14 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2495,27 +2192,22 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2523,64 +2215,45 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2596,17 +2269,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutput return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2620,25 +2289,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2651,17 +2314,13 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2674,90 +2333,74 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder - getOutputConfigBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2766,13 +2409,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2794,21 +2434,20 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2834,8 +2473,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2857,19 +2494,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2891,25 +2526,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2930,22 +2563,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2966,20 +2600,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -3000,18 +2631,17 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        glossaries_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
+    private com.google.protobuf.MapField
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -3019,13 +2649,11 @@ public Builder putAllModels(java.util.Map va
       }
       return glossaries_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+    private com.google.protobuf.MapField
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ =
-            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ = com.google.protobuf.MapField.newMapField(
+            GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -3034,177 +2662,140 @@ public Builder putAllModels(java.util.Map va
       onChanged();
       return glossaries_;
     }
-
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -3213,13 +2804,11 @@ public Builder putAllGlossaries( } return formatConversions_; } - private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -3228,13 +2817,10 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3248,26 +2834,23 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3281,17 +2864,13 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3305,25 +2884,20 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3337,15 +2911,12 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -3353,15 +2924,13 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap().clear(); + internalGetMutableFormatConversions().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3375,26 +2944,25 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFormatConversions().getMutableMap().remove(key); + public Builder removeFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFormatConversions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableFormatConversions() { + public java.util.Map + getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3408,24 +2976,19 @@ public java.util.Map getMutableFormatConvers
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putFormatConversions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFormatConversions().getMutableMap().put(key, value); + public Builder putFormatConversions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableFormatConversions().getMutableMap() + .put(key, value); bitField0_ |= 0x00000080; return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3439,21 +3002,18 @@ public Builder putFormatConversions(java.lang.String key, java.lang.String value
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap().putAll(values); + internalGetMutableFormatConversions().getMutableMap() + .putAll(values); bitField0_ |= 0x00000080; return this; } private java.lang.Object customizedAttribution_ = ""; /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3462,13 +3022,13 @@ public Builder putAllFormatConversions(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -3477,8 +3037,6 @@ public java.lang.String getCustomizedAttribution() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3487,14 +3045,15 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -3502,8 +3061,6 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3512,22 +3069,18 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttribution( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3536,7 +3089,6 @@ public Builder setCustomizedAttribution(java.lang.String value) {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -3546,8 +3098,6 @@ public Builder clearCustomizedAttribution() { return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3556,23 +3106,21 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttributionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3582,12 +3130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) private static final com.google.cloud.translate.v3.BatchTranslateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(); } @@ -3596,27 +3144,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3631,4 +3179,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java index 742d85933e62..448bb93ce6e2 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentRequestOrBuilder - extends +public interface BatchTranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -60,17 +37,13 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -78,13 +51,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -92,73 +62,57 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,14 +120,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -181,14 +132,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -196,14 +143,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -211,15 +154,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -227,63 +166,45 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -306,8 +227,6 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -328,13 +247,15 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -355,10 +276,9 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -380,13 +300,11 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -407,82 +325,64 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -496,14 +396,10 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getFormatConversionsCount(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -517,17 +413,17 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsFormatConversions( + java.lang.String key); + /** + * Use {@link #getFormatConversionsMap()} instead. */ - boolean containsFormatConversions(java.lang.String key); - /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map getFormatConversions(); + java.util.Map + getFormatConversions(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -541,14 +437,11 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getFormatConversionsMap(); + java.util.Map + getFormatConversionsMap(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -562,18 +455,14 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getFormatConversionsOrDefault( +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -587,15 +476,12 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getFormatConversionsOrThrow(java.lang.String key); + java.lang.String getFormatConversionsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -604,13 +490,10 @@ java.lang.String getFormatConversionsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -619,8 +502,8 @@ java.lang.String getFormatConversionsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString getCustomizedAttributionBytes(); + com.google.protobuf.ByteString + getCustomizedAttributionBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java index 8b0ebcacc358..4bcc611426d6 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,52 +13,47 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateDocumentResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateDocumentResponse() {}
+  private BatchTranslateDocumentResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -86,15 +64,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -105,15 +80,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -124,15 +96,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -143,14 +112,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -161,15 +127,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -180,15 +143,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -199,15 +159,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -218,14 +175,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -233,14 +187,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ @java.lang.Override @@ -248,8 +199,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -264,8 +213,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -273,7 +220,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -281,8 +227,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -290,7 +234,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ @java.lang.Override @@ -298,8 +241,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -314,7 +255,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -326,7 +266,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -367,34 +308,44 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -404,29 +355,38 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other =
-        (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages() != other.getTotalPages()) return false;
-    if (getTranslatedPages() != other.getTranslatedPages()) return false;
-    if (getFailedPages() != other.getFailedPages()) return false;
-    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
+    if (getTranslatedPages()
+        != other.getTranslatedPages()) return false;
+    if (getFailedPages()
+        != other.getFailedPages()) return false;
+    if (getTotalBillablePages()
+        != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters()
+        != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -440,21 +400,29 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -469,104 +437,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -576,32 +538,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -628,14 +591,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
       return com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -650,17 +612,13 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result =
-          new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -687,10 +645,14 @@ private void buildPartial0(
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -698,39 +660,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -738,9 +699,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentResponse other) {
-      if (other
-          == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -797,73 +756,66 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalPages_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedPages_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedPages_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                totalBillablePages_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 48:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 64:
-              {
-                totalBillableCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalPages_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedPages_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedPages_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              totalBillablePages_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 48: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 64: {
+              totalBillableCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -873,20 +825,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalPages_;
+    private long totalPages_ ;
     /**
-     *
-     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -894,15 +842,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -914,15 +859,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -932,17 +874,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -950,15 +889,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -970,15 +906,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -988,17 +921,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -1006,15 +936,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1026,15 +953,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1044,17 +968,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1062,15 +983,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1082,15 +1000,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1100,16 +1015,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -1117,14 +1029,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1136,14 +1045,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1153,17 +1059,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1171,15 +1074,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1191,15 +1091,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1209,17 +1106,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -1227,15 +1121,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1247,15 +1138,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1265,17 +1153,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1283,15 +1168,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1303,15 +1185,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1323,47 +1202,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1384,15 +1250,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1403,8 +1268,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1413,9 +1276,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1428,8 +1291,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1447,8 +1308,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1461,8 +1320,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1473,14 +1330,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1488,17 +1342,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1506,13 +1357,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1520,15 +1366,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1536,7 +1379,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1547,8 +1389,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1571,8 +1411,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1581,7 +1419,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1592,8 +1431,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1604,9 +1441,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1619,8 +1456,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1640,8 +1475,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1656,8 +1489,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1670,12 +1501,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1685,24 +1515,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1712,13 +1539,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse();
   }
@@ -1727,27 +1553,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateDocumentResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateDocumentResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1762,4 +1588,6 @@ public com.google.protobuf.Parser getParserForTy
   public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
index 93f7258efcb0..ba1d11008da9 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,166 +1,118 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateDocumentResponseOrBuilder
-    extends
+public interface BatchTranslateDocumentResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -170,8 +122,6 @@ public interface BatchTranslateDocumentResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -179,13 +129,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -193,13 +140,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
index a84aea7849e4..b739ed61bfff 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
@@ -1,80 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, - com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -83,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -93,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -104,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCEEDED(2),
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -171,8 +133,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -181,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -192,8 +150,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -204,6 +160,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -228,57 +185,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -298,51 +250,37 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -353,15 +291,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -372,8 +307,6 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -381,7 +314,6 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -392,14 +324,11 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -407,14 +336,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ @java.lang.Override @@ -422,8 +348,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -436,7 +360,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,10 +371,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -475,22 +397,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -500,21 +425,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateMetadata other = - (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateMetadata other = (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -530,11 +458,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -545,135 +476,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateMetadata) com.google.cloud.translate.v3.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, - com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -691,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -712,11 +639,8 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateMetadata result = - new com.google.cloud.translate.v3.BatchTranslateMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchTranslateMetadata result = new com.google.cloud.translate.v3.BatchTranslateMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -736,7 +660,9 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -744,39 +670,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata)other); } else { super.mergeFrom(other); return this; @@ -784,8 +709,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -827,43 +751,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -873,34 +793,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -911,33 +823,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -951,14 +854,11 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.Sta return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -968,16 +868,13 @@ public Builder clearState() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -985,14 +882,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1004,14 +898,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1021,17 +912,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -1039,15 +927,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1059,15 +944,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1077,10 +959,8 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1088,7 +968,6 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -1096,8 +975,6 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1105,7 +982,6 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1117,8 +993,6 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1126,7 +1000,6 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1138,47 +1011,34 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1199,15 +1059,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1218,8 +1077,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1228,9 +1085,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1243,8 +1100,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1262,8 +1117,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1276,8 +1129,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1288,14 +1139,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1303,24 +1151,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1330,12 +1175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateMetadata) private static final com.google.cloud.translate.v3.BatchTranslateMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateMetadata(); } @@ -1344,27 +1189,27 @@ public static com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1379,4 +1224,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java index aef48c713adb..337d2d9e0aab 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java @@ -1,83 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateMetadataOrBuilder - extends +public interface BatchTranslateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateMetadata.State getState(); /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -85,38 +55,29 @@ public interface BatchTranslateMetadataOrBuilder
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java index 9c4ed6c56ec3..daca001c1a91 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,50 +13,46 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateResponse() {}
+  private BatchTranslateResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateResponse.class,
-            com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -84,14 +63,11 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -102,14 +78,11 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -120,14 +93,11 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -135,14 +105,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ @java.lang.Override @@ -150,8 +117,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -166,8 +131,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,7 +138,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -183,8 +145,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -192,7 +152,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -200,8 +159,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -216,7 +173,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -228,7 +184,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -254,19 +211,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -276,24 +238,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateResponse other =
-        (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3.BatchTranslateResponse other = (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -307,11 +273,14 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -326,103 +295,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -432,32 +396,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateResponse)
       com.google.cloud.translate.v3.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateResponse.class,
-              com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -479,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -500,11 +465,8 @@ public com.google.cloud.translate.v3.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateResponse result =
-          new com.google.cloud.translate.v3.BatchTranslateResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.BatchTranslateResponse result = new com.google.cloud.translate.v3.BatchTranslateResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -521,10 +483,14 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -532,39 +498,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -572,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance()) return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -615,43 +579,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -661,19 +623,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalCharacters_;
+    private long totalCharacters_ ;
     /**
-     *
-     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -681,14 +639,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -700,14 +655,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -717,16 +669,13 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -734,14 +683,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -753,14 +699,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -770,16 +713,13 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -787,14 +727,11 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -806,14 +743,11 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -825,47 +759,34 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -886,15 +807,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -905,8 +825,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -915,9 +833,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -930,8 +848,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -949,8 +865,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -963,8 +877,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -975,14 +887,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -990,17 +899,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1008,13 +914,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1022,15 +923,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1038,7 +936,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1049,8 +946,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1073,8 +968,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1083,7 +976,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1094,8 +988,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1106,9 +998,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1121,8 +1013,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1142,8 +1032,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1158,8 +1046,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1172,12 +1058,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1187,24 +1072,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1214,12 +1096,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3.BatchTranslateResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateResponse();
   }
@@ -1228,27 +1110,27 @@ public static com.google.cloud.translate.v3.BatchTranslateResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1263,4 +1145,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
index 2e9f558f8217..e7a723c707b5 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
@@ -1,94 +1,61 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateResponseOrBuilder
-    extends
+public interface BatchTranslateResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -98,8 +65,6 @@ public interface BatchTranslateResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -121,13 +83,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
similarity index 65%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
index 56f191e1456e..9959a46dc9ce 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
@@ -1,63 +1,48 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -66,27 +51,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -99,10 +79,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -111,15 +88,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -132,18 +108,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -152,18 +127,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -172,29 +143,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -203,50 +174,38 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -254,51 +213,46 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -320,21 +274,20 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -360,8 +313,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -383,19 +334,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -417,11 +366,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -429,12 +378,9 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -442,17 +388,13 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -460,18 +402,14 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -479,17 +417,13 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -497,17 +431,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -515,30 +445,24 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3.OutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -546,167 +470,124 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; - private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - defaultEntry = + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -716,34 +597,32 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -759,21 +638,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -793,8 +671,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -810,19 +686,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -838,11 +712,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -850,7 +724,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -862,7 +735,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -872,18 +746,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetModels(),
+        ModelsDefaultEntryHolder.defaultEntry,
+        4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetGlossaries(),
+        GlossariesDefaultEntryHolder.defaultEntry,
+        7);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        9);
     getUnknownFields().writeTo(output);
   }
 
@@ -907,44 +793,43 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry :
-        internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry models__ =
-          ModelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry
+         : internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        entry : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-          glossaries__ =
-              GlossariesDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -954,25 +839,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateTextRequest other =
-        (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
-
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(other.internalGetModels())) return false;
-    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3.BatchTranslateTextRequest other = (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
+
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList()
+        .equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(
+        other.internalGetModels())) return false;
+    if (!getInputConfigsList()
+        .equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(
+        other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1018,121 +910,116 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateTextRequest) com.google.cloud.translate.v3.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -1141,12 +1028,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1155,34 +1043,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1202,9 +1092,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @java.lang.Override @@ -1223,18 +1113,14 @@ public com.google.cloud.translate.v3.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateTextRequest result = - new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3.BatchTranslateTextRequest result = new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1263,8 +1149,9 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1280,39 +1167,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1320,8 +1206,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1342,7 +1227,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest } onChanged(); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1362,10 +1248,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1374,9 +1259,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1404,89 +1291,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.translate.v3.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.cloud.translate.v3.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3.InputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1496,13 +1369,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1515,16 +1385,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1533,8 +1401,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1547,17 +1413,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1565,8 +1430,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1579,25 +1442,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1610,10 +1467,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1623,8 +1477,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1637,17 +1489,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1657,20 +1505,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1679,21 +1525,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1701,35 +1546,28 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1739,21 +1577,17 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1763,7 +1597,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1771,46 +1604,35 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1818,39 +1640,31 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1858,22 +1672,17 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1881,61 +1690,50 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1944,19 +1742,21 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1965,13 +1765,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1993,21 +1790,20 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2033,8 +1829,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2056,19 +1850,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2090,25 +1882,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2129,22 +1919,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2165,20 +1956,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2199,32 +1987,27 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ =
-            new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.InputConfig,
-            com.google.cloud.translate.v3.InputConfig.Builder,
-            com.google.cloud.translate.v3.InputConfigOrBuilder>
-        inputConfigsBuilder_;
+        com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> inputConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2232,9 +2015,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2244,8 +2025,6 @@ public java.util.List getInputConfigs } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2253,9 +2032,7 @@ public java.util.List getInputConfigs
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2265,8 +2042,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2274,9 +2049,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2286,8 +2059,6 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2295,11 +2066,10 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder setInputConfigs( + int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2313,8 +2083,6 @@ public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputCon return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2322,9 +2090,7 @@ public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputCon
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2338,8 +2104,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2347,9 +2111,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2365,8 +2127,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2374,11 +2134,10 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value)
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder addInputConfigs( + int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2392,8 +2151,6 @@ public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputCon return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2401,9 +2158,7 @@ public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputCon
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2417,8 +2172,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2426,9 +2179,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2442,8 +2193,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2451,15 +2200,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2467,8 +2215,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2476,9 +2222,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2491,8 +2235,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2500,9 +2242,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2515,8 +2255,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2524,16 +2262,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(int index) { + public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder( + int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2541,20 +2276,16 @@ public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2562,12 +2293,10 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2575,8 +2304,6 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2584,17 +2311,13 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2602,17 +2325,14 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(int index) { - return getInputConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( + int index) { + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2620,27 +2340,22 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, - com.google.cloud.translate.v3.InputConfig.Builder, - com.google.cloud.translate.v3.InputConfigOrBuilder> + com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, - com.google.cloud.translate.v3.InputConfig.Builder, - com.google.cloud.translate.v3.InputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2648,64 +2363,45 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( private com.google.cloud.translate.v3.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2721,17 +2417,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3.OutputConfig.Builder builderForValue) { @@ -2745,23 +2437,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && outputConfig_ != null - && outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2774,17 +2462,13 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig valu return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2797,17 +2481,13 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2815,63 +2495,48 @@ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder> + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2879,13 +2544,11 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil } return glossaries_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + private com.google.protobuf.MapField internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = - com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2894,195 +2557,160 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil onChanged(); return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3091,13 +2719,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3113,21 +2738,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3147,8 +2771,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3164,19 +2786,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3192,25 +2812,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3225,22 +2843,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3255,20 +2874,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3283,14 +2899,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3300,12 +2918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   private static final com.google.cloud.translate.v3.BatchTranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateTextRequest();
   }
@@ -3314,27 +2932,27 @@ public static com.google.cloud.translate.v3.BatchTranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3349,4 +2967,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
index e5c1b33c3560..113cf3687b09 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateTextRequestOrBuilder
-    extends
+public interface BatchTranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -60,97 +37,74 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -173,8 +127,6 @@ public interface BatchTranslateTextRequestOrBuilder
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -195,13 +147,15 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -222,10 +176,9 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -247,13 +200,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,11 +225,10 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -286,14 +236,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -301,14 +248,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.InputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -316,14 +259,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,15 +270,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -347,138 +282,104 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index); + com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -495,8 +396,6 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -511,13 +410,15 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -532,10 +433,9 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -551,13 +451,11 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -572,5 +470,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
similarity index 70%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
index 7827ff615171..8d73e559b532 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.CreateGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully created.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to create the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully created.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to create the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryMetadata other = - (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3.CreateGlossaryMetadata other = (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,103 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -623,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
       com.google.cloud.translate.v3.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.CreateGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -664,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -685,11 +609,8 @@ public com.google.cloud.translate.v3.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.CreateGlossaryMetadata result =
-          new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.CreateGlossaryMetadata result = new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -703,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -711,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -751,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -790,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -824,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -851,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -873,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -911,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -935,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -968,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1008,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3.CreateGlossaryMetadata.Sta return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1027,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1088,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1107,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1117,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1132,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1151,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1165,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1177,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1192,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1219,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3.CreateGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryMetadata(); } @@ -1233,27 +1090,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java index c19c4c4ddf9b..91012a73b317 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface CreateGlossaryMetadataOrBuilder - extends +public interface CreateGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java similarity index 60% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java index 873c5bb5a8df..145cbf8ff2a8 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, - com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,16 +93,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.Glossary glossary_; /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ @java.lang.Override @@ -137,44 +105,30 @@ public boolean hasGlossary() { return glossary_ != null; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary getGlossary() { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -206,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,18 +172,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryRequest other = - (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3.CreateGlossaryRequest other = (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary().equals(other.getGlossary())) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -252,135 +209,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryRequest) com.google.cloud.translate.v3.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, - com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.CreateGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -395,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -416,11 +369,8 @@ public com.google.cloud.translate.v3.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.CreateGlossaryRequest result = - new com.google.cloud.translate.v3.CreateGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.CreateGlossaryRequest result = new com.google.cloud.translate.v3.CreateGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -431,7 +381,9 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null + ? glossary_ + : glossaryBuilder_.build(); } } @@ -439,39 +391,38 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -479,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -515,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,27 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -572,23 +516,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -596,39 +537,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -638,23 +568,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -664,58 +588,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> - glossaryBuilder_; + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossaryBuilder_; /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ public com.google.cloud.translate.v3.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { @@ -731,17 +636,14 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder setGlossary( + com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossaryBuilder_ == null) { glossary_ = builderForValue.build(); } else { @@ -752,21 +654,17 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builde return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossary_ != null - && glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossary_ != null && + glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -779,15 +677,11 @@ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -800,15 +694,11 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -816,55 +706,43 @@ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { return getGlossaryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? + com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder>( - getGlossary(), getParentForChildren(), isClean()); + glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( + getGlossary(), + getParentForChildren(), + isClean()); glossary_ = null; } return glossaryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -874,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryRequest) private static final com.google.cloud.translate.v3.CreateGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryRequest(); } @@ -888,27 +766,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..cf8b52647f65 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface CreateGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The glossary. + */ + com.google.cloud.translate.v3.Glossary getGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java index 79f39b9d1ae2..407b2058b41d 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.DeleteGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryMetadata other = - (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,103 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -623,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -664,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -685,11 +609,8 @@ public com.google.cloud.translate.v3.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryMetadata result =
-          new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -703,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -711,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -751,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -790,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -824,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -851,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -873,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -911,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -935,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -968,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1008,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3.DeleteGlossaryMetadata.Sta return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1027,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1088,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1107,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1117,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1132,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1151,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1165,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1177,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1192,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1219,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3.DeleteGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(); } @@ -1233,27 +1090,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java index f1522824f1e8..47cc452baf1a 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DeleteGlossaryMetadataOrBuilder - extends +public interface DeleteGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java index 0646b0544ae2..b0844ec79872 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryRequest other = - (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3.DeleteGlossaryRequest other = (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,135 +155,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryRequest) com.google.cloud.translate.v3.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DeleteGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -341,11 +310,8 @@ public com.google.cloud.translate.v3.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.DeleteGlossaryRequest result = - new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DeleteGlossaryRequest result = new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -401,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -434,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -509,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -551,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -586,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3.DeleteGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryRequest(); } @@ -600,27 +537,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..a062efef4d30 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface DeleteGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java similarity index 71% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java index baff0e838394..ec8afcb199fe 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -29,54 +12,48 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -133,14 +107,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -148,8 +119,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -164,8 +133,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,7 +140,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -181,8 +147,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -190,7 +154,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -198,8 +161,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -214,7 +175,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -226,7 +186,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -249,10 +210,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -262,22 +225,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DeleteGlossaryResponse other =
-        (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3.DeleteGlossaryResponse other = (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -306,103 +271,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -411,32 +371,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
       com.google.cloud.translate.v3.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -456,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -477,11 +438,8 @@ public com.google.cloud.translate.v3.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryResponse result =
-          new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.DeleteGlossaryResponse result = new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -492,10 +450,14 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -503,39 +465,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -543,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -582,31 +542,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -616,25 +576,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -643,21 +600,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -665,35 +621,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -703,21 +652,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -727,47 +672,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -788,15 +720,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -807,8 +738,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -817,9 +746,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -832,8 +761,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -851,8 +778,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -865,8 +790,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -877,14 +800,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -892,17 +812,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -910,13 +827,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -924,15 +836,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -940,7 +849,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -951,8 +859,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -975,8 +881,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -985,7 +889,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -996,8 +901,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1008,9 +911,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1023,8 +926,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1044,8 +945,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1060,8 +959,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1074,12 +971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1089,24 +985,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1116,12 +1009,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3.DeleteGlossaryResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryResponse();
   }
@@ -1130,27 +1023,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteGlossaryResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteGlossaryResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1165,4 +1058,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
index 60741c6926e6..e406e3597d8d 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
@@ -1,80 +1,51 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DeleteGlossaryResponseOrBuilder
-    extends
+public interface DeleteGlossaryResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -84,8 +55,6 @@ public interface DeleteGlossaryResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +62,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +73,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
index 451a98239d20..7cc70c4faad6 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageRequest) DetectLanguageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -45,49 +27,45 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, - com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -103,31 +81,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -142,10 +115,7 @@ public SourceCase getSourceCase() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -154,15 +124,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -177,18 +146,17 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,12 +165,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -216,7 +181,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -225,15 +189,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -247,15 +210,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -265,28 +229,22 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { @@ -297,7 +255,8 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -306,24 +265,23 @@ public java.lang.String getContent() { } } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -334,19 +292,15 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -355,30 +309,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -387,34 +341,32 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -430,21 +382,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -464,8 +415,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -481,19 +430,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -509,11 +456,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -521,7 +468,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -533,7 +479,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -546,8 +493,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     getUnknownFields().writeTo(output);
   }
 
@@ -569,15 +520,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -587,22 +538,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageRequest other =
-        (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3.DetectLanguageRequest other = (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent().equals(other.getContent())) return false;
+        if (!getContent()
+            .equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -642,155 +597,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageRequest) com.google.cloud.translate.v3.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, - com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -805,9 +758,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -826,11 +779,8 @@ public com.google.cloud.translate.v3.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3.DetectLanguageRequest result = - new com.google.cloud.translate.v3.DetectLanguageRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DetectLanguageRequest result = new com.google.cloud.translate.v3.DetectLanguageRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -862,39 +812,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DetectLanguageRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest) other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest)other); } else { super.mergeFrom(other); return this; @@ -902,8 +851,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -919,20 +867,19 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest oth bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -960,50 +907,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1013,12 +952,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -1032,8 +971,6 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1048,16 +985,14 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1066,8 +1001,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1082,17 +1015,16 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1100,8 +1032,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1116,25 +1046,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1149,10 +1073,7 @@ public Builder setParent(java.lang.String value) {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1162,8 +1083,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1178,17 +1097,13 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1198,8 +1113,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1213,13 +1126,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1228,8 +1141,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1243,14 +1154,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1258,8 +1170,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1273,22 +1183,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1302,7 +1208,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1312,8 +1217,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1327,14 +1230,12 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1343,14 +1244,11 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1358,14 +1256,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -1375,7 +1270,8 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1386,25 +1282,24 @@ public java.lang.String getContent() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1414,35 +1309,28 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1454,21 +1342,17 @@ public Builder clearContent() { return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1478,21 +1362,19 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1501,22 +1383,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1524,37 +1405,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1564,22 +1438,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1587,19 +1457,21 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1608,13 +1480,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1630,21 +1499,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1664,8 +1532,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1681,19 +1547,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1709,25 +1573,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1742,22 +1604,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1772,20 +1635,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1800,14 +1660,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1817,12 +1679,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3.DetectLanguageRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageRequest();
   }
@@ -1831,27 +1693,27 @@ public static com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1866,4 +1728,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
index 4a1934406da6..98adaa711c0b 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageRequestOrBuilder
-    extends
+public interface DetectLanguageRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -40,16 +22,11 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -64,17 +41,13 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -88,13 +61,10 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -108,78 +78,63 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -196,8 +151,6 @@ public interface DetectLanguageRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -212,13 +165,15 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -233,10 +188,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -252,13 +206,11 @@ public interface DetectLanguageRequestOrBuilder
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -273,7 +225,8 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   com.google.cloud.translate.v3.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
index bdcbc1a96fda..9c1c7cdd3613 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
@@ -1,74 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageResponse) DetectLanguageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, - com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -81,8 +59,6 @@ public java.util.List getLanguag
     return languages_;
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -91,13 +67,11 @@ public java.util.List getLanguag
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -134,12 +104,12 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index) {
+  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -165,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -175,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageResponse other =
-        (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3.DetectLanguageResponse other = (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -205,135 +177,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageResponse) com.google.cloud.translate.v3.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, - com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -370,18 +338,14 @@ public com.google.cloud.translate.v3.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3.DetectLanguageResponse result = - new com.google.cloud.translate.v3.DetectLanguageResponse(this); + com.google.cloud.translate.v3.DetectLanguageResponse result = new com.google.cloud.translate.v3.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.DetectLanguageResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -401,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectLanguageResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse) other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse)other); } else { super.mergeFrom(other); return this; @@ -441,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -461,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse ot languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -496,26 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.DetectedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -525,29 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.DetectedLanguage, - com.google.cloud.translate.v3.DetectedLanguage.Builder, - com.google.cloud.translate.v3.DetectedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -563,8 +515,6 @@ public java.util.List getLanguag
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -580,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -597,8 +545,6 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -606,7 +552,8 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder setLanguages(
+        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -620,8 +567,6 @@ public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLan
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -641,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -664,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -673,7 +614,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder addLanguages(
+        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -687,8 +629,6 @@ public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLan
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -708,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -729,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -742,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -750,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -770,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -790,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -799,12 +730,11 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(int index) {
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(
+        int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -815,14 +745,11 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilde
     public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -830,8 +757,8 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -839,8 +766,6 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -849,12 +774,10 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -862,13 +785,12 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(
+        int index) {
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -876,30 +798,27 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.DetectedLanguage,
-            com.google.cloud.translate.v3.DetectedLanguage.Builder,
-            com.google.cloud.translate.v3.DetectedLanguageOrBuilder>
+        com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.DetectedLanguage,
-                com.google.cloud.translate.v3.DetectedLanguage.Builder,
-                com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -909,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3.DetectLanguageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageResponse();
   }
@@ -923,27 +842,27 @@ public static com.google.cloud.translate.v3.DetectLanguageResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -958,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
index c2923821ebf9..10d47edded3c 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageResponseOrBuilder
-    extends
+public interface DetectLanguageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -33,10 +15,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -46,8 +27,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -57,8 +36,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -66,11 +43,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -78,5 +53,6 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
similarity index 69%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
index c61021ef9e0a..5e22078de8e9 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
@@ -1,81 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ -public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, - com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -84,30 +61,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -134,7 +108,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,7 +119,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -166,7 +140,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,17 +151,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.DetectedLanguage other = - (com.google.cloud.translate.v3.DetectedLanguage) obj; + com.google.cloud.translate.v3.DetectedLanguage other = (com.google.cloud.translate.v3.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,142 +177,139 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectedLanguage) com.google.cloud.translate.v3.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, - com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectedLanguage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override @@ -368,11 +341,8 @@ public com.google.cloud.translate.v3.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3.DetectedLanguage result = - new com.google.cloud.translate.v3.DetectedLanguage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DetectedLanguage result = new com.google.cloud.translate.v3.DetectedLanguage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -391,39 +361,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectedLanguage result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage) other); + return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage)other); } else { super.mergeFrom(other); return this; @@ -466,25 +435,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,26 +460,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object languageCode_ = ""; /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -522,22 +485,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -545,37 +507,30 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -585,22 +540,18 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -608,16 +559,13 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -625,14 +573,11 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ @@ -644,14 +589,11 @@ public Builder setConfidence(float value) { return this; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -660,9 +602,9 @@ public Builder clearConfidence() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -672,12 +614,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectedLanguage) private static final com.google.cloud.translate.v3.DetectedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectedLanguage(); } @@ -686,27 +628,27 @@ public static com.google.cloud.translate.v3.DetectedLanguage getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -721,4 +663,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java similarity index 56% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java index 1933a7deb723..309303d82e0e 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java @@ -1,64 +1,40 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DetectedLanguageOrBuilder - extends +public interface DetectedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java index 9cc9719ccf38..95d687cfdb55 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ -public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentInputConfig) DocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, - com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -91,36 +68,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -128,14 +99,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -148,15 +116,12 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -164,27 +129,22 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -195,18 +155,15 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -221,7 +178,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
    * 
* * string mime_type = 4; - * * @return The mimeType. */ @java.lang.Override @@ -230,15 +186,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -253,15 +208,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -270,7 +226,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,9 +237,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) source_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3.GcsSource) source_); @@ -302,14 +259,13 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.translate.v3.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -322,22 +278,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentInputConfig other = - (com.google.cloud.translate.v3.DocumentInputConfig) obj; + com.google.cloud.translate.v3.DocumentInputConfig other = (com.google.cloud.translate.v3.DocumentInputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -373,135 +331,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentInputConfig) com.google.cloud.translate.v3.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, - com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override @@ -537,11 +491,8 @@ public com.google.cloud.translate.v3.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentInputConfig result = - new com.google.cloud.translate.v3.DocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DocumentInputConfig result = new com.google.cloud.translate.v3.DocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -557,7 +508,8 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -566,39 +518,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -606,28 +557,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: - { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -655,31 +602,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -689,12 +634,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -707,28 +652,22 @@ public Builder clearSource() { private int bitField0_; /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -738,35 +677,27 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -779,20 +710,14 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -800,15 +725,12 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -826,8 +748,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -849,8 +769,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -858,7 +776,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -869,8 +788,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -880,13 +797,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -902,8 +816,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -928,8 +840,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -941,8 +851,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -962,8 +870,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -972,19 +878,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -997,8 +898,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
 
     private java.lang.Object mimeType_ = "";
     /**
-     *
-     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -1013,13 +912,13 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * 
* * string mime_type = 4; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1028,8 +927,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1044,14 +941,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1059,8 +957,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1075,22 +971,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 4; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1105,7 +997,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 4; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1115,8 +1006,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1131,23 +1020,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1157,12 +1044,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentInputConfig) private static final com.google.cloud.translate.v3.DocumentInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentInputConfig(); } @@ -1171,27 +1058,27 @@ public static com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1206,4 +1093,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java index 0b19f21c69b1..50777c79ecb4 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentInputConfigOrBuilder - extends +public interface DocumentInputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -87,8 +57,6 @@ public interface DocumentInputConfigOrBuilder
   com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -103,13 +71,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -124,10 +89,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java similarity index 76% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java index 5aace366bb62..d82dcac7e052 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentOutputConfig) DocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -90,28 +67,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -129,9 +102,9 @@ public DestinationCase getDestinationCase() {
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -139,7 +112,7 @@ public DestinationCase getDestinationCase() {
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -148,7 +121,7 @@ public DestinationCase getDestinationCase() {
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -158,10 +131,7 @@ public DestinationCase getDestinationCase() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -169,8 +139,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -188,9 +156,9 @@ public boolean hasGcsDestination() {
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -198,7 +166,7 @@ public boolean hasGcsDestination() {
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -207,7 +175,7 @@ public boolean hasGcsDestination() {
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -217,22 +185,17 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -250,9 +213,9 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -260,7 +223,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -269,7 +232,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -279,25 +242,20 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -311,7 +269,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -320,15 +277,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -342,15 +298,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -359,7 +316,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } @@ -388,9 +345,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -403,19 +359,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentOutputConfig other = - (com.google.cloud.translate.v3.DocumentOutputConfig) obj; + com.google.cloud.translate.v3.DocumentOutputConfig other = (com.google.cloud.translate.v3.DocumentOutputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -447,135 +404,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentOutputConfig) com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -590,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -611,11 +564,8 @@ public com.google.cloud.translate.v3.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentOutputConfig result = - new com.google.cloud.translate.v3.DocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DocumentOutputConfig result = new com.google.cloud.translate.v3.DocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -631,7 +581,8 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentOutputConfig re private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -640,39 +591,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConf public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -680,23 +630,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -724,25 +671,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -752,12 +698,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -770,13 +716,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -794,9 +735,9 @@ public Builder clearDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -804,7 +745,7 @@ public Builder clearDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -813,7 +754,7 @@ public Builder clearDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -823,10 +764,7 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -834,8 +772,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -853,9 +789,9 @@ public boolean hasGcsDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -863,7 +799,7 @@ public boolean hasGcsDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -872,7 +808,7 @@ public boolean hasGcsDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -882,10 +818,7 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override @@ -903,8 +836,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -922,9 +853,9 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -932,7 +863,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -941,7 +872,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -951,9 +882,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -969,8 +898,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -988,9 +915,9 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -998,7 +925,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1007,7 +934,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1017,9 +944,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination( com.google.cloud.translate.v3.GcsDestination.Builder builderForValue) { @@ -1033,8 +958,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1052,9 +975,9 @@ public Builder setGcsDestination(
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1062,7 +985,7 @@ public Builder setGcsDestination(
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1071,7 +994,7 @@ public Builder setGcsDestination(
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1081,19 +1004,14 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3.GcsDestination.newBuilder( - (com.google.cloud.translate.v3.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1109,8 +1027,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1128,9 +1044,9 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1138,7 +1054,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1147,7 +1063,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1157,9 +1073,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1178,8 +1092,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1197,9 +1109,9 @@ public Builder clearGcsDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1207,7 +1119,7 @@ public Builder clearGcsDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1216,7 +1128,7 @@ public Builder clearGcsDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1226,16 +1138,12 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1253,9 +1161,9 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1263,7 +1171,7 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1272,7 +1180,7 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1282,9 +1190,7 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1298,8 +1204,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1317,9 +1221,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1327,7 +1231,7 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1336,7 +1240,7 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1346,24 +1250,17 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1376,8 +1273,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1391,13 +1286,13 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1406,8 +1301,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1421,14 +1314,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1436,8 +1330,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1451,22 +1343,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1480,7 +1368,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1490,8 +1377,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1505,23 +1390,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1531,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentOutputConfig) private static final com.google.cloud.translate.v3.DocumentOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentOutputConfig(); } @@ -1545,27 +1428,27 @@ public static com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1580,4 +1463,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java index 2e97dc2ad3eb..4b5da369adef 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentOutputConfigOrBuilder - extends +public interface DocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -43,9 +25,9 @@ public interface DocumentOutputConfigOrBuilder
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -53,7 +35,7 @@ public interface DocumentOutputConfigOrBuilder
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -62,7 +44,7 @@ public interface DocumentOutputConfigOrBuilder
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -72,16 +54,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -99,9 +76,9 @@ public interface DocumentOutputConfigOrBuilder
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -109,7 +86,7 @@ public interface DocumentOutputConfigOrBuilder
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -118,7 +95,7 @@ public interface DocumentOutputConfigOrBuilder
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -128,16 +105,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -155,9 +127,9 @@ public interface DocumentOutputConfigOrBuilder
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -165,7 +137,7 @@ public interface DocumentOutputConfigOrBuilder
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -174,7 +146,7 @@ public interface DocumentOutputConfigOrBuilder
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -184,15 +156,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -206,13 +174,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -226,10 +191,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java index 751649958567..599656c29380 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ -public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentTranslation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentTranslation) DocumentTranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -45,32 +27,28 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, - com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -78,16 +56,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List getByteStreamOutputsList() { + public java.util.List + getByteStreamOutputsList() { return byteStreamOutputs_; } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -95,15 +71,12 @@ public java.util.List getByteStreamOutputsList()
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -111,7 +84,6 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -171,12 +139,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -186,7 +151,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -195,15 +159,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -213,15 +176,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -230,7 +194,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -264,8 +228,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -284,17 +248,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentTranslation other = - (com.google.cloud.translate.v3.DocumentTranslation) obj; + com.google.cloud.translate.v3.DocumentTranslation other = (com.google.cloud.translate.v3.DocumentTranslation) obj; - if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList() + .equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,135 +286,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentTranslation) com.google.cloud.translate.v3.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, - com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentTranslation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override @@ -481,18 +443,14 @@ public com.google.cloud.translate.v3.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3.DocumentTranslation result = - new com.google.cloud.translate.v3.DocumentTranslation(this); + com.google.cloud.translate.v3.DocumentTranslation result = new com.google.cloud.translate.v3.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.DocumentTranslation result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -514,39 +472,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentTranslation res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation)other); } else { super.mergeFrom(other); return this; @@ -554,8 +511,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -602,32 +558,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,22 +589,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List byteStreamOutputs_ = - java.util.Collections.emptyList(); - + private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = - new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -660,17 +606,14 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ - public java.util.List getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(byteStreamOutputs_) - : byteStreamOutputs_; + public java.util.List + getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -678,15 +621,12 @@ public java.util.List getByteStreamOutputsList()
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -694,7 +634,6 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -702,8 +641,6 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -711,23 +648,19 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setByteStreamOutputs( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -735,22 +668,17 @@ public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString va
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -758,20 +686,18 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, byteStreamOutputs_); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -779,7 +705,6 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -791,20 +716,18 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -813,21 +736,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -835,35 +757,28 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -873,21 +788,17 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -897,8 +808,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -908,13 +817,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -923,8 +832,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -934,14 +841,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -949,8 +857,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -960,22 +866,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 3; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -985,7 +887,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 3; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -995,8 +896,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1006,23 +905,21 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1032,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentTranslation) private static final com.google.cloud.translate.v3.DocumentTranslation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentTranslation(); } @@ -1046,27 +943,27 @@ public static com.google.cloud.translate.v3.DocumentTranslation getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,4 +978,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java similarity index 76% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java index f3f741b7c96f..a0de308766f1 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentTranslationOrBuilder - extends +public interface DocumentTranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -33,13 +15,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -47,13 +26,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -61,40 +37,32 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -104,13 +72,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -120,8 +85,8 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java index a9f4428e1c59..dbeaf322df16 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, - com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -105,15 +81,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -122,7 +99,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -158,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3.GcsDestination other = - (com.google.cloud.translate.v3.GcsDestination) obj; + com.google.cloud.translate.v3.GcsDestination other = (com.google.cloud.translate.v3.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,136 +162,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsDestination) com.google.cloud.translate.v3.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, - com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsDestination.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override @@ -345,11 +318,8 @@ public com.google.cloud.translate.v3.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3.GcsDestination buildPartial() { - com.google.cloud.translate.v3.GcsDestination result = - new com.google.cloud.translate.v3.GcsDestination(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GcsDestination result = new com.google.cloud.translate.v3.GcsDestination(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +335,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsDestination result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3.GcsDestination) other); + return mergeFrom((com.google.cloud.translate.v3.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -437,19 +406,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,13 +426,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -475,13 +439,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -490,8 +454,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -501,14 +463,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -516,8 +479,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -527,22 +488,18 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -552,7 +509,6 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -562,8 +518,6 @@ public Builder clearOutputUriPrefix() { return this; } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -573,23 +527,21 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsDestination) private static final com.google.cloud.translate.v3.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsDestination(); } @@ -613,27 +565,27 @@ public static com.google.cloud.translate.v3.GcsDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +600,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java similarity index 64% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java index 83501d8cc6bd..70032240ccc2 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -35,13 +17,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -51,8 +30,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java similarity index 67% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java index 4da305a923c0..9be42c2bf528 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, - com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -150,14 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsSource)) { return super.equals(obj); } com.google.cloud.translate.v3.GcsSource other = (com.google.cloud.translate.v3.GcsSource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsSource) com.google.cloud.translate.v3.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, - com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsSource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override @@ -336,11 +310,8 @@ public com.google.cloud.translate.v3.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3.GcsSource buildPartial() { - com.google.cloud.translate.v3.GcsSource result = - new com.google.cloud.translate.v3.GcsSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GcsSource result = new com.google.cloud.translate.v3.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -356,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsSource result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3.GcsSource) other); + return mergeFrom((com.google.cloud.translate.v3.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -428,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -450,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -477,21 +442,20 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -499,35 +463,28 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -537,30 +494,26 @@ public Builder clearInputUri() { return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -570,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsSource) private static final com.google.cloud.translate.v3.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsSource(); } @@ -584,27 +537,27 @@ public static com.google.cloud.translate.v3.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -619,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java similarity index 52% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java index 08a1d20b8daa..d2e2d20ee1e1 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java index d25600ea3926..835dc64c2b00 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetGlossaryRequest) GetGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, - com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetGlossaryRequest other = - (com.google.cloud.translate.v3.GetGlossaryRequest) obj; + com.google.cloud.translate.v3.GetGlossaryRequest other = (com.google.cloud.translate.v3.GetGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetGlossaryRequest) com.google.cloud.translate.v3.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, - com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -341,11 +310,8 @@ public com.google.cloud.translate.v3.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.GetGlossaryRequest result = - new com.google.cloud.translate.v3.GetGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GetGlossaryRequest result = new com.google.cloud.translate.v3.GetGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GetGlossaryRequest resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -401,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -434,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -509,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -551,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -586,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetGlossaryRequest) private static final com.google.cloud.translate.v3.GetGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetGlossaryRequest(); } @@ -600,27 +537,27 @@ public static com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..741637e2de6f --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface GetGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java index 35a3d6bc65f8..58b8dd01ff91 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSupportedLanguagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -45,32 +27,28 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -87,10 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -99,15 +74,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -124,18 +98,17 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -144,12 +117,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -157,7 +127,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ @java.lang.Override @@ -166,15 +135,14 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -182,15 +150,16 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -199,12 +168,9 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -222,7 +188,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -257,15 +221,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -274,7 +239,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -322,17 +287,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = - (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; - if (!getModel().equals(other.getModel())) return false; + com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getDisplayLanguageCode() + .equals(other.getDisplayLanguageCode())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,136 +323,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.cloud.translate.v3.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetSupportedLanguagesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override @@ -518,11 +480,8 @@ public com.google.cloud.translate.v3.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = - new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -544,39 +503,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GetSupportedLanguagesRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) other); + return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest)other); } else { super.mergeFrom(other); return this; @@ -584,8 +542,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetSupportedLanguagesRequest other) { - if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -627,31 +584,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,13 +614,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -684,16 +634,14 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -702,8 +650,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -720,17 +666,16 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -738,8 +683,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -756,25 +699,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -791,10 +728,7 @@ public Builder setParent(java.lang.String value) {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -804,8 +738,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -822,17 +754,13 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -842,8 +770,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayLanguageCode_ = ""; /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -851,13 +777,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -866,8 +792,6 @@ public java.lang.String getDisplayLanguageCode() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -875,14 +799,15 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -890,8 +815,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -899,22 +822,18 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -922,7 +841,6 @@ public Builder setDisplayLanguageCode(java.lang.String value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -932,8 +850,6 @@ public Builder clearDisplayLanguageCode() { return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -941,14 +857,12 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -958,8 +872,6 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object model_ = ""; /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -977,13 +889,13 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value)
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -992,8 +904,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1011,14 +921,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1026,8 +937,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1045,22 +954,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1078,7 +983,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1088,8 +992,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1107,23 +1009,21 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1133,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) private static final com.google.cloud.translate.v3.GetSupportedLanguagesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(); } @@ -1147,27 +1047,27 @@ public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1182,4 +1082,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java index e1201914f13a..f9e18ec31480 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GetSupportedLanguagesRequestOrBuilder - extends +public interface GetSupportedLanguagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -42,16 +24,11 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -68,17 +45,13 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -86,13 +59,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -100,14 +70,12 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString + getDisplayLanguageCodeBytes(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -125,13 +93,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -149,8 +114,8 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java index 11fd69381128..d96c78b5bf6f 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Represents a glossary built from user-provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ -public final class Glossary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Glossary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary) GlossaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Glossary() { name_ = ""; displayName_ = ""; @@ -44,103 +26,88 @@ private Glossary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, - com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder - extends + public interface LanguageCodePairOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodePair extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -148,39 +115,34 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -189,30 +151,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -221,19 +183,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -242,30 +200,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -274,7 +232,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +243,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -316,16 +274,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodePair other = - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -347,94 +306,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -444,41 +398,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override @@ -510,11 +462,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodePair result = - new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -533,41 +482,38 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodePa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair)other); } else { super.mergeFrom(other); return this; @@ -575,8 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodePair other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -613,25 +558,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,26 +583,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -669,22 +608,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -692,37 +630,30 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -732,22 +663,18 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -757,21 +684,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -780,22 +705,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -803,37 +727,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -843,29 +760,24 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -878,12 +790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) private static final com.google.cloud.translate.v3.Glossary.LanguageCodePair DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(); } @@ -892,28 +804,27 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,16 +839,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LanguageCodesSetOrBuilder - extends + public interface LanguageCodesSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -945,13 +854,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -959,13 +866,10 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -973,14 +877,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -988,64 +889,58 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodesSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodesSet() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1053,15 +948,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1069,15 +962,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1085,7 +975,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1093,8 +982,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1102,16 +989,15 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1123,7 +1009,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1152,15 +1039,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1182,94 +1069,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1279,53 +1161,52 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override @@ -1344,11 +1225,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = - new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1365,41 +1243,38 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodesS public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet)other); } else { super.mergeFrom(other); return this; @@ -1407,8 +1282,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodesSet other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1445,20 +1319,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1468,12 +1340,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1481,8 +1351,6 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1490,16 +1358,14 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1507,15 +1373,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
        * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1523,7 +1386,6 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1531,8 +1393,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1540,16 +1400,14 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1557,15 +1415,13 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1573,8 +1429,6 @@ public Builder setLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1582,14 +1436,12 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1597,8 +1449,6 @@ public Builder addLanguageCodes(java.lang.String value) { return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1606,20 +1456,19 @@ public Builder addLanguageCodes(java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1627,19 +1476,16 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
        * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1647,14 +1493,12 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1662,7 +1506,6 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1675,12 +1518,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) private static final com.google.cloud.translate.v3.Glossary.LanguageCodesSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(); } @@ -1689,28 +1532,27 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1725,22 +1567,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int languagesCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object languages_; - public enum LanguagesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; - private LanguagesCase(int value) { this.value = value; } @@ -1756,40 +1595,33 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: - return LANGUAGE_PAIR; - case 4: - return LANGUAGE_CODES_SET; - case 0: - return LANGUAGES_NOT_SET; - default: - return null; + case 3: return LANGUAGE_PAIR; + case 4: return LANGUAGE_CODES_SET; + case 0: return LANGUAGES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1798,30 +1630,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1831,14 +1663,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1846,26 +1675,21 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -1873,24 +1697,20 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1898,26 +1718,21 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
@@ -1925,10 +1740,9 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1936,15 +1750,12 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1952,26 +1763,19 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1981,22 +1785,17 @@ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null
-        ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
-        : inputConfig_;
+    return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -2007,15 +1806,11 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ @java.lang.Override @@ -2023,15 +1818,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ @java.lang.Override @@ -2039,14 +1830,11 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -2056,15 +1844,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -2072,15 +1856,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -2088,14 +1868,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -2103,18 +1880,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -2123,29 +1896,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2154,7 +1927,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2166,7 +1938,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2204,26 +1977,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, displayName_); @@ -2236,35 +2011,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary)) { return super.equals(obj); } com.google.cloud.translate.v3.Glossary other = (com.google.cloud.translate.v3.Glossary) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (getEntryCount() != other.getEntryCount()) return false; + if (getEntryCount() + != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair().equals(other.getLanguagePair())) return false; + if (!getLanguagePair() + .equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet() + .equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2315,136 +2098,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Glossary parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Glossary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a glossary built from user-provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary) com.google.cloud.translate.v3.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, - com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2479,9 +2258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override @@ -2500,11 +2279,8 @@ public com.google.cloud.translate.v3.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary buildPartial() { - com.google.cloud.translate.v3.Glossary result = - new com.google.cloud.translate.v3.Glossary(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Glossary result = new com.google.cloud.translate.v3.Glossary(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -2516,17 +2292,22 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = - inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); + result.inputConfig_ = inputConfigBuilder_ == null + ? inputConfig_ + : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; @@ -2536,10 +2317,12 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && languagePairBuilder_ != null) { + if (languagesCase_ == 3 && + languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && + languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2548,39 +2331,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary) { - return mergeFrom((com.google.cloud.translate.v3.Glossary) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary)other); } else { super.mergeFrom(other); return this; @@ -2612,20 +2394,17 @@ public Builder mergeFrom(com.google.cloud.translate.v3.Glossary other) { onChanged(); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: - { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: - { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: - { - break; - } + case LANGUAGE_PAIR: { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2653,62 +2432,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: - { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getLanguagePairFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2718,12 +2497,12 @@ public Builder mergeFrom( } // finally return this; } - private int languagesCase_ = 0; private java.lang.Object languages_; - - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public Builder clearLanguages() { @@ -2737,21 +2516,19 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2760,22 +2537,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2783,37 +2559,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2823,22 +2592,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2847,19 +2612,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> - languagePairBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2867,14 +2626,11 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override @@ -2892,8 +2648,6 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2914,8 +2668,6 @@ public Builder setLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCo return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2934,25 +2686,18 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair( - com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 - && languages_ - != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder( - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 3 && + languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -2968,8 +2713,6 @@ public Builder mergeLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2993,21 +2736,16 @@ public Builder clearLanguagePair() { return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder - getLanguagePairBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3015,8 +2753,7 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -3027,8 +2764,6 @@ public Builder clearLanguagePair() { } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3036,19 +2771,14 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -3060,19 +2790,13 @@ public Builder clearLanguagePair() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> - languageCodesSetBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -3080,14 +2804,11 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ @java.lang.Override @@ -3105,16 +2826,13 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3128,8 +2846,6 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3148,25 +2864,18 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 - && languages_ - != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder( - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 4 && + languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -3182,8 +2891,6 @@ public Builder mergeLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3207,21 +2914,16 @@ public Builder clearLanguageCodesSet() { return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder - getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3229,8 +2931,7 @@ public Builder clearLanguageCodesSet() { * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -3241,8 +2942,6 @@ public Builder clearLanguageCodesSet() { } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3250,19 +2949,14 @@ public Builder clearLanguageCodesSet() { * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -3275,49 +2969,36 @@ public Builder clearLanguageCodesSet() { private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GlossaryInputConfig, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder, - com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3339,8 +3020,6 @@ public Builder setInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3360,8 +3039,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3371,10 +3048,9 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && inputConfig_ != null
-            && inputConfig_
-                != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          inputConfig_ != null &&
+          inputConfig_ != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -3387,8 +3063,6 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3407,8 +3081,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3422,8 +3094,6 @@ public com.google.cloud.translate.v3.GlossaryInputConfig.Builder getInputConfigB
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3435,14 +3105,11 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3451,32 +3118,26 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
      * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GlossaryInputConfig,
-            com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
-            com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>
+        com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GlossaryInputConfig,
-                com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
-                com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_;
+    private int entryCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -3484,14 +3145,11 @@ public int getEntryCount() { return entryCount_; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3503,14 +3161,11 @@ public Builder setEntryCount(int value) { return this; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3522,58 +3177,39 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3589,17 +3225,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3610,21 +3243,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3637,15 +3266,11 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3658,15 +3283,11 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3674,48 +3295,36 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3723,35 +3332,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3762,14 +3360,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3785,16 +3380,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3805,20 +3398,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3831,14 +3421,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3851,14 +3438,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3866,44 +3450,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -3911,20 +3487,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3933,21 +3507,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3955,35 +3528,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3993,30 +3559,26 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4026,12 +3588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary) private static final com.google.cloud.translate.v3.Glossary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary(); } @@ -4040,27 +3602,27 @@ public static com.google.cloud.translate.v3.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4075,4 +3637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java index 51e6da2ec7e3..61296364dabe 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GlossaryInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GlossaryInputConfig) GlossaryInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GlossaryInputConfig() {} + private GlossaryInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -135,7 +109,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -143,8 +116,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -170,19 +141,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -212,13 +180,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -230,7 +197,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -244,9 +212,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -256,18 +223,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.GlossaryInputConfig other =
-        (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3.GlossaryInputConfig other = (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -297,135 +264,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GlossaryInputConfig) com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -460,11 +423,8 @@ public com.google.cloud.translate.v3.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3.GlossaryInputConfig result = - new com.google.cloud.translate.v3.GlossaryInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GlossaryInputConfig result = new com.google.cloud.translate.v3.GlossaryInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -477,7 +437,8 @@ private void buildPartial0(com.google.cloud.translate.v3.GlossaryInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -486,39 +447,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig)other); } else { super.mergeFrom(other); return this; @@ -526,18 +486,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -565,19 +522,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,12 +544,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -605,13 +562,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -637,7 +589,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -645,8 +596,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -672,7 +621,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -690,8 +638,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -732,8 +678,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -760,7 +704,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -771,8 +716,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -801,13 +744,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -823,8 +763,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -868,8 +806,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -900,8 +836,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -940,8 +874,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -969,19 +901,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -991,9 +918,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1003,12 +930,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3.GlossaryInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GlossaryInputConfig();
   }
@@ -1017,27 +944,27 @@ public static com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GlossaryInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GlossaryInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1052,4 +979,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
similarity index 84%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
index e759dd0a8775..fb22a8f7160c 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryInputConfigOrBuilder
-    extends
+public interface GlossaryInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -51,13 +33,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -83,13 +62,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
similarity index 100%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
similarity index 81%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
index 1a660f1ad122..43319bf6f093 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
@@ -1,82 +1,53 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryOrBuilder
-    extends
+public interface GlossaryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -86,32 +57,24 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
@@ -121,34 +84,26 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -159,118 +114,88 @@ public interface GlossaryOrBuilder
   com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ int getEntryCount(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); com.google.cloud.translate.v3.Glossary.LanguagesCase getLanguagesCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java index 235db7d84b73..67e7ac456466 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, - com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -90,31 +67,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -123,7 +95,6 @@ public SourceCase getSourceCase() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -132,15 +103,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -149,15 +119,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -167,8 +138,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -191,7 +160,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -199,8 +167,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -223,19 +189,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -262,13 +225,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -280,7 +242,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -300,9 +263,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -312,19 +274,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.InputConfig other =
-        (com.google.cloud.translate.v3.InputConfig) obj;
+    com.google.cloud.translate.v3.InputConfig other = (com.google.cloud.translate.v3.InputConfig) obj;
 
-    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -355,136 +318,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.InputConfig) com.google.cloud.translate.v3.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, - com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.InputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override @@ -520,11 +479,8 @@ public com.google.cloud.translate.v3.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.InputConfig buildPartial() { - com.google.cloud.translate.v3.InputConfig result = - new com.google.cloud.translate.v3.InputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.InputConfig result = new com.google.cloud.translate.v3.InputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -540,7 +496,8 @@ private void buildPartial0(com.google.cloud.translate.v3.InputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -549,39 +506,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3.InputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -596,15 +552,13 @@ public Builder mergeFrom(com.google.cloud.translate.v3.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -632,25 +586,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,12 +613,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -679,8 +632,6 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -689,13 +640,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -704,8 +655,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -714,14 +663,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -729,8 +679,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -739,22 +687,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -763,7 +707,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -773,8 +716,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -783,14 +724,12 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -799,13 +738,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -828,7 +762,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -836,8 +769,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -860,7 +791,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -878,8 +808,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -917,8 +845,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -942,7 +868,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -953,8 +880,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -980,13 +905,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1002,8 +924,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1044,8 +964,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1073,8 +991,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1110,8 +1026,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1136,19 +1050,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1158,9 +1067,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1170,12 +1079,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.InputConfig)
   private static final com.google.cloud.translate.v3.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.InputConfig();
   }
@@ -1184,27 +1093,27 @@ public static com.google.cloud.translate.v3.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1219,4 +1128,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
similarity index 86%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
index 382010027946..9ba8a5b4c0ec 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -34,13 +16,10 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -49,14 +28,12 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +56,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -108,13 +82,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
similarity index 75%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
index 90cb92cb5494..cc8459ab2ed5 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesRequest) ListGlossariesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,40 +27,33 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, - com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,15 +95,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -139,12 +109,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -153,7 +120,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +128,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -179,15 +144,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -196,12 +162,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -222,7 +185,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -231,15 +193,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -260,15 +221,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -277,7 +239,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -315,7 +277,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -331,18 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesRequest other = - (com.google.cloud.translate.v3.ListGlossariesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.translate.v3.ListGlossariesRequest other = (com.google.cloud.translate.v3.ListGlossariesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,135 +334,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesRequest) com.google.cloud.translate.v3.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, - com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -509,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -530,11 +492,8 @@ public com.google.cloud.translate.v3.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3.ListGlossariesRequest result = - new com.google.cloud.translate.v3.ListGlossariesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.ListGlossariesRequest result = new com.google.cloud.translate.v3.ListGlossariesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -559,39 +518,38 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest) other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest)other); } else { super.mergeFrom(other); return this; @@ -599,8 +557,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -645,37 +602,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -685,27 +637,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -714,23 +661,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -738,39 +682,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -780,23 +713,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -804,17 +731,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -822,15 +746,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -842,15 +763,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -862,8 +780,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -872,13 +788,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -887,8 +803,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -897,14 +811,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -912,8 +827,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -922,22 +835,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -946,7 +855,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -956,8 +864,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -966,14 +872,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -983,8 +887,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1005,13 +907,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1020,8 +922,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1042,14 +942,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1057,8 +958,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1079,22 +978,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1115,7 +1010,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1125,8 +1019,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1147,23 +1039,21 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1173,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesRequest) private static final com.google.cloud.translate.v3.ListGlossariesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesRequest(); } @@ -1187,27 +1077,27 @@ public static com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1222,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java index 8395ca4fd025..fd96eb4ac5b2 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java @@ -1,74 +1,44 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesRequestOrBuilder - extends +public interface ListGlossariesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -77,13 +47,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -92,14 +59,12 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -120,13 +85,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -147,8 +109,8 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java index 017627031f51..05cfe9f7e96f 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesResponse) ListGlossariesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, - com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List glossaries_; /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -81,8 +59,6 @@ public java.util.List getGlossariesList( return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -90,13 +66,11 @@ public java.util.List getGlossariesList( * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -108,8 +82,6 @@ public int getGlossariesCount() { return glossaries_.size(); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -130,17 +100,15 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -148,7 +116,6 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -219,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesResponse other = - (com.google.cloud.translate.v3.ListGlossariesResponse) obj; + com.google.cloud.translate.v3.ListGlossariesResponse other = (com.google.cloud.translate.v3.ListGlossariesResponse) obj; - if (!getGlossariesList().equals(other.getGlossariesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getGlossariesList() + .equals(other.getGlossariesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,135 +234,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesResponse) com.google.cloud.translate.v3.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, - com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -431,18 +396,14 @@ public com.google.cloud.translate.v3.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3.ListGlossariesResponse result = - new com.google.cloud.translate.v3.ListGlossariesResponse(this); + com.google.cloud.translate.v3.ListGlossariesResponse result = new com.google.cloud.translate.v3.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.ListGlossariesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -465,39 +426,38 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse) other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse)other); } else { super.mergeFrom(other); return this; @@ -505,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -525,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse ot glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlossariesFieldBuilder() - : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGlossariesFieldBuilder() : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -565,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.Glossary m = - input.readMessage( - com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3.Glossary m = + input.readMessage( + com.google.cloud.translate.v3.Glossary.parser(), + extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -600,28 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> - glossariesBuilder_; + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossariesBuilder_; /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -636,8 +585,6 @@ public java.util.List getGlossariesList( } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -652,8 +599,6 @@ public int getGlossariesCount() { } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -668,15 +613,14 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { + public Builder setGlossaries( + int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,8 +634,6 @@ public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary v return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -710,8 +652,6 @@ public Builder setGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -732,15 +672,14 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { + public Builder addGlossaries( + int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -754,15 +693,14 @@ public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary v return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder addGlossaries( + com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); glossaries_.add(builderForValue.build()); @@ -773,8 +711,6 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder buil return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -793,8 +729,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -805,7 +739,8 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -813,8 +748,6 @@ public Builder addAllGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -832,8 +765,6 @@ public Builder clearGlossaries() { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -851,44 +782,39 @@ public Builder removeGlossaries(int index) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder(int index) { + public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder( + int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); - } else { + return glossaries_.get(index); } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -896,8 +822,6 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -905,48 +829,42 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder().addBuilder( + com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int index) { - return getGlossariesFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder( + int index) { + return getGlossariesFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder>( - glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( + glossaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -954,8 +872,6 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -963,13 +879,13 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int i
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -978,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -987,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1002,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1011,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1034,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1053,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesResponse) private static final com.google.cloud.translate.v3.ListGlossariesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesResponse(); } @@ -1093,27 +997,27 @@ public static com.google.cloud.translate.v3.ListGlossariesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java index 8b89b523c5be..29c4dd7cf828 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesResponseOrBuilder - extends +public interface ListGlossariesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List getGlossariesList(); + java.util.List + getGlossariesList(); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -44,8 +25,6 @@ public interface ListGlossariesResponseOrBuilder */ com.google.cloud.translate.v3.Glossary getGlossaries(int index); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -54,30 +33,25 @@ public interface ListGlossariesResponseOrBuilder */ int getGlossariesCount(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index); + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -85,13 +59,10 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -99,8 +70,8 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java similarity index 100% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java similarity index 88% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java index cdc55677ab0c..deaa8f9097e5 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, - com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -185,7 +159,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -193,8 +166,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -270,19 +241,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -362,13 +330,12 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -380,7 +347,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -394,9 +362,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -406,18 +373,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.OutputConfig other =
-        (com.google.cloud.translate.v3.OutputConfig) obj;
+    com.google.cloud.translate.v3.OutputConfig other = (com.google.cloud.translate.v3.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -446,136 +413,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.OutputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.OutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.OutputConfig) com.google.cloud.translate.v3.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, - com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.OutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override @@ -610,11 +573,8 @@ public com.google.cloud.translate.v3.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.OutputConfig buildPartial() { - com.google.cloud.translate.v3.OutputConfig result = - new com.google.cloud.translate.v3.OutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.OutputConfig result = new com.google.cloud.translate.v3.OutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -627,7 +587,8 @@ private void buildPartial0(com.google.cloud.translate.v3.OutputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -636,39 +597,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.OutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -678,15 +638,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.translate.v3.OutputConfig other) { if (other == com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -714,19 +672,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -736,12 +694,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -754,13 +712,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -836,7 +789,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -844,8 +796,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -921,7 +871,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -939,8 +888,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1031,8 +978,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1121,8 +1066,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1201,13 +1144,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -1223,8 +1163,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1318,8 +1256,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1400,8 +1336,6 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1490,8 +1424,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1569,19 +1501,14 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination,
-            com.google.cloud.translate.v3.GcsDestination.Builder,
-            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsDestination,
-                com.google.cloud.translate.v3.GcsDestination.Builder,
-                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1591,9 +1518,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       onChanged();
       return gcsDestinationBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1603,12 +1530,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.OutputConfig)
   private static final com.google.cloud.translate.v3.OutputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.OutputConfig();
   }
@@ -1617,27 +1544,27 @@ public static com.google.cloud.translate.v3.OutputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public OutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public OutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1652,4 +1579,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
similarity index 94%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
index e5a9617a4dd6..ebbf02b24155 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface OutputConfigOrBuilder
-    extends
+public interface OutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -101,13 +83,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -183,13 +162,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
index ae1b11b64191..1fd9d3dc0283 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
  */
-public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SupportedLanguage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguage)
     SupportedLanguageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -45,32 +27,28 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.SupportedLanguage.class,
-            com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
-   *
-   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -105,15 +81,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -122,19 +99,15 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -143,30 +116,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -177,14 +150,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** - * - * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -195,14 +165,11 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** - * - * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -211,7 +178,6 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -252,10 +219,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,18 +234,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.SupportedLanguage other = - (com.google.cloud.translate.v3.SupportedLanguage) obj; + com.google.cloud.translate.v3.SupportedLanguage other = (com.google.cloud.translate.v3.SupportedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getSupportSource() != other.getSupportSource()) return false; - if (getSupportTarget() != other.getSupportTarget()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getSupportSource() + != other.getSupportSource()) return false; + if (getSupportTarget() + != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,112 +265,109 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -406,32 +375,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguage)
       com.google.cloud.translate.v3.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.SupportedLanguage.class,
-              com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.SupportedLanguage.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -465,11 +435,8 @@ public com.google.cloud.translate.v3.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3.SupportedLanguage result =
-          new com.google.cloud.translate.v3.SupportedLanguage(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.SupportedLanguage result = new com.google.cloud.translate.v3.SupportedLanguage(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -494,39 +461,38 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguage resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage) other);
+        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance()) return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -578,37 +543,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                supportSource_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                supportTarget_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              supportSource_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              supportTarget_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,13 +578,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -633,13 +590,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -648,8 +605,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -658,14 +613,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -673,8 +629,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -683,22 +637,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -707,7 +657,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -717,8 +666,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -727,14 +674,12 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -744,21 +689,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -767,22 +710,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -790,37 +732,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -830,22 +765,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -853,16 +784,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean supportSource_; + private boolean supportSource_ ; /** - * - * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -870,14 +798,11 @@ public boolean getSupportSource() { return supportSource_; } /** - * - * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; - * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -889,14 +814,11 @@ public Builder setSupportSource(boolean value) { return this; } /** - * - * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; - * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -906,16 +828,13 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_; + private boolean supportTarget_ ; /** - * - * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -923,14 +842,11 @@ public boolean getSupportTarget() { return supportTarget_; } /** - * - * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; - * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -942,14 +858,11 @@ public Builder setSupportTarget(boolean value) { return this; } /** - * - * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; - * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -958,9 +871,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguage) private static final com.google.cloud.translate.v3.SupportedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguage(); } @@ -984,27 +897,27 @@ public static com.google.cloud.translate.v3.SupportedLanguage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java index 37c368f31ecf..558c0e71e25a 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface SupportedLanguageOrBuilder - extends +public interface SupportedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -34,13 +16,10 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -49,60 +28,49 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ boolean getSupportSource(); /** - * - * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java index 72b8b288fe39..ee010be134cc 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ -public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SupportedLanguages extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguages) SupportedLanguagesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, - com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -81,8 +59,6 @@ public java.util.List getLangua
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -91,13 +67,11 @@ public java.util.List getLangua
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -134,12 +104,12 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index) {
+  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -165,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -175,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.SupportedLanguages other =
-        (com.google.cloud.translate.v3.SupportedLanguages) obj;
+    com.google.cloud.translate.v3.SupportedLanguages other = (com.google.cloud.translate.v3.SupportedLanguages) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -204,136 +176,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguages) com.google.cloud.translate.v3.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, - com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3.SupportedLanguages.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override @@ -370,18 +338,14 @@ public com.google.cloud.translate.v3.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3.SupportedLanguages result = - new com.google.cloud.translate.v3.SupportedLanguages(this); + com.google.cloud.translate.v3.SupportedLanguages result = new com.google.cloud.translate.v3.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.SupportedLanguages result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -401,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguages resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages) other); + return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages)other); } else { super.mergeFrom(other); return this; @@ -441,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -461,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -496,27 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -526,29 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.SupportedLanguage, - com.google.cloud.translate.v3.SupportedLanguage.Builder, - com.google.cloud.translate.v3.SupportedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -564,8 +515,6 @@ public java.util.List getLangua
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -581,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -598,8 +545,6 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -607,7 +552,8 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder setLanguages(
+        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -621,8 +567,6 @@ public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -642,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -665,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -674,7 +614,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder addLanguages(
+        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -688,8 +629,6 @@ public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -709,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -730,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -743,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -751,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -771,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -791,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -800,12 +730,11 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(int index) {
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(
+        int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -816,14 +745,11 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuild
     public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -831,8 +757,8 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -840,8 +766,6 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -850,12 +774,10 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -863,13 +785,12 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(
+        int index) {
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -877,30 +798,27 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.SupportedLanguage,
-            com.google.cloud.translate.v3.SupportedLanguage.Builder,
-            com.google.cloud.translate.v3.SupportedLanguageOrBuilder>
+        com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.SupportedLanguage,
-                com.google.cloud.translate.v3.SupportedLanguage.Builder,
-                com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -910,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguages)
   private static final com.google.cloud.translate.v3.SupportedLanguages DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguages();
   }
@@ -924,27 +842,27 @@ public static com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SupportedLanguages parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SupportedLanguages parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -959,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
index 6e3c2f2f1e5b..098702c63e9f 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface SupportedLanguagesOrBuilder
-    extends
+public interface SupportedLanguagesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -33,10 +15,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -46,8 +27,6 @@ public interface SupportedLanguagesOrBuilder
    */
   com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -57,8 +36,6 @@ public interface SupportedLanguagesOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -66,11 +43,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -78,5 +53,6 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
similarity index 70%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
index b2a85bba7e18..9d623a7afd43 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -47,43 +29,40 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, - com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -100,7 +79,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -109,15 +87,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -134,15 +111,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -151,12 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -167,7 +142,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -176,15 +150,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -195,15 +168,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -212,19 +186,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -233,30 +203,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -267,16 +237,11 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -284,48 +249,32 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -334,10 +283,7 @@ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -345,8 +291,6 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -355,21 +299,14 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -378,25 +315,17 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -414,7 +343,6 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -423,15 +351,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -449,15 +376,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -468,18 +396,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -487,76 +410,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -572,21 +479,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -606,8 +512,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -623,19 +527,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -651,11 +553,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -663,12 +565,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object customizedAttribution_ = "";
   /**
-   *
-   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -677,7 +576,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ @java.lang.Override @@ -686,15 +584,14 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -703,15 +600,16 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -722,15 +620,12 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { public static final int IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER = 11; private boolean isTranslateNativePdfOnly_ = false; /** - * - * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -741,8 +636,6 @@ public boolean getIsTranslateNativePdfOnly() { public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER = 12; private boolean enableShadowRemovalNativePdf_ = false; /** - * - * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -750,9 +643,7 @@ public boolean getIsTranslateNativePdfOnly() {
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -761,7 +652,6 @@ public boolean getEnableShadowRemovalNativePdf() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -773,7 +663,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -795,8 +686,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (glossaryConfig_ != null) { output.writeMessage(7, getGlossaryConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customizedAttribution_); } @@ -825,37 +720,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_); } if (documentInputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDocumentInputConfig()); } if (documentOutputConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDocumentOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getGlossaryConfig()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); } if (isTranslateNativePdfOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, isTranslateNativePdfOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, isTranslateNativePdfOnly_); } if (enableShadowRemovalNativePdf_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableShadowRemovalNativePdf_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, enableShadowRemovalNativePdf_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -865,34 +763,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentRequest other = - (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; + com.google.cloud.translate.v3.TranslateDocumentRequest other = (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false; if (hasDocumentInputConfig()) { - if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false; + if (!getDocumentInputConfig() + .equals(other.getDocumentInputConfig())) return false; } if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false; if (hasDocumentOutputConfig()) { - if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false; + if (!getDocumentOutputConfig() + .equals(other.getDocumentOutputConfig())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; - if (getIsTranslateNativePdfOnly() != other.getIsTranslateNativePdfOnly()) return false; - if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getCustomizedAttribution() + .equals(other.getCustomizedAttribution())) return false; + if (getIsTranslateNativePdfOnly() + != other.getIsTranslateNativePdfOnly()) return false; + if (getEnableShadowRemovalNativePdf() + != other.getEnableShadowRemovalNativePdf()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -931,166 +839,164 @@ public int hashCode() { hash = (37 * hash) + CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER; hash = (53 * hash) + getCustomizedAttribution().hashCode(); hash = (37 * hash) + IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsTranslateNativePdfOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTranslateNativePdfOnly()); hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableShadowRemovalNativePdf()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentRequest) com.google.cloud.translate.v3.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, - com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1122,9 +1028,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1143,11 +1049,8 @@ public com.google.cloud.translate.v3.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentRequest result = - new com.google.cloud.translate.v3.TranslateDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.TranslateDocumentRequest result = new com.google.cloud.translate.v3.TranslateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1164,23 +1067,22 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = - documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = - documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1201,39 +1103,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1241,8 +1142,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1272,7 +1172,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1311,87 +1212,77 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 88: - { - isTranslateNativePdfOnly_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 88 - case 96: - { - enableShadowRemovalNativePdf_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 88: { + isTranslateNativePdfOnly_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: { + enableShadowRemovalNativePdf_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1401,13 +1292,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1424,13 +1312,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1439,8 +1327,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1457,14 +1343,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1472,8 +1359,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1490,22 +1375,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1522,7 +1403,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -1532,8 +1412,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1550,14 +1428,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1567,8 +1443,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1579,13 +1453,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1594,8 +1468,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1606,14 +1478,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1621,8 +1494,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1633,22 +1504,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1659,7 +1526,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1669,8 +1535,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1681,14 +1545,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1698,21 +1560,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1721,22 +1581,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1744,37 +1603,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1784,22 +1636,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1809,58 +1657,39 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> - documentInputConfigBuilder_; + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { @@ -1876,15 +1705,11 @@ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInpu return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3.DocumentInputConfig.Builder builderForValue) { @@ -1898,23 +1723,17 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDocumentInputConfig( - com.google.cloud.translate.v3.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && documentInputConfig_ != null - && documentInputConfig_ - != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + documentInputConfig_ != null && + documentInputConfig_ != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1927,15 +1746,11 @@ public Builder mergeDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1948,66 +1763,48 @@ public Builder clearDocumentInputConfig() { return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.DocumentInputConfig.Builder - getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? + com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), getParentForChildren(), isClean()); + documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), + getParentForChildren(), + isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -2015,13 +1812,8 @@ public Builder clearDocumentInputConfig() { private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> - documentOutputConfigBuilder_; + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2030,18 +1822,13 @@ public Builder clearDocumentInputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2050,24 +1837,17 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2076,12 +1856,9 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDocumentOutputConfig( - com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2095,8 +1872,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2105,9 +1880,7 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3.DocumentOutputConfig.Builder builderForValue) { @@ -2121,8 +1894,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2131,17 +1902,13 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDocumentOutputConfig( - com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && documentOutputConfig_ != null - && documentOutputConfig_ - != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + documentOutputConfig_ != null && + documentOutputConfig_ != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -2154,8 +1921,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2164,9 +1929,7 @@ public Builder mergeDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2179,8 +1942,6 @@ public Builder clearDocumentOutputConfig() { return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2189,19 +1950,14 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.DocumentOutputConfig.Builder - getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2210,23 +1966,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? + com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2235,22 +1985,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), getParentForChildren(), isClean()); + documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), + getParentForChildren(), + isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2258,8 +2003,6 @@ public Builder clearDocumentOutputConfig() { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2277,13 +2020,13 @@ public Builder clearDocumentOutputConfig() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2292,8 +2035,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2311,14 +2052,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2326,8 +2068,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2345,22 +2085,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2378,7 +2114,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2388,8 +2123,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2407,14 +2140,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2424,67 +2155,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2498,17 +2209,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2522,25 +2229,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2553,17 +2254,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2576,90 +2273,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2668,13 +2349,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2690,21 +2368,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2724,8 +2401,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2741,19 +2416,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2769,25 +2442,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2802,22 +2473,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2832,20 +2504,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2860,16 +2529,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object customizedAttribution_ = "";
     /**
-     *
-     *
      * 
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2878,13 +2547,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -2893,8 +2562,6 @@ public java.lang.String getCustomizedAttribution() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2903,14 +2570,15 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -2918,8 +2586,6 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2928,22 +2594,18 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttribution( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2952,7 +2614,6 @@ public Builder setCustomizedAttribution(java.lang.String value) {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -2962,8 +2623,6 @@ public Builder clearCustomizedAttribution() { return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2972,14 +2631,12 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttributionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; @@ -2987,18 +2644,14 @@ public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString valu return this; } - private boolean isTranslateNativePdfOnly_; + private boolean isTranslateNativePdfOnly_ ; /** - * - * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -3006,16 +2659,12 @@ public boolean getIsTranslateNativePdfOnly() { return isTranslateNativePdfOnly_; } /** - * - * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param value The isTranslateNativePdfOnly to set. * @return This builder for chaining. */ @@ -3027,16 +2676,12 @@ public Builder setIsTranslateNativePdfOnly(boolean value) { return this; } /** - * - * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearIsTranslateNativePdfOnly() { @@ -3046,10 +2691,8 @@ public Builder clearIsTranslateNativePdfOnly() { return this; } - private boolean enableShadowRemovalNativePdf_; + private boolean enableShadowRemovalNativePdf_ ; /** - * - * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -3057,9 +2700,7 @@ public Builder clearIsTranslateNativePdfOnly() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -3067,8 +2708,6 @@ public boolean getEnableShadowRemovalNativePdf() { return enableShadowRemovalNativePdf_; } /** - * - * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -3076,9 +2715,7 @@ public boolean getEnableShadowRemovalNativePdf() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableShadowRemovalNativePdf to set. * @return This builder for chaining. */ @@ -3090,8 +2727,6 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) { return this; } /** - * - * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -3099,9 +2734,7 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableShadowRemovalNativePdf() { @@ -3110,9 +2743,9 @@ public Builder clearEnableShadowRemovalNativePdf() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3122,12 +2755,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentRequest) private static final com.google.cloud.translate.v3.TranslateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentRequest(); } @@ -3136,27 +2769,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3171,4 +2804,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java similarity index 80% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java index 80203b939fbd..d3d93011bdfa 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentRequestOrBuilder - extends +public interface TranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -42,13 +24,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -65,14 +44,12 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -83,13 +60,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -100,82 +74,61 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -184,16 +137,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -202,16 +150,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -220,15 +163,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -246,13 +185,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -270,61 +206,45 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -341,8 +261,6 @@ public interface TranslateDocumentRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -357,13 +275,15 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -378,10 +298,9 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -397,13 +316,11 @@ public interface TranslateDocumentRequestOrBuilder
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -418,11 +335,10 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -431,13 +347,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -446,28 +359,23 @@ java.lang.String getLabelsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString getCustomizedAttributionBytes(); + com.google.protobuf.ByteString + getCustomizedAttributionBytes(); /** - * - * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isTranslateNativePdfOnly. */ boolean getIsTranslateNativePdfOnly(); /** - * - * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -475,9 +383,7 @@ java.lang.String getLabelsOrDefault(
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableShadowRemovalNativePdf. */ boolean getEnableShadowRemovalNativePdf(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java index 67518f981181..db06f3d6a2eb 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, - com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -80,25 +58,18 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } /** - * - * *
    * Translated document.
    * 
@@ -106,27 +77,20 @@ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation( * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -134,52 +98,37 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -192,7 +141,6 @@ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTran
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -201,15 +149,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -222,15 +169,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -241,14 +189,11 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -256,25 +201,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -282,15 +220,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +236,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -325,18 +260,19 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getGlossaryDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -346,27 +282,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentResponse other = - (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3.TranslateDocumentResponse other = (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation() + .equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) - return false; + if (!getGlossaryDocumentTranslation() + .equals(other.getGlossaryDocumentTranslation())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -399,136 +337,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentResponse) com.google.cloud.translate.v3.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, - com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override @@ -574,11 +507,8 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentResponse result = - new com.google.cloud.translate.v3.TranslateDocumentResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.TranslateDocumentResponse result = new com.google.cloud.translate.v3.TranslateDocumentResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -586,23 +516,22 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = - documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = - glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -610,39 +539,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentRespon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -650,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentResponse other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -692,39 +619,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,52 +660,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> - documentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> documentTranslationBuilder_; /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** - * - * *
      * Translated document.
      * 
@@ -800,8 +712,6 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3.DocumentTran return this; } /** - * - * *
      * Translated document.
      * 
@@ -820,21 +730,17 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && documentTranslation_ != null - && documentTranslation_ - != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + documentTranslation_ != null && + documentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -847,8 +753,6 @@ public Builder mergeDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -866,42 +770,33 @@ public Builder clearDocumentTranslation() { return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder - getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? + com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } } /** - * - * *
      * Translated document.
      * 
@@ -909,17 +804,14 @@ public Builder clearDocumentTranslation() { * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getDocumentTranslation(), getParentForChildren(), isClean()); + documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getDocumentTranslation(), + getParentForChildren(), + isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -927,64 +819,47 @@ public Builder clearDocumentTranslation() { private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> - glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public Builder setGlossaryDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -998,16 +873,13 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3.DocumentTranslation.Builder builderForValue) { @@ -1021,24 +893,19 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public Builder mergeGlossaryDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossaryDocumentTranslation_ != null - && glossaryDocumentTranslation_ - != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossaryDocumentTranslation_ != null && + glossaryDocumentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -1051,16 +918,13 @@ public Builder mergeGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1073,69 +937,54 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder - getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? + com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); + glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), + getParentForChildren(), + isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -1143,8 +992,6 @@ public Builder clearGlossaryDocumentTranslation() { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1157,13 +1004,13 @@ public Builder clearGlossaryDocumentTranslation() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1172,8 +1019,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1186,14 +1031,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1201,8 +1047,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1215,22 +1059,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1243,7 +1083,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1253,8 +1092,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1267,14 +1104,12 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1284,55 +1119,41 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1346,8 +1167,6 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1366,21 +1185,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1393,8 +1208,6 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1412,42 +1225,33 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1455,24 +1259,21 @@ public Builder clearGlossaryConfig() { * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1482,12 +1283,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentResponse) private static final com.google.cloud.translate.v3.TranslateDocumentResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentResponse(); } @@ -1496,27 +1297,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,4 +1332,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java index 8bbcee6311b6..12df582e1665 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentResponseOrBuilder - extends +public interface TranslateDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
@@ -59,53 +35,39 @@ public interface TranslateDocumentResponseOrBuilder com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -118,13 +80,10 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -137,38 +96,30 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java index fd6a308ec202..19d44926cff7 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -28,48 +11,43 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranslateTextGlossaryConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
-   *
-   *
    * 
    * Required. The `glossary` to be applied for this translation.
    *
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ @java.lang.Override @@ -89,15 +66,14 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -108,15 +84,16 @@ public java.lang.String getGlossary() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -127,15 +104,12 @@ public com.google.protobuf.ByteString getGlossaryBytes() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** - * - * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -144,7 +118,6 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,7 +129,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -176,7 +150,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,16 +161,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = - (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; - if (!getGlossary().equals(other.getGlossary())) return false; - if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; + if (getIgnoreCase() + != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,111 +186,106 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -322,32 +293,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -358,9 +330,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
@@ -379,11 +351,8 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result =
-          new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -402,39 +371,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextGlossaryCo
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig) other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -442,8 +410,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextGlossaryConfig other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -478,25 +445,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                glossary_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                ignoreCase_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              glossary_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              ignoreCase_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -506,13 +470,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
-     *
-     *
      * 
      * Required. The `glossary` to be applied for this translation.
      *
@@ -523,13 +484,13 @@ public Builder mergeFrom(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -538,8 +499,6 @@ public java.lang.String getGlossary() { } } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -550,14 +509,15 @@ public java.lang.String getGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -565,8 +525,6 @@ public com.google.protobuf.ByteString getGlossaryBytes() { } } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -577,22 +535,18 @@ public com.google.protobuf.ByteString getGlossaryBytes() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -603,7 +557,6 @@ public Builder setGlossary(java.lang.String value) {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -613,8 +566,6 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -625,14 +576,12 @@ public Builder clearGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -640,17 +589,14 @@ public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { return this; } - private boolean ignoreCase_; + private boolean ignoreCase_ ; /** - * - * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -658,15 +604,12 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** - * - * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -678,15 +621,12 @@ public Builder setIgnoreCase(boolean value) { return this; } /** - * - * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -695,9 +635,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -707,12 +647,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) private static final com.google.cloud.translate.v3.TranslateTextGlossaryConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(); } @@ -721,27 +661,27 @@ public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,4 +696,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java similarity index 65% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java index 20e7f1bacc22..d0ab32490d3d 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateTextGlossaryConfigOrBuilder - extends +public interface TranslateTextGlossaryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -36,13 +18,10 @@ public interface TranslateTextGlossaryConfigOrBuilder
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ java.lang.String getGlossary(); /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -53,21 +32,18 @@ public interface TranslateTextGlossaryConfigOrBuilder
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - com.google.protobuf.ByteString getGlossaryBytes(); + com.google.protobuf.ByteString + getGlossaryBytes(); /** - * - * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java index 6efb315acac1..54bf85258daf 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java @@ -1,44 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ -public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextRequest) TranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateTextRequest() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -48,44 +31,41 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, - com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -93,15 +73,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_; } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -109,15 +87,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -125,7 +100,6 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -133,8 +107,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -142,28 +114,24 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -172,30 +140,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -204,12 +172,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -219,7 +184,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -228,15 +192,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -246,15 +209,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -263,19 +227,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -284,30 +244,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -316,12 +276,9 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } public static final int PARENT_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -339,10 +296,7 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -351,15 +305,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -377,18 +330,17 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -397,12 +349,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -423,7 +372,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -432,15 +380,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -461,15 +408,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -480,18 +428,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -499,76 +442,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -584,21 +511,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -618,8 +544,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -635,19 +559,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -663,11 +585,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -675,7 +597,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -687,7 +608,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -709,8 +631,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        10);
     getUnknownFields().writeTo(output);
   }
 
@@ -741,20 +667,21 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -764,25 +691,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextRequest other =
-        (com.google.cloud.translate.v3.TranslateTextRequest) obj;
-
-    if (!getContentsList().equals(other.getContentsList())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
+    com.google.cloud.translate.v3.TranslateTextRequest other = (com.google.cloud.translate.v3.TranslateTextRequest) obj;
+
+    if (!getContentsList()
+        .equals(other.getContentsList())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -822,160 +756,159 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextRequest) com.google.cloud.translate.v3.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, - com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -991,9 +924,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @java.lang.Override @@ -1012,11 +945,8 @@ public com.google.cloud.translate.v3.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.TranslateTextRequest result = - new com.google.cloud.translate.v3.TranslateTextRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.TranslateTextRequest result = new com.google.cloud.translate.v3.TranslateTextRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1043,8 +973,9 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1056,39 +987,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1096,8 +1026,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1136,7 +1065,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest othe if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1164,68 +1094,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1235,12 +1156,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1248,8 +1167,6 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1257,16 +1174,14 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { contents_.makeImmutable(); return contents_; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1274,15 +1189,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1290,7 +1202,6 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1298,8 +1209,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1307,16 +1216,14 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1324,15 +1231,13 @@ public com.google.protobuf.ByteString getContentsBytes(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContents( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1340,8 +1245,6 @@ public Builder setContents(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1349,14 +1252,12 @@ public Builder setContents(int index, java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContents( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1364,8 +1265,6 @@ public Builder addContents(java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1373,20 +1272,19 @@ public Builder addContents(java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents(java.lang.Iterable values) { + public Builder addAllContents( + java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1394,19 +1292,16 @@ public Builder addAllContents(java.lang.Iterable values) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1414,14 +1309,12 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1432,21 +1325,19 @@ public Builder addContentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1455,22 +1346,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1478,37 +1368,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1518,22 +1401,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1543,8 +1422,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1554,13 +1431,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1569,8 +1446,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1580,14 +1455,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1595,8 +1471,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1606,22 +1480,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1631,7 +1501,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1641,8 +1510,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1652,14 +1519,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1669,21 +1534,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1692,22 +1555,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1715,37 +1577,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1755,22 +1610,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1780,8 +1631,6 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1799,16 +1648,14 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1817,8 +1664,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1836,17 +1681,16 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1854,8 +1698,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1873,25 +1715,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1909,10 +1745,7 @@ public Builder setParent(java.lang.String value) {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1922,8 +1755,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1941,17 +1772,13 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1961,8 +1788,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1983,13 +1808,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1998,8 +1823,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2020,14 +1843,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2035,8 +1859,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2057,22 +1879,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2093,7 +1911,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2103,8 +1920,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2125,14 +1940,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2142,67 +1955,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2216,17 +2009,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2240,25 +2029,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2271,17 +2054,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2294,90 +2073,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2386,13 +2149,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2408,21 +2168,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2442,8 +2201,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2459,19 +2216,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2487,25 +2242,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2520,22 +2273,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2550,20 +2304,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2578,14 +2329,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2595,12 +2348,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextRequest)
   private static final com.google.cloud.translate.v3.TranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextRequest();
   }
@@ -2609,27 +2362,27 @@ public static com.google.cloud.translate.v3.TranslateTextRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2644,4 +2397,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
index 714f465ced31..ae16c8dae3d5 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextRequestOrBuilder
-    extends
+public interface TranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -33,13 +15,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - java.util.List getContentsList(); + java.util.List + getContentsList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -47,13 +27,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ int getContentsCount(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -61,14 +38,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -76,42 +50,35 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString getContentsBytes(int index); + com.google.protobuf.ByteString + getContentsBytes(int index); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -121,13 +88,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -137,41 +101,34 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -189,16 +146,11 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -216,17 +168,13 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -247,13 +195,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -274,61 +219,45 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -345,8 +274,6 @@ public interface TranslateTextRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -361,13 +288,15 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -382,10 +311,9 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -401,13 +329,11 @@ public interface TranslateTextRequestOrBuilder
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -422,5 +348,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
similarity index 79%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
index 84d6f44ae86f..9e404b27f9ce 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
@@ -1,34 +1,20 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-/** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
-public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+/**
+ * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
+ */
+public final class TranslateTextResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -36,32 +22,28 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextResponse.class,
-            com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -75,8 +57,6 @@ public java.util.List getTranslations
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -86,13 +66,11 @@ public java.util.List getTranslations
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -106,8 +84,6 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -121,8 +97,6 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
     return translations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -132,17 +106,15 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
+  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+      int index) {
     return translations_.get(index);
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -158,8 +130,6 @@ public java.util.List getGlossaryTran
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -171,13 +141,11 @@ public java.util.List getGlossaryTran
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -193,8 +161,6 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -210,8 +176,6 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
     return glossaryTranslations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -229,7 +193,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -241,7 +204,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -258,11 +222,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -272,16 +237,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextResponse other =
-        (com.google.cloud.translate.v3.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3.TranslateTextResponse other = (com.google.cloud.translate.v3.TranslateTextResponse) obj;
 
-    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList()
+        .equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList()
+        .equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -307,127 +273,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextResponse)
       com.google.cloud.translate.v3.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextResponse.class,
-              com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +416,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -471,18 +437,14 @@ public com.google.cloud.translate.v3.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextResponse result =
-          new com.google.cloud.translate.v3.TranslateTextResponse(this);
+      com.google.cloud.translate.v3.TranslateTextResponse result = new com.google.cloud.translate.v3.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.translate.v3.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.translate.v3.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -511,39 +473,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextResponse r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -551,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance()) return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -571,10 +531,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTranslationsFieldBuilder()
-                    : null;
+            translationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTranslationsFieldBuilder() : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -598,10 +557,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getGlossaryTranslationsFieldBuilder()
-                    : null;
+            glossaryTranslationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getGlossaryTranslationsFieldBuilder() : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -633,39 +591,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.translate.v3.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
-                if (translationsBuilder_ == null) {
-                  ensureTranslationsIsMutable();
-                  translations_.add(m);
-                } else {
-                  translationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 26:
-              {
-                com.google.cloud.translate.v3.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
-                if (glossaryTranslationsBuilder_ == null) {
-                  ensureGlossaryTranslationsIsMutable();
-                  glossaryTranslations_.add(m);
-                } else {
-                  glossaryTranslationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.translate.v3.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3.Translation.parser(),
+                      extensionRegistry);
+              if (translationsBuilder_ == null) {
+                ensureTranslationsIsMutable();
+                translations_.add(m);
+              } else {
+                translationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 26: {
+              com.google.cloud.translate.v3.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3.Translation.parser(),
+                      extensionRegistry);
+              if (glossaryTranslationsBuilder_ == null) {
+                ensureGlossaryTranslationsIsMutable();
+                glossaryTranslations_.add(m);
+              } else {
+                glossaryTranslationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -675,29 +632,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List translations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ =
-            new java.util.ArrayList(translations_);
+        translations_ = new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
-        translationsBuilder_;
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> translationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -714,8 +663,6 @@ public java.util.List getTranslations
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -732,8 +679,6 @@ public int getTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -750,8 +695,6 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -760,7 +703,8 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder setTranslations(int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder setTranslations(
+        int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -774,8 +718,6 @@ public Builder setTranslations(int index, com.google.cloud.translate.v3.Translat
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -796,8 +738,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -820,8 +760,6 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -830,7 +768,8 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder addTranslations(int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder addTranslations(
+        int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -844,8 +783,6 @@ public Builder addTranslations(int index, com.google.cloud.translate.v3.Translat
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -866,8 +803,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -888,8 +823,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -902,7 +835,8 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -910,8 +844,6 @@ public Builder addAllTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -931,8 +863,6 @@ public Builder clearTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -952,8 +882,6 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -962,12 +890,11 @@ public Builder removeTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(int index) {
+    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
+        int index) {
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -976,16 +903,14 @@ public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
+    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+        int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);
-      } else {
+        return translations_.get(index);  } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -994,8 +919,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsOrBuilderList() {
+    public java.util.List 
+         getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1003,8 +928,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1014,12 +937,10 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
     public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1028,13 +949,12 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(int index) {
-      return getTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
+        int index) {
+      return getTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1043,49 +963,38 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsBuilderList() {
+    public java.util.List 
+         getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.Translation,
-                com.google.cloud.translate.v3.Translation.Builder,
-                com.google.cloud.translate.v3.TranslationOrBuilder>(
-                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
+                translations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ =
-            new java.util.ArrayList(
-                glossaryTranslations_);
+        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
-        glossaryTranslationsBuilder_;
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> glossaryTranslationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1104,8 +1013,6 @@ public java.util.List getGlossaryTran
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1124,8 +1031,6 @@ public int getGlossaryTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1144,8 +1049,6 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1171,8 +1074,6 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1195,8 +1096,6 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1221,8 +1120,6 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3.Translation
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1248,8 +1145,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1272,8 +1167,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1296,8 +1189,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1312,7 +1203,8 @@ public Builder addAllGlossaryTranslations(
         java.lang.Iterable values) {
       if (glossaryTranslationsBuilder_ == null) {
         ensureGlossaryTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, glossaryTranslations_);
         onChanged();
       } else {
         glossaryTranslationsBuilder_.addAllMessages(values);
@@ -1320,8 +1212,6 @@ public Builder addAllGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1343,8 +1233,6 @@ public Builder clearGlossaryTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1366,8 +1254,6 @@ public Builder removeGlossaryTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1383,8 +1269,6 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
       return getGlossaryTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1398,14 +1282,11 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
     public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
         int index) {
       if (glossaryTranslationsBuilder_ == null) {
-        return glossaryTranslations_.get(index);
-      } else {
+        return glossaryTranslations_.get(index);  } else {
         return glossaryTranslationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1416,8 +1297,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List
-        getGlossaryTranslationsOrBuilderList() {
+    public java.util.List 
+         getGlossaryTranslationsOrBuilderList() {
       if (glossaryTranslationsBuilder_ != null) {
         return glossaryTranslationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1425,8 +1306,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1438,12 +1317,10 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder() {
-      return getGlossaryTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1456,12 +1333,10 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder(
         int index) {
-      return getGlossaryTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1472,22 +1347,16 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List
-        getGlossaryTranslationsBuilderList() {
+    public java.util.List 
+         getGlossaryTranslationsBuilderList() {
       return getGlossaryTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
         getGlossaryTranslationsFieldBuilder() {
       if (glossaryTranslationsBuilder_ == null) {
-        glossaryTranslationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.Translation,
-                com.google.cloud.translate.v3.Translation.Builder,
-                com.google.cloud.translate.v3.TranslationOrBuilder>(
+        glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
                 glossaryTranslations_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1496,9 +1365,9 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
       }
       return glossaryTranslationsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1508,12 +1377,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextResponse)
   private static final com.google.cloud.translate.v3.TranslateTextResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextResponse();
   }
@@ -1522,27 +1391,27 @@ public static com.google.cloud.translate.v3.TranslateTextResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1557,4 +1426,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
index 33400af51a8f..8a9c20edf4b4 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextResponseOrBuilder
-    extends
+public interface TranslateTextResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -34,10 +16,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List getTranslationsList();
+  java.util.List 
+      getTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -48,8 +29,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3.Translation getTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -60,8 +39,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -70,11 +47,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List
+  java.util.List 
       getTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -83,11 +58,10 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -98,10 +72,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List getGlossaryTranslationsList();
+  java.util.List 
+      getGlossaryTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -114,8 +87,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3.Translation getGlossaryTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -128,8 +99,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -140,11 +109,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List
+  java.util.List 
       getGlossaryTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -155,5 +122,6 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
index d68563415ca9..d3ee335b268b 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ -public final class Translation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Translation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Translation) TranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Translation() { translatedText_ = ""; model_ = ""; @@ -45,32 +27,28 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, - com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string translated_text = 1; - * * @return The translatedText. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -103,15 +79,16 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -138,7 +112,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
    * 
* * string model = 2; - * * @return The model. */ @java.lang.Override @@ -147,15 +120,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -168,15 +140,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -185,12 +158,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -199,7 +169,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -208,15 +177,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -225,15 +193,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -244,14 +213,11 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -259,25 +225,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -285,15 +244,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -334,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -347,20 +304,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3.Translation other = - (com.google.cloud.translate.v3.Translation) obj; + com.google.cloud.translate.v3.Translation other = (com.google.cloud.translate.v3.Translation) obj; - if (!getTranslatedText().equals(other.getTranslatedText())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText() + .equals(other.getTranslatedText())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -388,136 +348,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Translation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Translation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Translation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Translation) com.google.cloud.translate.v3.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, - com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3.Translation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override @@ -555,11 +511,8 @@ public com.google.cloud.translate.v3.Translation build() { @java.lang.Override public com.google.cloud.translate.v3.Translation buildPartial() { - com.google.cloud.translate.v3.Translation result = - new com.google.cloud.translate.v3.Translation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Translation result = new com.google.cloud.translate.v3.Translation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -576,8 +529,9 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -585,39 +539,38 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Translation) { - return mergeFrom((com.google.cloud.translate.v3.Translation) other); + return mergeFrom((com.google.cloud.translate.v3.Translation)other); } else { super.mergeFrom(other); return this; @@ -670,37 +623,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,13 +660,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object translatedText_ = ""; /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -724,13 +671,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; - * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -739,8 +686,6 @@ public java.lang.String getTranslatedText() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -748,14 +693,15 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -763,8 +709,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -772,22 +716,18 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
      * 
* * string translated_text = 1; - * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -795,7 +735,6 @@ public Builder setTranslatedText(java.lang.String value) {
      * 
* * string translated_text = 1; - * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -805,8 +744,6 @@ public Builder clearTranslatedText() { return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -814,14 +751,12 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; - * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -831,8 +766,6 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -845,13 +778,13 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 2; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -860,8 +793,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -874,14 +805,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -889,8 +821,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -903,22 +833,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -931,7 +857,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -941,8 +866,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -955,14 +878,12 @@ public Builder clearModel() {
      * 
* * string model = 2; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -972,8 +893,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -982,13 +901,13 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -997,8 +916,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1007,14 +924,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -1022,8 +940,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1032,22 +948,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 4; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1056,7 +968,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 4; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -1066,8 +977,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1076,14 +985,12 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1093,55 +1000,41 @@ public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1155,8 +1048,6 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1175,21 +1066,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1202,8 +1089,6 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1221,42 +1106,33 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1264,24 +1140,21 @@ public Builder clearGlossaryConfig() { * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1291,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Translation) private static final com.google.cloud.translate.v3.Translation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Translation(); } @@ -1305,27 +1178,27 @@ public static com.google.cloud.translate.v3.Translation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1340,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java index e282db3326fe..c583eea67e05 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslationOrBuilder - extends +public interface TranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Translation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -33,13 +15,10 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The translatedText. */ java.lang.String getTranslatedText(); /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -47,14 +26,12 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString getTranslatedTextBytes(); + com.google.protobuf.ByteString + getTranslatedTextBytes(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -67,13 +44,10 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -86,14 +60,12 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -102,13 +74,10 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -117,38 +86,30 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java new file mode 100644 index 000000000000..ff6ad57a5288 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java @@ -0,0 +1,879 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Translation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/translate/v3/translation_" + + "service.proto\022\033google.cloud.translation." + + "v3\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032#g" + + "oogle/longrunning/operations.proto\032\037goog" + + "le/protobuf/timestamp.proto\"P\n\033Translate" + + "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" + + "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" + + "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" + + "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" + + "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" + + "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\005m" + + "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" + + "\0132=.google.cloud.translation.v3.Translat" + + "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" + + "\n\025TranslateTextResponse\022>\n\014translations\030" + + "\001 \003(\0132(.google.cloud.translation.v3.Tran" + + "slation\022G\n\025glossary_translations\030\003 \003(\0132(" + + ".google.cloud.translation.v3.Translation" + + "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" + + "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" + + "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" + + "le.cloud.translation.v3.TranslateTextGlo" + + "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" + + "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" + + "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" + + "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" + + "ation.v3.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" + + "nguages\030\001 \003(\0132-.google.cloud.translation" + + ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" + + "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" + + "locations.googleapis.com/Location\022#\n\025dis" + + "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" + + "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" + + "guages\030\001 \003(\0132..google.cloud.translation." + + "v3.SupportedLanguage\"p\n\021SupportedLanguag" + + "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" + + "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" + + "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" + + "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" + + "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" + + "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" + + "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" + + "estination\030\001 \001(\0132+.google.cloud.translat" + + "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" + + "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" + + "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" + + "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" + + "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" + + "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" + + "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" + + "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" + + "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" + + "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" + + "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" + + "\n\025document_input_config\030\004 \001(\01320.google.c" + + "loud.translation.v3.DocumentInputConfigB" + + "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." + + "google.cloud.translation.v3.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" + + "lossary_config\030\007 \001(\01328.google.cloud.tran" + + "slation.v3.TranslateTextGlossaryConfigB\004" + + "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" + + "slation.v3.TranslateDocumentRequest.Labe" + + "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" + + "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" + + "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" + + "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" + + "nse\022N\n\024document_translation\030\001 \001(\01320.goog" + + "le.cloud.translation.v3.DocumentTranslat" + + "ion\022W\n\035glossary_document_translation\030\002 \001" + + "(\01320.google.cloud.translation.v3.Documen" + + "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" + + "config\030\004 \001(\01328.google.cloud.translation." + + "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" + + "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!locations.googleapis.com/Location" + + "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" + + "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" + + "els\030\004 \003(\0132B.google.cloud.translation.v3." + + "BatchTranslateTextRequest.ModelsEntryB\004\342" + + "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" + + "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" + + "tput_config\030\006 \001(\0132).google.cloud.transla" + + "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" + + "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" + + "chTranslateTextRequest.GlossariesEntryB\004" + + "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" + + "slation.v3.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" + + "oud.translation.v3.TranslateTextGlossary" + + "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" + + "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" + + "lation.v3.BatchTranslateMetadata.State\022\035" + + "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" + + "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" + + "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" + + "atchTranslateResponse\022\030\n\020total_character" + + "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" + + "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" + + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " + + "\001(\0132&.google.cloud.translation.v3.GcsSou" + + "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" + + ".cloud.translation.v3.Glossary.LanguageC" + + "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." + + "google.cloud.translation.v3.Glossary.Lan" + + "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." + + "google.cloud.translation.v3.GlossaryInpu" + + "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" + + "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " + + "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" + + "language_code\030\001 \001(\t\022\034\n\024target_language_c" + + "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" + + "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" + + ".com/Glossary\022=projects/{project}/locati" + + "ons/{location}/glossaries/{glossary}B\013\n\t" + + "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" + + "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" + + "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + + "\372A#\n!translate.googleapis.com/Glossary\"Q" + + "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" + + "A\001\002\372A#\n!translate.googleapis.com/Glossar" + + "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " + + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + + "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" + + "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" + + "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" + + "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" + + "\030\002 \001(\01629.google.cloud.translation.v3.Cre" + + "ateGlossaryMetadata.State\022/\n\013submit_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" + + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" + + "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" + + "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" + + "le.cloud.translation.v3.DeleteGlossaryMe" + + "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" + + "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" + + "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\"\n\024so" + + "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" + + "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" + + "figs\030\004 \003(\01325.google.cloud.translation.v3" + + ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" + + "t_config\030\005 \001(\01326.google.cloud.translatio" + + "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" + + "models\030\006 \003(\0132F.google.cloud.translation." + + "v3.BatchTranslateDocumentRequest.ModelsE" + + "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." + + "cloud.translation.v3.BatchTranslateDocum" + + "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" + + "at_conversions\030\010 \003(\0132Q.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" + + "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" + + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" + + "rce\030\001 \001(\0132&.google.cloud.translation.v3." + + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" + + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" + + "ogle.cloud.translation.v3.GcsDestination" + + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" + + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" + + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" + + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" + + "_characters\030\005 \001(\003\022\035\n\025translated_characte" + + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" + + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" + + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" + + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" + + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" + + "on.v3.BatchTranslateDocumentMetadata.Sta" + + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" + + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" + + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" + + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" + + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" + + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" + + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" + + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" + + "TranslateText\0221.google.cloud.translation" + + ".v3.TranslateTextRequest\0322.google.cloud." + + "translation.v3.TranslateTextResponse\"\333\001\332" + + "A$parent,target_language_code,contents\332A" + + "Iparent,model,mime_type,source_language_" + + "code,target_language_code,contents\202\323\344\223\002b" + + "\"1/v3/{parent=projects/*/locations/*}:tr" + + "anslateText:\001*Z*\"%/v3/{parent=projects/*" + + "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." + + "google.cloud.translation.v3.DetectLangua" + + "geRequest\0323.google.cloud.translation.v3." + + "DetectLanguageResponse\"\213\001\332A\036parent,model" + + ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" + + "ojects/*/locations/*}:detectLanguage:\001*Z" + + "+\"&/v3/{parent=projects/*}:detectLanguag" + + "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." + + "cloud.translation.v3.GetSupportedLanguag" + + "esRequest\032/.google.cloud.translation.v3." + + "SupportedLanguages\"\221\001\332A\"parent,model,dis" + + "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z,\022*/v3/{parent=projects/*}/supportedLan" + + "guages\022\304\001\n\021TranslateDocument\0225.google.cl" + + "oud.translation.v3.TranslateDocumentRequ" + + "est\0326.google.cloud.translation.v3.Transl" + + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" + + "=projects/*/locations/*}:translateDocume" + + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" + + "oud.translation.v3.BatchTranslateTextReq" + + "uest\032\035.google.longrunning.Operation\"t\312A0" + + "\n\026BatchTranslateResponse\022\026BatchTranslate" + + "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" + + "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" + + "tchTranslateDocument\022:.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" + + "atchTranslateDocumentResponse\022\036BatchTran" + + "slateDocumentMetadata\332AMparent,source_la" + + "nguage_code,target_language_codes,input_" + + "configs,output_config\202\323\344\223\002?\":/v3/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" + + "loud.translation.v3.CreateGlossaryReques" + + "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" + + "lossary\022\026CreateGlossaryMetadata\332A\017parent" + + ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" + + "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" + + "stGlossaries\0222.google.cloud.translation." + + "v3.ListGlossariesRequest\0323.google.cloud." + + "translation.v3.ListGlossariesResponse\"?\332" + + "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" + + "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" + + ".google.cloud.translation.v3.GetGlossary" + + "Request\032%.google.cloud.translation.v3.Gl" + + "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" + + "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" + + "Glossary\0222.google.cloud.translation.v3.D" + + "eleteGlossaryRequest\032\035.google.longrunnin" + + "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" + + "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" + + "v3/{name=projects/*/locations/*/glossari" + + "es/*}\032~\312A\030translate.googleapis.com\322A`htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-translationB\321\001\n\035com.google.cloud.trans" + + "late.v3B\027TranslationServiceProtoP\001Z;clou" + + "d.google.com/go/translate/apiv3/translat" + + "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" + + "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" + + "gle::Cloud::Translate::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { "Glossary", "IgnoreCase", }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, + new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, + new java.lang.String[] { "Translations", "GlossaryTranslations", }); + internal_static_google_cloud_translation_v3_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Translation_descriptor, + new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, + new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); + internal_static_google_cloud_translation_v3_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsSource_descriptor, + new java.lang.String[] { "InputUri", }); + internal_static_google_cloud_translation_v3_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_InputConfig_descriptor, + new java.lang.String[] { "MimeType", "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsDestination_descriptor, + new java.lang.String[] { "OutputUriPrefix", }); + internal_static_google_cloud_translation_v3_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, + new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", "CustomizedAttribution", "IsTranslateNativePdfOnly", "EnableShadowRemovalNativePdf", }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, + new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, + new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, + new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, + new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_descriptor, + new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "DisplayName", "Languages", }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { "LanguageCodes", }); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, + new java.lang.String[] { "Parent", "Glossary", }); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, + new java.lang.String[] { "Glossaries", "NextPageToken", }); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", "CustomizedAttribution", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto similarity index 99% rename from java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto index fab3467424fe..475fd2ee7941 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -637,9 +637,9 @@ message DocumentOutputConfig { // // For a DocumentInputConfig.gcs_uri provided document, the output file will // have a name according to its URI. For example: an input file with URI: - // "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name + // `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name // "my_bucket" will have an output URI: - // "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where + // `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where // - [trg] corresponds to the translated file's language code, // - [ext] corresponds to the translated file's extension according to its // mime type. @@ -647,7 +647,7 @@ message DocumentOutputConfig { // // If the document was directly provided through the request, then the // output document will have the format: - // "gs://my_bucket/translated_document_[trg]_translations.[ext], where + // `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where // - [trg] corresponds to the translated file's language code, // - [ext] corresponds to the translated file's extension according to its // mime type. @@ -656,7 +656,7 @@ message DocumentOutputConfig { // translation will be equal to the default output URI but have // `glossary_translations` instead of `translations`. For the previous // example, its glossary URI would be: - // "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]". + // `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`. // // Thus the max number of output files will be 2 (Translated document, // Glossary translated document). @@ -1362,15 +1362,15 @@ message BatchDocumentOutputConfig { // // The naming format of translation output files follows (for target // language code [trg]): `translation_output`: - // gs://translation_output/a_b_c_[trg]_translation.[extension] + // `gs://translation_output/a_b_c_[trg]_translation.[extension]` // `glossary_translation_output`: - // gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The + // `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The // output document will maintain the same file format as the input document. // // The naming format of error output files follows (for target language code - // [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt + // [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt` // `glossary_error_output`: - // gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error + // `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error // output is a txt file containing error details. GcsDestination gcs_destination = 1; } diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java new file mode 100644 index 000000000000..44ac257f47c2 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -0,0 +1,1790 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStub; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides natural language translation operations. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   TranslateTextRequest request =
+ *       TranslateTextRequest.newBuilder()
+ *           .addAllContents(new ArrayList())
+ *           .setMimeType("mimeType-1392120434")
+ *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+ *           .setTargetLanguageCode("targetLanguageCode-106414698")
+ *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ *           .setModel("model104069929")
+ *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+ *           .putAllLabels(new HashMap())
+ *           .build();
+ *   TranslateTextResponse response = translationServiceClient.translateText(request);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TranslationServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newHttpJsonBuilder().build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceClient implements BackgroundResource { + private final TranslationServiceSettings settings; + private final TranslationServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of TranslationServiceClient with default settings. */ + public static final TranslationServiceClient create() throws IOException { + return create(TranslationServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TranslationServiceClient create(TranslationServiceSettings settings) + throws IOException { + return new TranslationServiceClient(settings); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(TranslationServiceSettings). + */ + public static final TranslationServiceClient create(TranslationServiceStub stub) { + return new TranslationServiceClient(stub); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected TranslationServiceClient(TranslationServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final TranslationServiceSettings getSettings() { + return settings; + } + + public TranslationServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateTextResponse response = translationServiceClient.translateText(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText(TranslateTextRequest request) { + return translateTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateTextCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateTextResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable translateTextCallable() { + return stub.translateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + LocationName parent, String model, String mimeType) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(String parent, String model, String mimeType) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { + return detectLanguageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.detectLanguageCallable().futureCall(request);
+   *   // Do something.
+   *   DetectLanguageResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + detectLanguageCallable() { + return stub.detectLanguageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   String model = "model104069929";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + LocationName parent, String displayLanguageCode, String model) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayLanguageCode(displayLanguageCode) + .setModel(model) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   String model = "model104069929";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + String parent, String displayLanguageCode, String model) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent) + .setDisplayLanguageCode(displayLanguageCode) + .setModel(model) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { + return getSupportedLanguagesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
+   *   // Do something.
+   *   SupportedLanguages response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSupportedLanguagesCallable() { + return stub.getSupportedLanguagesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { + return translateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + translateDocumentCallable() { + return stub.translateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   BatchTranslateResponse response =
+   *       translationServiceClient.batchTranslateTextAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateTextAsync(BatchTranslateTextRequest request) { + return batchTranslateTextOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return stub.batchTranslateTextOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable batchTranslateTextCallable() { + return stub.batchTranslateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + LocationName parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + String parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { + return batchTranslateDocumentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return stub.batchTranslateDocumentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchTranslateDocumentCallable() { + return stub.batchTranslateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + LocationName parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGlossary(glossary) + .build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + String parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + CreateGlossaryRequest request) { + return createGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createGlossaryOperationCallable() { + return stub.createGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.createGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createGlossaryCallable() { + return stub.createGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String filter = "filter-1274492040";
+   *   for (Glossary element :
+   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @param filter Optional. Filter specifying constraints of a list operation. Specify the + * constraint by the format of "key=value", where key must be "src" or "tgt", and the value + * must be a valid language code. For multiple restrictions, concatenate them by "AND" + * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used + * here, which means using 'en-US' and 'en' can lead to different results, which depends on + * the language code you used when you create the glossary. For the unidirectional glossaries, + * the "src" and "tgt" add restrictions on the source and target language code separately. For + * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term + * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries + * which exactly match the source language code as "en-US" and the target language code + * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their + * language set will be picked. If missing, no filtering is performed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(LocationName parent, String filter) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String filter = "filter-1274492040";
+   *   for (Glossary element :
+   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @param filter Optional. Filter specifying constraints of a list operation. Specify the + * constraint by the format of "key=value", where key must be "src" or "tgt", and the value + * must be a valid language code. For multiple restrictions, concatenate them by "AND" + * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used + * here, which means using 'en-US' and 'en' can lead to different results, which depends on + * the language code you used when you create the glossary. For the unidirectional glossaries, + * the "src" and "tgt" add restrictions on the source and target language code separately. For + * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term + * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries + * which exactly match the source language code as "en-US" and the target language code + * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their + * language set will be picked. If missing, no filtering is performed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { + return listGlossariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Glossary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesPagedCallable() { + return stub.listGlossariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListGlossariesResponse response =
+   *         translationServiceClient.listGlossariesCallable().call(request);
+   *     for (Glossary element : response.getGlossariesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesCallable() { + return stub.listGlossariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GlossaryName name) { + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(String name) { + GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   Glossary response = translationServiceClient.getGlossary(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GetGlossaryRequest request) { + return getGlossaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getGlossaryCallable() { + return stub.getGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + GlossaryName name) { + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + String name) { + DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + DeleteGlossaryRequest request) { + return deleteGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeleteGlossaryResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable() { + return stub.deleteGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteGlossaryCallable() { + return stub.deleteGlossaryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListGlossariesPagedResponse + extends AbstractPagedListResponse< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGlossariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGlossariesPagedResponse(ListGlossariesPage page) { + super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGlossariesPage + extends AbstractPage< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { + + private ListGlossariesPage( + PageContext context, + ListGlossariesResponse response) { + super(context, response); + } + + private static ListGlossariesPage createEmptyPage() { + return new ListGlossariesPage(null, null); + } + + @Override + protected ListGlossariesPage createPage( + PageContext context, + ListGlossariesResponse response) { + return new ListGlossariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGlossariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGlossariesFixedSizeCollection createEmptyCollection() { + return new ListGlossariesFixedSizeCollection(null, 0); + } + + @Override + protected ListGlossariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGlossariesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java new file mode 100644 index 000000000000..33915307ad62 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java @@ -0,0 +1,376 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateTextOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateDocumentOperationSettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); + } + + public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) + throws IOException { + return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TranslationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TranslationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TranslationServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TranslationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TranslationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TranslationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TranslationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TranslationServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); + } + + public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TranslationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return getStubSettingsBuilder().translateTextSettings(); + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return getStubSettingsBuilder().detectLanguageSettings(); + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getStubSettingsBuilder().getSupportedLanguagesSettings(); + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return getStubSettingsBuilder().translateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return getStubSettingsBuilder().batchTranslateTextSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return getStubSettingsBuilder().batchTranslateTextOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return getStubSettingsBuilder().batchTranslateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return getStubSettingsBuilder().createGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return getStubSettingsBuilder().createGlossaryOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return getStubSettingsBuilder().listGlossariesSettings(); + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getStubSettingsBuilder().getGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return getStubSettingsBuilder().deleteGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return getStubSettingsBuilder().deleteGlossaryOperationSettings(); + } + + @Override + public TranslationServiceSettings build() throws IOException { + return new TranslationServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json new file mode 100644 index 000000000000..5cf5bb9020d7 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json @@ -0,0 +1,48 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.translation.v3beta1", + "libraryPackage": "com.google.cloud.translate.v3beta1", + "services": { + "TranslationService": { + "clients": { + "grpc": { + "libraryClient": "TranslationServiceClient", + "rpcs": { + "BatchTranslateDocument": { + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + }, + "BatchTranslateText": { + "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] + }, + "CreateGlossary": { + "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] + }, + "DeleteGlossary": { + "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] + }, + "DetectLanguage": { + "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] + }, + "GetGlossary": { + "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] + }, + "GetSupportedLanguages": { + "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] + }, + "ListGlossaries": { + "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] + }, + "TranslateDocument": { + "methods": ["translateDocument", "translateDocumentCallable"] + }, + "TranslateText": { + "methods": ["translateText", "translateTextCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java new file mode 100644 index 000000000000..46b58825f0fb --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Translation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TranslationServiceClient ======================= + * + *

Service Description: Provides natural language translation operations. + * + *

Sample for TranslationServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   TranslateTextRequest request =
+ *       TranslateTextRequest.newBuilder()
+ *           .addAllContents(new ArrayList())
+ *           .setMimeType("mimeType-1392120434")
+ *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+ *           .setTargetLanguageCode("targetLanguageCode-106414698")
+ *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ *           .setModel("model104069929")
+ *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+ *           .putAllLabels(new HashMap())
+ *           .build();
+ *   TranslateTextResponse response = translationServiceClient.translateText(request);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.translate.v3beta1; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..f623f52746f8 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java new file mode 100644 index 000000000000..d77b266c740e --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java @@ -0,0 +1,556 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceStub extends TranslationServiceStub { + private static final MethodDescriptor + translateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + detectLanguageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") + .setRequestMarshaller( + ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getSupportedLanguagesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + translateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGlossariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") + .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTranslationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings translateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + detectLanguageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getSupportedLanguagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + translateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings batchTranslateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchTranslateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGlossariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + operationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + operationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + operationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..0e01b94ccf16 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTranslationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java new file mode 100644 index 000000000000..df047db06e10 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java @@ -0,0 +1,916 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTranslationServiceStub extends TranslationServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(BatchTranslateDocumentResponse.getDescriptor()) + .add(Glossary.getDescriptor()) + .add(DeleteGlossaryMetadata.getDescriptor()) + .add(CreateGlossaryMetadata.getDescriptor()) + .add(BatchTranslateMetadata.getDescriptor()) + .add(BatchTranslateDocumentMetadata.getDescriptor()) + .add(DeleteGlossaryResponse.getDescriptor()) + .add(BatchTranslateResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + translateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:translateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3beta1/{parent=projects/*}:translateText") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + detectLanguageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:detectLanguage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3beta1/{parent=projects/*}:detectLanguage") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSupportedLanguagesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}/supportedLanguages", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3beta1/{parent=projects/*}/supportedLanguages") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "displayLanguageCode", request.getDisplayLanguageCode()); + serializer.putQueryParam(fields, "model", request.getModel()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SupportedLanguages.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + translateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:translateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchTranslateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:batchTranslateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateTextRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + batchTranslateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:batchTranslateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateDocumentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("glossary", request.getGlossary(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listGlossariesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Glossary.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTranslationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v3beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v3beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v3beta1/{name=projects/*/locations/*}/operations") + .build()) + .put( + "google.longrunning.Operations.WaitOperation", + HttpRule.newBuilder() + .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:wait") + .build()) + .build()); + + HttpJsonCallSettings + translateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + detectLanguageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getSupportedLanguagesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + translateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings batchTranslateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchTranslateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGlossariesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(translateTextMethodDescriptor); + methodDescriptors.add(detectLanguageMethodDescriptor); + methodDescriptors.add(getSupportedLanguagesMethodDescriptor); + methodDescriptors.add(translateDocumentMethodDescriptor); + methodDescriptors.add(batchTranslateTextMethodDescriptor); + methodDescriptors.add(batchTranslateDocumentMethodDescriptor); + methodDescriptors.add(createGlossaryMethodDescriptor); + methodDescriptors.add(listGlossariesMethodDescriptor); + methodDescriptors.add(getGlossaryMethodDescriptor); + methodDescriptors.add(deleteGlossaryMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java new file mode 100644 index 000000000000..7c8a11caf086 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java @@ -0,0 +1,145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class TranslationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable translateTextCallable() { + throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); + } + + public UnaryCallable detectLanguageCallable() { + throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); + } + + public UnaryCallable + getSupportedLanguagesCallable() { + throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); + } + + public UnaryCallable + translateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); + } + + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateTextOperationCallable()"); + } + + public UnaryCallable batchTranslateTextCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); + } + + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateDocumentOperationCallable()"); + } + + public UnaryCallable batchTranslateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); + } + + public OperationCallable + createGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); + } + + public UnaryCallable createGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); + } + + public UnaryCallable + listGlossariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); + } + + public UnaryCallable listGlossariesCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); + } + + public UnaryCallable getGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); + } + + public OperationCallable + deleteGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); + } + + public UnaryCallable deleteGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java new file mode 100644 index 000000000000..8db1ff5aae6d --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java @@ -0,0 +1,869 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceStubSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceStubSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-translation") + .build(); + + private final UnaryCallSettings + translateTextSettings; + private final UnaryCallSettings + detectLanguageSettings; + private final UnaryCallSettings + getSupportedLanguagesSettings; + private final UnaryCallSettings + translateDocumentSettings; + private final UnaryCallSettings batchTranslateTextSettings; + private final OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings + batchTranslateDocumentSettings; + private final OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings createGlossarySettings; + private final OperationCallSettings + createGlossaryOperationSettings; + private final PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings getGlossarySettings; + private final UnaryCallSettings deleteGlossarySettings; + private final OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + + private static final PagedListDescriptor + LIST_GLOSSARIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { + return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGlossariesRequest injectPageSize( + ListGlossariesRequest payload, int pageSize) { + return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGlossariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGlossariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGlossariesResponse payload) { + return payload.getGlossariesList() == null + ? ImmutableList.of() + : payload.getGlossariesList(); + } + }; + + private static final PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + LIST_GLOSSARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGlossariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); + return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return translateTextSettings; + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + public TranslationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTranslationServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTranslationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "translate.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "translate.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + translateTextSettings = settingsBuilder.translateTextSettings().build(); + detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); + getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); + translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); + batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); + batchTranslateTextOperationSettings = + settingsBuilder.batchTranslateTextOperationSettings().build(); + batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); + batchTranslateDocumentOperationSettings = + settingsBuilder.batchTranslateDocumentOperationSettings().build(); + createGlossarySettings = settingsBuilder.createGlossarySettings().build(); + createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); + listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); + getGlossarySettings = settingsBuilder.getGlossarySettings().build(); + deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); + deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); + } + + /** Builder for TranslationServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + translateTextSettings; + private final UnaryCallSettings.Builder + detectLanguageSettings; + private final UnaryCallSettings.Builder + getSupportedLanguagesSettings; + private final UnaryCallSettings.Builder + translateDocumentSettings; + private final UnaryCallSettings.Builder + batchTranslateTextSettings; + private final OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings.Builder + batchTranslateDocumentSettings; + private final OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings.Builder + createGlossarySettings; + private final OperationCallSettings.Builder< + CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> + createGlossaryOperationSettings; + private final PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings.Builder getGlossarySettings; + private final UnaryCallSettings.Builder + deleteGlossarySettings; + private final OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); + batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); + createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGlossaryOperationSettings = OperationCallSettings.newBuilder(); + listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); + getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + initDefaults(this); + } + + protected Builder(TranslationServiceStubSettings settings) { + super(settings); + + translateTextSettings = settings.translateTextSettings.toBuilder(); + detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); + getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); + translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); + batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); + batchTranslateTextOperationSettings = + settings.batchTranslateTextOperationSettings.toBuilder(); + batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); + batchTranslateDocumentOperationSettings = + settings.batchTranslateDocumentOperationSettings.toBuilder(); + createGlossarySettings = settings.createGlossarySettings.toBuilder(); + createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); + listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); + getGlossarySettings = settings.getGlossarySettings.toBuilder(); + deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); + deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .translateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .detectLanguageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getSupportedLanguagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .translateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .batchTranslateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .batchTranslateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listGlossariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .batchTranslateTextOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .batchTranslateDocumentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchTranslateDocumentResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchTranslateDocumentMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return translateTextSettings; + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @Override + public TranslationServiceStubSettings build() throws IOException { + return new TranslationServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json new file mode 100644 index 000000000000..d3385a0a400e --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json @@ -0,0 +1,1946 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentTranslation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentTranslation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.InputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.InputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.OutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.OutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguages", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguages$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Translation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Translation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java new file mode 100644 index 000000000000..6a2b27a48654 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationService implements MockGrpcService { + private final MockTranslationServiceImpl serviceImpl; + + public MockTranslationService() { + serviceImpl = new MockTranslationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java new file mode 100644 index 000000000000..fa60bcd84b2f --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java @@ -0,0 +1,271 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.translate.v3beta1.TranslationServiceGrpc.TranslationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationServiceImpl extends TranslationServiceImplBase { + private List requests; + private Queue responses; + + public MockTranslationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void translateText( + TranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateTextResponse) { + requests.add(request); + responseObserver.onNext(((TranslateTextResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateTextResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void detectLanguage( + DetectLanguageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DetectLanguageResponse) { + requests.add(request); + responseObserver.onNext(((DetectLanguageResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DetectLanguage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DetectLanguageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSupportedLanguages( + GetSupportedLanguagesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SupportedLanguages) { + requests.add(request); + responseObserver.onNext(((SupportedLanguages) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SupportedLanguages.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void translateDocument( + TranslateDocumentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateDocumentResponse) { + requests.add(request); + responseObserver.onNext(((TranslateDocumentResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateDocumentResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateText( + BatchTranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateDocument( + BatchTranslateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGlossary( + CreateGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGlossaries( + ListGlossariesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGlossariesResponse) { + requests.add(request); + responseObserver.onNext(((ListGlossariesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGlossaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGlossariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Glossary) { + requests.add(request); + responseObserver.onNext(((Glossary) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Glossary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGlossary( + DeleteGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..833b24cd2ee2 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java @@ -0,0 +1,1036 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.translate.v3beta1.stub.HttpJsonTranslationServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTranslationServiceStub.getMethodDescriptors(), + TranslationServiceSettings.getDefaultEndpoint()); + TranslationServiceSettings settings = + TranslationServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateTextResponse actualResponse = client.translateText(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateText(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java new file mode 100644 index 000000000000..49f53b41e820 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTranslationService mockTranslationService; + private LocalChannelProvider channelProvider; + private TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTranslationService = new MockTranslationService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TranslationServiceSettings settings = + TranslationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateTextResponse actualResponse = client.translateText(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList()); + Assert.assertEquals(request.getMimeType(), actualRequest.getMimeType()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateText(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); + Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals( + request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); + Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); + Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); + Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String name = "name3373707"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java index bf8e7906ee95..90086bd0466e 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -37,134 +20,113 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.ListLocationsRequest,
-            com.google.cloud.location.ListLocationsResponse>
-        getListLocationsMethod;
+  public static io.grpc.MethodDescriptor getListLocationsMethod() {
+    io.grpc.MethodDescriptor getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod =
-              getListLocationsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-                      .build();
+          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+              .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-        getGetLocationMethod;
+  public static io.grpc.MethodDescriptor getGetLocationMethod() {
+    io.grpc.MethodDescriptor getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod =
-              getGetLocationMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.Location.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-                      .build();
+          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.Location.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+              .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsStub(channel, callOptions);
+        }
+      };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsBlockingStub(channel, callOptions);
+        }
+      };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static LocationsFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsFutureStub(channel, callOptions);
+        }
+      };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -174,108 +136,88 @@ public LocationsFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); + default void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - default void getLocation( - com.google.cloud.location.GetLocationRequest request, + default void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class LocationsImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub + extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** - * - * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, + public void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -284,7 +226,8 @@ public void getLocation(
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -295,27 +238,21 @@ protected LocationsBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -323,7 +260,6 @@ public com.google.cloud.location.Location getLocation( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -332,38 +268,35 @@ public com.google.cloud.location.Location getLocation(
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -372,11 +305,11 @@ protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_LOCATIONS = 0; private static final int METHODID_GET_LOCATION = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -390,14 +323,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -419,24 +349,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>( + service, METHODID_GET_LOCATION))) .build(); } - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -478,13 +408,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java new file mode 100644 index 000000000000..c48a6cfe3d9c --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java @@ -0,0 +1,1157 @@ +package com.google.cloud.translate.v3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateTextMethod() { + io.grpc.MethodDescriptor getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetectLanguageMethod() { + io.grpc.MethodDescriptor getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { + io.grpc.MethodDescriptor getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { + io.grpc.MethodDescriptor getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListGlossariesMethod() { + io.grpc.MethodDescriptor getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3beta1.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetGlossaryMethod() { + io.grpc.MethodDescriptor getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TranslationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static abstract class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.Glossary getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText((com.google.cloud.translate.v3beta1.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage((com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries((com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary((com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary>( + service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private static abstract class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java similarity index 77% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java index 76528b7c481e..9b454d2bb90c 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentInputConfig() {} + private BatchDocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -133,7 +107,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -141,8 +114,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -166,19 +137,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -206,13 +174,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,7 +191,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -238,9 +206,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -250,18 +217,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other =
-        (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -291,136 +258,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -455,11 +417,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = - new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -469,11 +428,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentInput int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -482,39 +441,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -522,18 +480,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -561,19 +516,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,12 +538,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -601,13 +556,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -631,7 +581,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -639,8 +588,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -664,7 +611,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -682,8 +628,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -722,8 +666,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -760,8 +702,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -788,13 +728,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -810,8 +747,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -853,8 +788,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -883,8 +816,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -921,8 +852,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -948,19 +877,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -970,9 +894,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -982,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3beta1.BatchDocumentInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig();
   }
@@ -996,27 +920,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1031,4 +955,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
index 2f203da680ed..3406b688b235 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentInputConfigOrBuilder
-    extends
+public interface BatchDocumentInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -49,13 +31,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +58,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
similarity index 76%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
index 80e7f74bea69..514d7133b009 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
@@ -1,78 +1,56 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentOutputConfig() {} + private BatchDocumentOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -142,24 +116,23 @@ public DestinationCase getDestinationCase() {
    * Since index.csv will be keeping updated during the process, please make
    * sure there is no custom retention policy applied on the output bucket
    * that may avoid file updating.
-   * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+   * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -167,8 +140,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -201,36 +172,33 @@ public boolean hasGcsDestination() {
    * Since index.csv will be keeping updated during the process, please make
    * sure there is no custom retention policy applied on the output bucket
    * that may avoid file updating.
-   * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+   * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -263,19 +231,19 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * Since index.csv will be keeping updated during the process, please make
    * sure there is no custom retention policy applied on the output bucket
    * that may avoid file updating.
-   * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+   * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
    * output is a txt file containing error details.
    * 
* @@ -284,13 +252,12 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } @@ -316,9 +284,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -328,18 +295,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other = - (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj; + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -369,136 +336,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -512,14 +474,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance(); } @@ -534,26 +495,22 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = - new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -562,39 +519,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -602,19 +558,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other) { - if (other - == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -642,19 +594,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -664,12 +616,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -682,13 +634,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -721,24 +668,23 @@ public Builder clearDestination() {
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -746,8 +692,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -780,24 +724,23 @@ public boolean hasGcsDestination() {
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -815,8 +758,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -849,19 +790,19 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* @@ -881,8 +822,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -915,19 +854,19 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* @@ -945,8 +884,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -979,19 +916,19 @@ public Builder setGcsDestination(
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* @@ -999,14 +936,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3beta1.GcsDestination.newBuilder( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1022,8 +955,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1056,19 +987,19 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* @@ -1091,8 +1022,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1125,19 +1054,19 @@ public Builder clearGcsDestination() {
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* @@ -1147,8 +1076,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1181,19 +1108,19 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* @@ -1211,8 +1138,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1245,38 +1170,33 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * Since index.csv will be keeping updated during the process, please make
      * sure there is no custom retention policy applied on the output bucket
      * that may avoid file updating.
-     * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+     * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
      *
      * The naming format of translation output files follows (for target
      * language code [trg]): `translation_output`:
-     * gs://translation_output/a_b_c_[trg]_translation.[extension]
+     * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
      * `glossary_translation_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
      * output document will maintain the same file format as the input document.
      *
      * The naming format of error output files follows (for target language code
-     * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+     * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
      * `glossary_error_output`:
-     * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+     * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
      * output is a txt file containing error details.
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3beta1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1286,9 +1206,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat onChanged(); return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1298,13 +1218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) - private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(); } @@ -1313,27 +1232,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1348,4 +1267,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java similarity index 80% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java index 6baa8740c861..7f63ba313509 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchDocumentOutputConfigOrBuilder - extends +public interface BatchDocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -58,30 +40,27 @@ public interface BatchDocumentOutputConfigOrBuilder
    * Since index.csv will be keeping updated during the process, please make
    * sure there is no custom retention policy applied on the output bucket
    * that may avoid file updating.
-   * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+   * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -114,30 +93,27 @@ public interface BatchDocumentOutputConfigOrBuilder
    * Since index.csv will be keeping updated during the process, please make
    * sure there is no custom retention policy applied on the output bucket
    * that may avoid file updating.
-   * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+   * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
    * output is a txt file containing error details.
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -170,19 +146,19 @@ public interface BatchDocumentOutputConfigOrBuilder
    * Since index.csv will be keeping updated during the process, please make
    * sure there is no custom retention policy applied on the output bucket
    * that may avoid file updating.
-   * (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+   * (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
    *
    * The naming format of translation output files follows (for target
    * language code [trg]): `translation_output`:
-   * gs://translation_output/a_b_c_[trg]_translation.[extension]
+   * `gs://translation_output/a_b_c_[trg]_translation.[extension]`
    * `glossary_translation_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
    * output document will maintain the same file format as the input document.
    *
    * The naming format of error output files follows (for target language code
-   * [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
+   * [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
    * `glossary_error_output`:
-   * gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
+   * `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error
    * output is a txt file containing error details.
    * 
* diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java similarity index 71% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java index 8bf67fed5ae8..7f495e9b0317 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -84,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -94,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -104,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +123,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -170,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -180,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -203,6 +158,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,57 +183,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -297,52 +248,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -353,15 +290,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -372,15 +306,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -391,15 +322,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -410,14 +338,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -428,15 +353,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -447,15 +369,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -466,15 +385,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -485,14 +401,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -500,14 +413,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ @java.lang.Override @@ -515,8 +425,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -529,7 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -541,10 +448,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -583,37 +489,45 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -623,26 +537,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() != other.getTotalPages()) return false; - if (getTranslatedPages() != other.getTranslatedPages()) return false; - if (getFailedPages() != other.getFailedPages()) return false; - if (getTotalBillablePages() != other.getTotalBillablePages()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (getTotalPages() + != other.getTotalPages()) return false; + if (getTranslatedPages() + != other.getTranslatedPages()) return false; + if (getFailedPages() + != other.getFailedPages()) return false; + if (getTotalBillablePages() + != other.getTotalBillablePages()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() + != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -658,21 +580,29 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -683,138 +613,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } - // Construct using - // com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() - private Builder() {} + // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -837,14 +760,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -859,17 +781,13 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = - new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -899,7 +817,9 @@ private void buildPartial0( result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -907,50 +827,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { + if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1007,73 +923,64 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1083,36 +990,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1123,40 +1020,28 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { + public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1166,15 +1051,11 @@ public Builder setState( return this; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return This builder for chaining. */ public Builder clearState() { @@ -1184,17 +1065,14 @@ public Builder clearState() { return this; } - private long totalPages_; + private long totalPages_ ; /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -1202,15 +1080,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1222,15 +1097,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1240,17 +1112,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -1258,15 +1127,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1278,15 +1144,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1296,17 +1159,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -1314,15 +1174,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1334,15 +1191,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1352,17 +1206,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1370,15 +1221,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1390,15 +1238,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1408,16 +1253,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -1425,14 +1267,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1444,14 +1283,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1461,17 +1297,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1479,15 +1312,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1499,15 +1329,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1517,17 +1344,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -1535,15 +1359,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1555,15 +1376,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1573,17 +1391,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1591,15 +1406,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1611,15 +1423,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1631,47 +1440,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1692,15 +1488,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1711,8 +1506,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1721,9 +1514,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1736,8 +1529,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1755,8 +1546,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1769,8 +1558,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1781,14 +1568,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1796,24 +1580,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1823,43 +1604,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1871,8 +1650,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java index ee61a8cc79bf..d6562ae29804 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,191 +1,137 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentMetadataOrBuilder - extends +public interface BatchTranslateDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState(); /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java index a7a590e82f62..1376e05c8509 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java @@ -1,63 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -66,27 +51,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -99,10 +79,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -111,15 +88,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -132,18 +108,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -152,20 +127,16 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
-   * Language Support (https://cloud.google.com/translate/docs/languages).
+   * [Language Support](https://cloud.google.com/translate/docs/languages).
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -174,31 +145,31 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
-   * Language Support (https://cloud.google.com/translate/docs/languages).
+   * [Language Support](https://cloud.google.com/translate/docs/languages).
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -207,53 +178,41 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -261,30 +220,24 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List inputConfigs_; /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -292,18 +245,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -311,19 +259,14 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,17 +274,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -349,17 +288,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -367,31 +302,24 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder - getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( + int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -399,76 +327,60 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -490,21 +402,20 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -530,8 +441,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -553,19 +462,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -587,11 +494,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -599,126 +506,94 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
-
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        defaultEntry =
+        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.translate.v3beta1.TranslationServiceProto
-                            .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-      glossaries_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-      internalGetGlossaries() {
+      java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
+  private com.google.protobuf.MapField
+  internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
-
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -726,36 +601,32 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; - private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -769,26 +640,23 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -802,17 +670,13 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -826,24 +690,20 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -857,16 +717,14 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -874,7 +732,6 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -886,7 +743,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -902,11 +760,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModels(), + ModelsDefaultEntryHolder.defaultEntry, + 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetGlossaries(), + GlossariesDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -935,43 +802,42 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry : - internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry models__ = - ModelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - entry : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - GlossariesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry : - internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry formatConversions__ = - FormatConversionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry + : internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry + models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, models__); + } + for (java.util.Map.Entry entry + : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry + glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry + : internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry + formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, formatConversions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -981,25 +847,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList() + .equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList() + .equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals(other.internalGetModels())) return false; - if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals( + other.internalGetModels())) return false; + if (!internalGetGlossaries().equals( + other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals( + other.internalGetFormatConversions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1045,121 +918,116 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -1168,12 +1036,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1182,34 +1051,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1229,14 +1100,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance(); } @@ -1251,18 +1121,14 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = - new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1274,8 +1140,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1288,8 +1153,9 @@ private void buildPartial0( result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1309,50 +1175,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { + if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1391,10 +1253,9 @@ public Builder mergeFrom( inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1403,11 +1264,14 @@ public Builder mergeFrom( if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom( + other.internalGetFormatConversions()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1435,92 +1299,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry - formatConversions__ = - input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFormatConversions() - .getMutableMap() - .put(formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + formatConversions__ = input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFormatConversions().getMutableMap().put( + formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1530,13 +1377,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1549,16 +1393,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1567,8 +1409,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1581,17 +1421,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1599,8 +1438,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1613,25 +1450,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1644,10 +1475,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1657,8 +1485,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1671,17 +1497,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1691,22 +1513,20 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
-     * Language Support (https://cloud.google.com/translate/docs/languages).
+     * [Language Support](https://cloud.google.com/translate/docs/languages).
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1715,23 +1535,22 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
-     * Language Support (https://cloud.google.com/translate/docs/languages).
+     * [Language Support](https://cloud.google.com/translate/docs/languages).
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1739,39 +1558,32 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
-     * Language Support (https://cloud.google.com/translate/docs/languages).
+     * [Language Support](https://cloud.google.com/translate/docs/languages).
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
-     * Language Support (https://cloud.google.com/translate/docs/languages).
+     * [Language Support](https://cloud.google.com/translate/docs/languages).
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1781,23 +1593,19 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
-     * Language Support (https://cloud.google.com/translate/docs/languages).
+     * [Language Support](https://cloud.google.com/translate/docs/languages).
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1807,7 +1615,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1815,49 +1622,38 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1865,41 +1661,33 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1907,23 +1695,18 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1931,64 +1714,53 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1997,27 +1769,19 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) return this; } - private java.util.List - inputConfigs_ = java.util.Collections.emptyList(); - + private java.util.List inputConfigs_ = + java.util.Collections.emptyList(); private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = - new java.util.ArrayList( - inputConfigs_); + inputConfigs_ = new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> - inputConfigsBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2025,12 +1789,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -2038,8 +1799,6 @@ private void ensureInputConfigsIsMutable() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2047,9 +1806,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2059,8 +1816,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2068,9 +1823,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2080,8 +1833,6 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2089,9 +1840,7 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -2108,8 +1857,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2117,13 +1864,10 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( - int index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.set(index, builderForValue.build()); @@ -2134,8 +1878,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2143,12 +1885,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addInputConfigs( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { + public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2162,8 +1901,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2171,9 +1908,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -2190,8 +1925,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2199,9 +1932,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { @@ -2215,8 +1946,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2224,13 +1953,10 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( - int index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.add(index, builderForValue.build()); @@ -2241,8 +1967,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2250,16 +1974,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2267,8 +1989,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2276,9 +1996,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2291,8 +2009,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2300,9 +2016,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2315,8 +2029,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2324,17 +2036,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - getInputConfigsBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder getInputConfigsBuilder( + int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2342,21 +2050,16 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder - getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( + int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2364,13 +2067,10 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2378,8 +2078,6 @@ public Builder removeInputConfigs(int index) { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2387,19 +2085,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2407,20 +2099,14 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - addInputConfigsBuilder(int index) { - return getInputConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder( + int index) { + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2428,27 +2114,22 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2456,67 +2137,47 @@ public Builder removeInputConfigs(int index) { private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOutputConfig( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder setOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2530,17 +2191,13 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2554,26 +2211,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2586,17 +2236,13 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2609,90 +2255,74 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder - getOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2701,13 +2331,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2729,21 +2356,20 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2769,8 +2395,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2792,19 +2416,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2826,25 +2448,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2865,22 +2485,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2901,20 +2522,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2935,18 +2553,17 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        glossaries_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
+    private com.google.protobuf.MapField
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -2954,13 +2571,11 @@ public Builder putAllModels(java.util.Map va
       }
       return glossaries_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+    private com.google.protobuf.MapField
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ =
-            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ = com.google.protobuf.MapField.newMapField(
+            GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2969,181 +2584,140 @@ public Builder putAllModels(java.util.Map va
       onChanged();
       return glossaries_;
     }
-
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -3152,13 +2726,11 @@ public Builder putAllGlossaries( } return formatConversions_; } - private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -3167,13 +2739,10 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3187,26 +2756,23 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3220,17 +2786,13 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3244,25 +2806,20 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3276,15 +2833,12 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -3292,15 +2846,13 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap().clear(); + internalGetMutableFormatConversions().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3314,26 +2866,25 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFormatConversions().getMutableMap().remove(key); + public Builder removeFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFormatConversions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableFormatConversions() { + public java.util.Map + getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3347,24 +2898,19 @@ public java.util.Map getMutableFormatConvers
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putFormatConversions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFormatConversions().getMutableMap().put(key, value); + public Builder putFormatConversions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableFormatConversions().getMutableMap() + .put(key, value); bitField0_ |= 0x00000080; return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3378,19 +2924,18 @@ public Builder putFormatConversions(java.lang.String key, java.lang.String value
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap().putAll(values); + internalGetMutableFormatConversions().getMutableMap() + .putAll(values); bitField0_ |= 0x00000080; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3400,43 +2945,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3448,8 +2991,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java index c7af730c90db..fb24daa5c499 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentRequestOrBuilder - extends +public interface BatchTranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -60,105 +37,82 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
-   * Language Support (https://cloud.google.com/translate/docs/languages).
+   * [Language Support](https://cloud.google.com/translate/docs/languages).
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
-   * Language Support (https://cloud.google.com/translate/docs/languages).
+   * [Language Support](https://cloud.google.com/translate/docs/languages).
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,14 +120,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -181,14 +132,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -196,14 +143,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -211,15 +154,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -227,63 +166,45 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -306,8 +227,6 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -328,13 +247,15 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -355,10 +276,9 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -380,13 +300,11 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -407,82 +325,64 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -496,14 +396,10 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getFormatConversionsCount(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -517,17 +413,17 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsFormatConversions( + java.lang.String key); + /** + * Use {@link #getFormatConversionsMap()} instead. */ - boolean containsFormatConversions(java.lang.String key); - /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map getFormatConversions(); + java.util.Map + getFormatConversions(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -541,14 +437,11 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getFormatConversionsMap(); + java.util.Map + getFormatConversionsMap(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -562,18 +455,14 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getFormatConversionsOrDefault( +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -587,9 +476,8 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getFormatConversionsOrThrow(java.lang.String key); + java.lang.String getFormatConversionsOrThrow( + java.lang.String key); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java index 5719acca8c95..195df291224e 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,52 +13,47 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateDocumentResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateDocumentResponse() {}
+  private BatchTranslateDocumentResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -86,15 +64,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -105,15 +80,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -124,15 +96,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -143,14 +112,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -161,15 +127,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -180,15 +143,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -199,15 +159,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -218,14 +175,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -233,14 +187,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ @java.lang.Override @@ -248,8 +199,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -264,8 +213,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -273,7 +220,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -281,8 +227,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -290,7 +234,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ @java.lang.Override @@ -298,8 +241,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -314,7 +255,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -326,7 +266,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -367,34 +308,44 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -404,29 +355,38 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages() != other.getTotalPages()) return false;
-    if (getTranslatedPages() != other.getTranslatedPages()) return false;
-    if (getFailedPages() != other.getFailedPages()) return false;
-    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
+    if (getTranslatedPages()
+        != other.getTranslatedPages()) return false;
+    if (getFailedPages()
+        != other.getFailedPages()) return false;
+    if (getTotalBillablePages()
+        != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters()
+        != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -440,21 +400,29 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -469,105 +437,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -577,33 +538,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -630,14 +591,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -652,17 +612,13 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse build()
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result =
-          new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -689,10 +645,14 @@ private void buildPartial0(
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -700,50 +660,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
-      if (other
-          == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -800,73 +756,66 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalPages_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedPages_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedPages_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                totalBillablePages_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 48:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 64:
-              {
-                totalBillableCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalPages_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedPages_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedPages_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              totalBillablePages_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 48: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 64: {
+              totalBillableCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -876,20 +825,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalPages_;
+    private long totalPages_ ;
     /**
-     *
-     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -897,15 +842,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -917,15 +859,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -935,17 +874,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -953,15 +889,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -973,15 +906,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -991,17 +921,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -1009,15 +936,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1029,15 +953,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1047,17 +968,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1065,15 +983,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1085,15 +1000,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1103,16 +1015,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -1120,14 +1029,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1139,14 +1045,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1156,17 +1059,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1174,15 +1074,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1194,15 +1091,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1212,17 +1106,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -1230,15 +1121,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1250,15 +1138,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1268,17 +1153,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1286,15 +1168,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1306,15 +1185,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1326,47 +1202,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1387,15 +1250,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1406,8 +1268,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1416,9 +1276,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1431,8 +1291,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1450,8 +1308,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1464,8 +1320,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1476,14 +1330,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1491,17 +1342,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1509,13 +1357,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1523,15 +1366,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1539,7 +1379,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1550,8 +1389,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1574,8 +1411,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1584,7 +1419,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1595,8 +1431,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1607,9 +1441,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1622,8 +1456,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1643,8 +1475,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1659,8 +1489,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1673,12 +1501,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1688,24 +1515,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1715,43 +1539,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse();
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      getDefaultInstance() {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateDocumentResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateDocumentResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1763,8 +1585,9 @@ public com.google.protobuf.Parser getParserForTy
   }
 
   @java.lang.Override
-  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
index 4806876f2ba6..48ae35448d03 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,166 +1,118 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateDocumentResponseOrBuilder
-    extends
+public interface BatchTranslateDocumentResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -170,8 +122,6 @@ public interface BatchTranslateDocumentResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -179,13 +129,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -193,13 +140,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
index 5288b093f430..66d3a6f7dc36 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
@@ -1,80 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -83,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -93,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -104,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCEEDED(2),
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -171,8 +133,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -181,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -192,8 +150,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -204,6 +160,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -228,57 +185,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -298,51 +250,37 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -353,15 +291,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -372,8 +307,6 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -381,7 +314,6 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -392,14 +324,11 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -407,14 +336,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ @java.lang.Override @@ -422,8 +348,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -436,7 +360,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,10 +371,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -475,22 +397,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -500,21 +425,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = - (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -530,11 +458,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -545,136 +476,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.cloud.translate.v3beta1.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -692,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -713,11 +639,8 @@ public com.google.cloud.translate.v3beta1.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = - new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -737,7 +660,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -745,39 +670,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata)other); } else { super.mergeFrom(other); return this; @@ -785,8 +709,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -828,43 +751,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -874,34 +793,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -912,33 +823,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -952,14 +854,11 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateMetadat return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -969,16 +868,13 @@ public Builder clearState() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -986,14 +882,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1005,14 +898,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1022,17 +912,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -1040,15 +927,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1060,15 +944,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1078,10 +959,8 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1089,7 +968,6 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -1097,8 +975,6 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1106,7 +982,6 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1118,8 +993,6 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1127,7 +1000,6 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1139,47 +1011,34 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1200,15 +1059,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1219,8 +1077,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1229,9 +1085,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1244,8 +1100,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1263,8 +1117,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1277,8 +1129,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1289,14 +1139,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1304,24 +1151,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1331,12 +1175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) private static final com.google.cloud.translate.v3beta1.BatchTranslateMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(); } @@ -1345,27 +1189,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1380,4 +1224,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java index 2911ae114fc0..24288b893c13 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java @@ -1,83 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateMetadataOrBuilder - extends +public interface BatchTranslateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState(); /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -85,38 +55,29 @@ public interface BatchTranslateMetadataOrBuilder
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java index f779d3c1d97e..eb2e9d32ebce 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,50 +13,46 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateResponse() {}
+  private BatchTranslateResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -84,14 +63,11 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -102,14 +78,11 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -120,14 +93,11 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -135,14 +105,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ @java.lang.Override @@ -150,8 +117,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -166,8 +131,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,7 +138,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -183,8 +145,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -192,7 +152,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -200,8 +159,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -216,7 +173,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -228,7 +184,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -254,19 +211,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -276,24 +238,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateResponse other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3beta1.BatchTranslateResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -307,11 +273,14 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -326,104 +295,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -433,32 +396,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.BatchTranslateResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -501,11 +465,8 @@ public com.google.cloud.translate.v3beta1.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateResponse result =
-          new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -522,10 +483,14 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -533,39 +498,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -573,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance()) return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -616,43 +579,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -662,19 +623,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalCharacters_;
+    private long totalCharacters_ ;
     /**
-     *
-     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -682,14 +639,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -701,14 +655,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -718,16 +669,13 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -735,14 +683,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -754,14 +699,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -771,16 +713,13 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -788,14 +727,11 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -807,14 +743,11 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -826,47 +759,34 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -887,15 +807,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -906,8 +825,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -916,9 +833,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -931,8 +848,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -950,8 +865,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -964,8 +877,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -976,14 +887,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -991,17 +899,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1009,13 +914,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1023,15 +923,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1039,7 +936,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1050,8 +946,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1074,8 +968,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1084,7 +976,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1095,8 +988,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1107,9 +998,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1122,8 +1013,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1143,8 +1032,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1159,8 +1046,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1173,12 +1058,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1188,24 +1072,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1215,12 +1096,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3beta1.BatchTranslateResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateResponse();
   }
@@ -1229,27 +1110,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1264,4 +1145,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
index 33739b257319..3c63f05430e4 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
@@ -1,94 +1,61 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateResponseOrBuilder
-    extends
+public interface BatchTranslateResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -98,8 +65,6 @@ public interface BatchTranslateResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -121,13 +83,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
similarity index 65%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
index 8cedb8afe7cd..c952917b2f13 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
@@ -1,63 +1,48 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -66,27 +51,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -99,10 +79,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -111,15 +88,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -132,18 +108,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -152,18 +127,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -172,29 +143,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -203,50 +174,38 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -254,51 +213,46 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -320,21 +274,20 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -360,8 +313,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -383,19 +334,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -417,11 +366,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -429,12 +378,9 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -442,17 +388,13 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -460,18 +402,14 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -479,17 +417,13 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -497,17 +431,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -515,9 +445,7 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( @@ -528,18 +456,13 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -547,171 +470,126 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; - private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - defaultEntry = + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -719,34 +597,32 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -761,21 +637,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -794,8 +669,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -810,19 +683,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -837,11 +708,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -849,7 +720,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -861,7 +731,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -871,18 +742,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetModels(),
+        ModelsDefaultEntryHolder.defaultEntry,
+        4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetGlossaries(),
+        GlossariesDefaultEntryHolder.defaultEntry,
+        7);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        9);
     getUnknownFields().writeTo(output);
   }
 
@@ -906,44 +789,43 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry :
-        internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry models__ =
-          ModelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry
+         : internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        entry : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-          glossaries__ =
-              GlossariesDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -953,25 +835,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
-
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(other.internalGetModels())) return false;
-    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
+
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList()
+        .equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(
+        other.internalGetModels())) return false;
+    if (!getInputConfigsList()
+        .equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(
+        other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1017,121 +906,116 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) com.google.cloud.translate.v3beta1.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -1140,12 +1024,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1154,34 +1039,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1201,14 +1088,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance(); } @@ -1223,18 +1109,14 @@ public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = - new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1246,8 +1128,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1264,8 +1145,9 @@ private void buildPartial0( result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1281,39 +1163,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1321,9 +1202,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1344,7 +1223,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe } onChanged(); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1364,10 +1244,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1376,9 +1255,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1406,90 +1287,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.translate.v3beta1.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.cloud.translate.v3beta1.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.InputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1499,13 +1365,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1518,16 +1381,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1536,8 +1397,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1550,17 +1409,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1568,8 +1426,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1582,25 +1438,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1613,10 +1463,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1626,8 +1473,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1640,17 +1485,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1660,20 +1501,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1682,21 +1521,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1704,35 +1542,28 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1742,21 +1573,17 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1766,7 +1593,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1774,46 +1600,35 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1821,39 +1636,31 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1861,22 +1668,17 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1884,61 +1686,50 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1947,19 +1738,21 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1968,13 +1761,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1996,21 +1786,20 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2036,8 +1825,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2059,19 +1846,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2093,25 +1878,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2132,22 +1915,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2168,20 +1952,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2202,32 +1983,27 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ =
-            new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.InputConfig,
-            com.google.cloud.translate.v3beta1.InputConfig.Builder,
-            com.google.cloud.translate.v3beta1.InputConfigOrBuilder>
-        inputConfigsBuilder_;
+        com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> inputConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2235,9 +2011,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2247,8 +2021,6 @@ public java.util.List getInputCo } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2256,9 +2028,7 @@ public java.util.List getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2268,8 +2038,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2277,9 +2045,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2289,8 +2055,6 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2298,9 +2062,7 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2317,8 +2079,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2326,9 +2086,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2342,8 +2100,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2351,9 +2107,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2369,8 +2123,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2378,9 +2130,7 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2397,8 +2147,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2406,9 +2154,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2422,8 +2168,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2431,9 +2175,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2447,8 +2189,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2456,15 +2196,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2472,8 +2211,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2481,9 +2218,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2496,8 +2231,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2505,9 +2238,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2520,8 +2251,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2529,17 +2258,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2547,21 +2272,16 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2569,12 +2289,10 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2582,8 +2300,6 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2591,17 +2307,13 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2609,18 +2321,14 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2628,27 +2336,22 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, - com.google.cloud.translate.v3beta1.InputConfig.Builder, - com.google.cloud.translate.v3beta1.InputConfigOrBuilder> + com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, - com.google.cloud.translate.v3beta1.InputConfig.Builder, - com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2656,64 +2359,45 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2729,17 +2413,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig v return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.OutputConfig.Builder builderForValue) { @@ -2753,24 +2433,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2783,17 +2458,13 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2806,17 +2477,13 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2824,63 +2491,48 @@ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBu return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2888,13 +2540,11 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO } return glossaries_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + private com.google.protobuf.MapField internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = - com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2903,199 +2553,160 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO onChanged(); return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3104,13 +2715,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3125,21 +2733,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3158,8 +2765,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3174,19 +2779,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3201,25 +2804,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3233,22 +2834,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3262,20 +2864,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3289,14 +2888,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3306,13 +2907,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest();
   }
@@ -3321,27 +2921,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3356,4 +2956,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
index 910797b64825..4a36ace0b91d 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateTextRequestOrBuilder
-    extends
+public interface BatchTranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -60,97 +37,74 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -173,8 +127,6 @@ public interface BatchTranslateTextRequestOrBuilder
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -195,13 +147,15 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -222,10 +176,9 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -247,13 +200,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,11 +225,10 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -286,14 +236,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -301,14 +248,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -316,14 +259,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,15 +270,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -347,138 +282,104 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index); + com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( + int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -494,8 +395,6 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -509,13 +408,15 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -529,10 +430,9 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -547,13 +447,11 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -567,5 +465,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
similarity index 70%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
index f7237dc2e115..3127085cac39 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully created.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to create the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully created.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to create the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = - (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,104 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -624,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
       com.google.cloud.translate.v3beta1.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -665,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -686,11 +609,8 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result =
-          new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -704,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -712,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -752,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -791,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -852,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -874,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -912,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -936,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -969,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1009,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3beta1.CreateGlossaryMetadat return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1028,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1089,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1108,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1118,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1133,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1152,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1166,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1178,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1193,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.CreateGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(); } @@ -1234,27 +1090,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1269,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java index 9408918bc8e2..e5de66c9d72a 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface CreateGlossaryMetadataOrBuilder - extends +public interface CreateGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java similarity index 60% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java index a345727ae32f..97c241454aee 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,16 +93,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.Glossary glossary_; /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ @java.lang.Override @@ -137,44 +105,30 @@ public boolean hasGlossary() { return glossary_ != null; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary getGlossary() { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -206,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,18 +172,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = - (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary().equals(other.getGlossary())) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -252,136 +209,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) com.google.cloud.translate.v3beta1.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -417,11 +369,8 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = - new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -432,7 +381,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null + ? glossary_ + : glossaryBuilder_.build(); } } @@ -440,39 +391,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -480,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -516,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,27 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -573,23 +516,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -597,39 +537,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -639,23 +568,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -665,58 +588,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> - glossaryBuilder_; + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossaryBuilder_; /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ public com.google.cloud.translate.v3beta1.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { @@ -732,15 +636,11 @@ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary( com.google.cloud.translate.v3beta1.Glossary.Builder builderForValue) { @@ -754,21 +654,17 @@ public Builder setGlossary( return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossary_ != null - && glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossary_ != null && + glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -781,15 +677,11 @@ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -802,15 +694,11 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -818,55 +706,43 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() return getGlossaryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - getGlossary(), getParentForChildren(), isClean()); + glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + getGlossary(), + getParentForChildren(), + isClean()); glossary_ = null; } return glossaryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) private static final com.google.cloud.translate.v3beta1.CreateGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(); } @@ -890,27 +766,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -925,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..148408b6d92a --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface CreateGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The glossary. + */ + com.google.cloud.translate.v3beta1.Glossary getGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java index bb6208859ee1..94664c7475ac 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = - (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,104 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -624,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3beta1.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -665,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -686,11 +609,8 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result =
-          new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -704,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -712,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -752,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -791,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -852,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -874,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -912,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -936,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -969,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1009,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadat return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1028,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1089,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1108,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1118,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1133,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1152,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1166,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1178,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1193,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(); } @@ -1234,27 +1090,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1269,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java index 3ff86a529e4c..c5b1c95fbbcd 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DeleteGlossaryMetadataOrBuilder - extends +public interface DeleteGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java index b84dcc7a1214..62933e0cb9e8 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = - (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) com.google.cloud.translate.v3beta1.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = - new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -486,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -510,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -552,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(); } @@ -601,27 +537,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..0285761073ae --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface DeleteGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java similarity index 71% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java index aac9812103e2..7ce6185f0757 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -29,54 +12,48 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -133,14 +107,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -148,8 +119,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -164,8 +133,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,7 +140,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -181,8 +147,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -190,7 +154,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -198,8 +161,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -214,7 +175,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -226,7 +186,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -249,10 +210,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -262,22 +225,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other =
-        (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other = (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -306,104 +271,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -412,32 +371,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
       com.google.cloud.translate.v3beta1.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -457,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -478,11 +438,8 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result =
-          new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -493,10 +450,14 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -504,39 +465,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -544,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -583,31 +542,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,25 +576,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -644,21 +600,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -666,35 +621,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -704,21 +652,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -728,47 +672,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -789,15 +720,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -808,8 +738,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -818,9 +746,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -833,8 +761,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -852,8 +778,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -866,8 +790,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -878,14 +800,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -893,17 +812,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -911,13 +827,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -925,15 +836,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -941,7 +849,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -952,8 +859,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -976,8 +881,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -986,7 +889,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -997,8 +901,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1009,9 +911,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1024,8 +926,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1045,8 +945,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1061,8 +959,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1075,12 +971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1090,24 +985,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1117,12 +1009,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3beta1.DeleteGlossaryResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse();
   }
@@ -1131,27 +1023,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteGlossaryResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteGlossaryResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1166,4 +1058,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
similarity index 74%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
index d3c3e76f020d..3f333cae33e7 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
@@ -1,80 +1,51 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DeleteGlossaryResponseOrBuilder
-    extends
+public interface DeleteGlossaryResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -84,8 +55,6 @@ public interface DeleteGlossaryResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +62,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +73,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
index 48a14238139e..60e64a3a8567 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) DetectLanguageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -45,49 +27,45 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -103,31 +81,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -142,10 +115,7 @@ public SourceCase getSourceCase() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -154,15 +124,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -177,18 +146,17 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,12 +165,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -216,7 +181,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -225,15 +189,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -247,15 +210,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -265,28 +229,22 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { @@ -297,7 +255,8 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -306,24 +265,23 @@ public java.lang.String getContent() { } } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -334,19 +292,15 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -355,30 +309,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -387,34 +341,32 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -429,21 +381,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -462,8 +413,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -478,19 +427,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -505,11 +452,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -517,7 +464,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -529,7 +475,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -542,8 +489,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     getUnknownFields().writeTo(output);
   }
 
@@ -565,15 +516,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -583,22 +534,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageRequest other =
-        (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageRequest other = (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent().equals(other.getContent())) return false;
+        if (!getContent()
+            .equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -638,156 +593,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) com.google.cloud.translate.v3beta1.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -802,9 +754,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -823,11 +775,8 @@ public com.google.cloud.translate.v3beta1.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageRequest result = - new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DetectLanguageRequest result = new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -850,8 +799,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageRequ } } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; } @@ -860,39 +808,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest)other); } else { super.mergeFrom(other); return this; @@ -900,8 +847,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -917,20 +863,19 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageReques bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -958,50 +903,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1011,12 +948,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -1030,8 +967,6 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1046,16 +981,14 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1064,8 +997,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1080,17 +1011,16 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1098,8 +1028,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1114,25 +1042,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1147,10 +1069,7 @@ public Builder setParent(java.lang.String value) {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1160,8 +1079,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1176,17 +1093,13 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1196,8 +1109,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1211,13 +1122,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1226,8 +1137,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1241,14 +1150,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1256,8 +1166,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1271,22 +1179,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1300,7 +1204,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1310,8 +1213,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1325,14 +1226,12 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1341,14 +1240,11 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1356,14 +1252,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -1373,7 +1266,8 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1384,25 +1278,24 @@ public java.lang.String getContent() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1412,35 +1305,28 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1452,21 +1338,17 @@ public Builder clearContent() { return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1476,21 +1358,19 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1499,22 +1379,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1522,37 +1401,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1562,22 +1434,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1585,19 +1453,21 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1606,13 +1476,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1627,21 +1494,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1660,8 +1526,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1676,19 +1540,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1703,25 +1565,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1735,22 +1595,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1764,20 +1625,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1791,14 +1649,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1808,12 +1668,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageRequest();
   }
@@ -1822,27 +1682,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1857,4 +1717,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
index 775b7874f4f5..203bc5697745 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageRequestOrBuilder
-    extends
+public interface DetectLanguageRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -40,16 +22,11 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -64,17 +41,13 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -88,13 +61,10 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -108,78 +78,63 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -195,8 +150,6 @@ public interface DetectLanguageRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -210,13 +163,15 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -230,10 +185,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -248,13 +202,11 @@ public interface DetectLanguageRequestOrBuilder
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -268,7 +220,8 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   com.google.cloud.translate.v3beta1.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
index 564f1d3b3d84..a62e0d3ed065 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
@@ -1,74 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) DetectLanguageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -81,8 +59,6 @@ public java.util.List getLa
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -91,13 +67,11 @@ public java.util.List getLa
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -140,7 +110,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -166,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -176,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageResponse other =
-        (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageResponse other = (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -206,136 +177,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) com.google.cloud.translate.v3beta1.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -372,18 +338,14 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageResponse result = - new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); + com.google.cloud.translate.v3beta1.DetectLanguageResponse result = new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -403,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse)other); } else { super.mergeFrom(other); return this; @@ -443,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -463,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRespon languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -498,27 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3beta1.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,30 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList( - languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.DetectedLanguage, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, - com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -567,8 +515,6 @@ public java.util.List getLa
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -584,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -601,8 +545,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -625,8 +567,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -646,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -669,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.DetectedLanguage
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -693,8 +629,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -714,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -735,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -748,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -756,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -776,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -796,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -810,8 +735,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -822,14 +745,11 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
     public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -837,8 +757,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -846,8 +766,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -856,12 +774,10 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -871,13 +787,10 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -885,30 +798,27 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.DetectedLanguage,
-            com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
-            com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>
+        com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.DetectedLanguage,
-                com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
-                com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageResponse();
   }
@@ -932,27 +842,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -967,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
index 7de0a0538e17..efeecfb6a1aa 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageResponseOrBuilder
-    extends
+public interface DetectLanguageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -33,10 +15,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -46,8 +27,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -57,8 +36,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -66,11 +43,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -78,5 +53,6 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
similarity index 68%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
index d021195a01f0..09a9eb377ea0 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
@@ -1,81 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ -public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -84,30 +61,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -134,7 +108,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,7 +119,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -166,7 +140,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,17 +151,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DetectedLanguage other = - (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; + com.google.cloud.translate.v3beta1.DetectedLanguage other = (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,142 +177,139 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectedLanguage) com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectedLanguage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override @@ -368,11 +341,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3beta1.DetectedLanguage result = - new com.google.cloud.translate.v3beta1.DetectedLanguage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DetectedLanguage result = new com.google.cloud.translate.v3beta1.DetectedLanguage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -391,39 +361,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectedLanguage r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage)other); } else { super.mergeFrom(other); return this; @@ -431,8 +400,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectedLanguage other) { - if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000001; @@ -467,25 +435,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,26 +460,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object languageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -523,22 +485,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -546,37 +507,30 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -586,22 +540,18 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -609,16 +559,13 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -626,14 +573,11 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ @@ -645,14 +589,11 @@ public Builder setConfidence(float value) { return this; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -661,9 +602,9 @@ public Builder clearConfidence() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -673,12 +614,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectedLanguage) private static final com.google.cloud.translate.v3beta1.DetectedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectedLanguage(); } @@ -687,27 +628,27 @@ public static com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -722,4 +663,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java similarity index 56% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java index cf19cfed0cc0..18315afd3353 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java @@ -1,64 +1,40 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DetectedLanguageOrBuilder - extends +public interface DetectedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java index 153fd3fc46ef..914665d42172 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ -public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentInputConfig) DocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -91,36 +68,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -128,14 +99,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -148,15 +116,12 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -164,27 +129,22 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -195,18 +155,15 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -221,7 +178,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
    * 
* * string mime_type = 4; - * * @return The mimeType. */ @java.lang.Override @@ -230,15 +186,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -253,15 +208,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -270,7 +226,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,9 +237,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) source_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); @@ -302,14 +259,13 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.translate.v3beta1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -322,22 +278,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentInputConfig other = - (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentInputConfig other = (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -373,136 +331,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -517,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override @@ -538,11 +491,8 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentInputConfig result = - new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DocumentInputConfig result = new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -558,7 +508,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -567,39 +518,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInput public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -607,28 +557,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: - { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -656,31 +602,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -690,12 +634,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -708,28 +652,22 @@ public Builder clearSource() { private int bitField0_; /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -739,35 +677,27 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -780,20 +710,14 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -801,15 +725,12 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -827,8 +748,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -850,8 +769,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -871,8 +788,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -882,13 +797,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -904,8 +816,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -930,8 +840,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -943,8 +851,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -964,8 +870,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -974,19 +878,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -999,8 +898,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
 
     private java.lang.Object mimeType_ = "";
     /**
-     *
-     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -1015,13 +912,13 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * 
* * string mime_type = 4; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1030,8 +927,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1046,14 +941,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1061,8 +957,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1077,22 +971,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 4; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1107,7 +997,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 4; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1117,8 +1006,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1133,23 +1020,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1159,12 +1044,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentInputConfig) private static final com.google.cloud.translate.v3beta1.DocumentInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentInputConfig(); } @@ -1173,27 +1058,27 @@ public static com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,4 +1093,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java index 11b3263e5212..06e08725269c 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentInputConfigOrBuilder - extends +public interface DocumentInputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -87,8 +57,6 @@ public interface DocumentInputConfigOrBuilder
   com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -103,13 +71,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -124,10 +89,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java similarity index 76% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java index 056977124737..9f0503508260 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) DocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -90,28 +67,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -129,9 +102,9 @@ public DestinationCase getDestinationCase() {
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -139,7 +112,7 @@ public DestinationCase getDestinationCase() {
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -148,7 +121,7 @@ public DestinationCase getDestinationCase() {
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -158,10 +131,7 @@ public DestinationCase getDestinationCase() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -169,8 +139,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -188,9 +156,9 @@ public boolean hasGcsDestination() {
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -198,7 +166,7 @@ public boolean hasGcsDestination() {
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -207,7 +175,7 @@ public boolean hasGcsDestination() {
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -217,22 +185,17 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -250,9 +213,9 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -260,7 +223,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -269,7 +232,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -279,25 +242,20 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -311,7 +269,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -320,15 +277,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -342,15 +298,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -359,7 +316,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } @@ -388,9 +345,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -403,19 +359,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentOutputConfig other = - (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentOutputConfig other = (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -447,136 +404,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -591,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -612,11 +564,8 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentOutputConfig result = - new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DocumentOutputConfig result = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -629,11 +578,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentOutputConf } } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -642,39 +591,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -682,23 +630,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -726,25 +671,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -754,12 +698,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -772,13 +716,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -796,9 +735,9 @@ public Builder clearDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -806,7 +745,7 @@ public Builder clearDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -815,7 +754,7 @@ public Builder clearDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -825,10 +764,7 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -836,8 +772,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -855,9 +789,9 @@ public boolean hasGcsDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -865,7 +799,7 @@ public boolean hasGcsDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -874,7 +808,7 @@ public boolean hasGcsDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -884,10 +818,7 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override @@ -905,8 +836,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -924,9 +853,9 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -934,7 +863,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -943,7 +872,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -953,9 +882,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -971,8 +898,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -990,9 +915,9 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1000,7 +925,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1009,7 +934,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1019,9 +944,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination( com.google.cloud.translate.v3beta1.GcsDestination.Builder builderForValue) { @@ -1035,8 +958,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1054,9 +975,9 @@ public Builder setGcsDestination(
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1064,7 +985,7 @@ public Builder setGcsDestination(
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1073,7 +994,7 @@ public Builder setGcsDestination(
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1083,20 +1004,14 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3beta1.GcsDestination.newBuilder( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1112,8 +1027,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1131,9 +1044,9 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1141,7 +1054,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1150,7 +1063,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1160,9 +1073,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1181,8 +1092,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1200,9 +1109,9 @@ public Builder clearGcsDestination() {
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1210,7 +1119,7 @@ public Builder clearGcsDestination() {
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1219,7 +1128,7 @@ public Builder clearGcsDestination() {
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1229,16 +1138,12 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1256,9 +1161,9 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1266,7 +1171,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1275,7 +1180,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1285,9 +1190,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1301,8 +1204,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1320,9 +1221,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      *
      * For a DocumentInputConfig.gcs_uri provided document, the output file will
      * have a name according to its URI. For example: an input file with URI:
-     * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+     * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
      * "my_bucket" will have an output URI:
-     * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+     * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1330,7 +1231,7 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      *
      * If the document was directly provided through the request, then the
      * output document will have the format:
-     * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+     * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
      * - [trg] corresponds to the translated file's language code,
      * - [ext] corresponds to the translated file's extension according to its
      * mime type.
@@ -1339,7 +1240,7 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * translation will be equal to the default output URI but have
      * `glossary_translations` instead of `translations`. For the previous
      * example, its glossary URI would be:
-     * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+     * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
      *
      * Thus the max number of output files will be 2 (Translated document,
      * Glossary translated document).
@@ -1349,24 +1250,17 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3beta1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1379,8 +1273,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1394,13 +1286,13 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1409,8 +1301,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1424,14 +1314,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1439,8 +1330,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1454,22 +1343,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1483,7 +1368,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1493,8 +1377,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1508,23 +1390,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1534,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) private static final com.google.cloud.translate.v3beta1.DocumentOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(); } @@ -1548,27 +1428,27 @@ public static com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1583,4 +1463,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java index 76a92bb0d96b..17316468ae28 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentOutputConfigOrBuilder - extends +public interface DocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -43,9 +25,9 @@ public interface DocumentOutputConfigOrBuilder
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -53,7 +35,7 @@ public interface DocumentOutputConfigOrBuilder
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -62,7 +44,7 @@ public interface DocumentOutputConfigOrBuilder
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -72,16 +54,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -99,9 +76,9 @@ public interface DocumentOutputConfigOrBuilder
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -109,7 +86,7 @@ public interface DocumentOutputConfigOrBuilder
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -118,7 +95,7 @@ public interface DocumentOutputConfigOrBuilder
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -128,16 +105,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -155,9 +127,9 @@ public interface DocumentOutputConfigOrBuilder
    *
    * For a DocumentInputConfig.gcs_uri provided document, the output file will
    * have a name according to its URI. For example: an input file with URI:
-   * "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
+   * `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
    * "my_bucket" will have an output URI:
-   * "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
+   * `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -165,7 +137,7 @@ public interface DocumentOutputConfigOrBuilder
    *
    * If the document was directly provided through the request, then the
    * output document will have the format:
-   * "gs://my_bucket/translated_document_[trg]_translations.[ext], where
+   * `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
    * - [trg] corresponds to the translated file's language code,
    * - [ext] corresponds to the translated file's extension according to its
    * mime type.
@@ -174,7 +146,7 @@ public interface DocumentOutputConfigOrBuilder
    * translation will be equal to the default output URI but have
    * `glossary_translations` instead of `translations`. For the previous
    * example, its glossary URI would be:
-   * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
+   * `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
    *
    * Thus the max number of output files will be 2 (Translated document,
    * Glossary translated document).
@@ -184,15 +156,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -206,13 +174,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -226,10 +191,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java index 8ea93fed3c5a..89708b96024f 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ -public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentTranslation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentTranslation) DocumentTranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -45,32 +27,28 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -78,16 +56,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List getByteStreamOutputsList() { + public java.util.List + getByteStreamOutputsList() { return byteStreamOutputs_; } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -95,15 +71,12 @@ public java.util.List getByteStreamOutputsList()
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -111,7 +84,6 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -171,12 +139,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -186,7 +151,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -195,15 +159,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -213,15 +176,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -230,7 +194,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -264,8 +228,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -284,17 +248,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentTranslation other = - (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; + com.google.cloud.translate.v3beta1.DocumentTranslation other = (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; - if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList() + .equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,136 +286,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentTranslation) com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override @@ -482,18 +443,14 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3beta1.DocumentTranslation result = - new com.google.cloud.translate.v3beta1.DocumentTranslation(this); + com.google.cloud.translate.v3beta1.DocumentTranslation result = new com.google.cloud.translate.v3beta1.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.DocumentTranslation result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -515,39 +472,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentTranslatio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation)other); } else { super.mergeFrom(other); return this; @@ -555,8 +511,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -603,32 +558,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -638,22 +589,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List byteStreamOutputs_ = - java.util.Collections.emptyList(); - + private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = - new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -661,17 +606,14 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ - public java.util.List getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(byteStreamOutputs_) - : byteStreamOutputs_; + public java.util.List + getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -679,15 +621,12 @@ public java.util.List getByteStreamOutputsList()
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -695,7 +634,6 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -703,8 +641,6 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -712,23 +648,19 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setByteStreamOutputs( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -736,22 +668,17 @@ public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString va
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -759,20 +686,18 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, byteStreamOutputs_); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -780,7 +705,6 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -792,20 +716,18 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -814,21 +736,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -836,35 +757,28 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -874,21 +788,17 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -898,8 +808,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -909,13 +817,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -924,8 +832,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -935,14 +841,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -950,8 +857,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -961,22 +866,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 3; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -986,7 +887,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 3; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -996,8 +896,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1007,23 +905,21 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentTranslation) private static final com.google.cloud.translate.v3beta1.DocumentTranslation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentTranslation(); } @@ -1047,27 +943,27 @@ public static com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,4 +978,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java similarity index 76% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java index 542dcda58c23..8dc2ef1084d3 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentTranslationOrBuilder - extends +public interface DocumentTranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -33,13 +15,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -47,13 +26,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -61,40 +37,32 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -104,13 +72,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -120,8 +85,8 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java index fbafb7e18b90..f3eba776ada7 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, - com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -85,15 +62,14 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -101,15 +77,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -154,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsDestination other = - (com.google.cloud.translate.v3beta1.GcsDestination) obj; + com.google.cloud.translate.v3beta1.GcsDestination other = (com.google.cloud.translate.v3beta1.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,135 +159,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsDestination) com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, - com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsDestination.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override @@ -341,11 +314,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination buildPartial() { - com.google.cloud.translate.v3beta1.GcsDestination result = - new com.google.cloud.translate.v3beta1.GcsDestination(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GcsDestination result = new com.google.cloud.translate.v3beta1.GcsDestination(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +331,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsDestination res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -401,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GcsDestination other) { - if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) return this; if (!other.getOutputUriPrefix().isEmpty()) { outputUriPrefix_ = other.outputUriPrefix_; bitField0_ |= 0x00000001; @@ -434,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,13 +422,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -470,13 +433,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -485,8 +448,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -494,14 +455,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -509,8 +471,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -518,22 +478,18 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -541,7 +497,6 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -551,8 +506,6 @@ public Builder clearOutputUriPrefix() { return this; } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -560,23 +513,21 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -586,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsDestination) private static final com.google.cloud.translate.v3beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsDestination(); } @@ -600,27 +551,27 @@ public static com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java similarity index 59% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java index f9f1a7cb3a5c..7b92ba408335 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -33,13 +15,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -47,8 +26,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java similarity index 67% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java index e7120cf316d9..bf6227f61875 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, - com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -150,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsSource other = - (com.google.cloud.translate.v3beta1.GcsSource) obj; + com.google.cloud.translate.v3beta1.GcsSource other = (com.google.cloud.translate.v3beta1.GcsSource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsSource) com.google.cloud.translate.v3beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, - com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsSource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -316,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override @@ -337,11 +310,8 @@ public com.google.cloud.translate.v3beta1.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource buildPartial() { - com.google.cloud.translate.v3beta1.GcsSource result = - new com.google.cloud.translate.v3beta1.GcsSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GcsSource result = new com.google.cloud.translate.v3beta1.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -357,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsSource result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -429,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -451,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -478,21 +442,20 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -500,35 +463,28 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -538,30 +494,26 @@ public Builder clearInputUri() { return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsSource) private static final com.google.cloud.translate.v3beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsSource(); } @@ -585,27 +537,27 @@ public static com.google.cloud.translate.v3beta1.GcsSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -620,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java similarity index 52% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java index f38f9d999c8b..317cdff9cb9a 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java similarity index 62% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java index 79a98bca6ee3..ee785a9bf764 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) GetGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetGlossaryRequest other = - (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.GetGlossaryRequest other = (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) com.google.cloud.translate.v3beta1.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.cloud.translate.v3beta1.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetGlossaryRequest result = - new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GetGlossaryRequest result = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GetGlossaryRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -486,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -510,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -552,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) private static final com.google.cloud.translate.v3beta1.GetGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(); } @@ -601,27 +537,27 @@ public static com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..28d83bb94b87 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface GetGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java index 6a2ca76cb00a..44ea1950af9a 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSupportedLanguagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -45,32 +27,28 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -87,10 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -99,15 +74,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -124,18 +98,17 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -144,12 +117,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -157,7 +127,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ @java.lang.Override @@ -166,15 +135,14 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -182,15 +150,16 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -199,12 +168,9 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -222,7 +188,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -257,15 +221,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -274,7 +239,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -322,17 +287,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = - (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; - if (!getModel().equals(other.getModel())) return false; + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getDisplayLanguageCode() + .equals(other.getDisplayLanguageCode())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,136 +323,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +459,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance(); } @@ -519,17 +480,13 @@ public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = - new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,50 +503,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { - if (other - == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { + if (other == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -631,31 +584,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,13 +614,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -688,16 +634,14 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -706,8 +650,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -724,17 +666,16 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -742,8 +683,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -760,25 +699,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -795,10 +728,7 @@ public Builder setParent(java.lang.String value) {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -808,8 +738,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -826,17 +754,13 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -846,8 +770,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayLanguageCode_ = ""; /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -855,13 +777,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -870,8 +792,6 @@ public java.lang.String getDisplayLanguageCode() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -879,14 +799,15 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -894,8 +815,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -903,22 +822,18 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -926,7 +841,6 @@ public Builder setDisplayLanguageCode(java.lang.String value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -936,8 +850,6 @@ public Builder clearDisplayLanguageCode() { return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -945,14 +857,12 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -962,8 +872,6 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object model_ = ""; /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -981,13 +889,13 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value)
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -996,8 +904,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1015,14 +921,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1030,8 +937,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1049,22 +954,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1082,7 +983,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1092,8 +992,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1111,23 +1009,21 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1137,43 +1033,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) - private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,8 +1079,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java index 35383185f638..05467be3d1ae 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GetSupportedLanguagesRequestOrBuilder - extends +public interface GetSupportedLanguagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -42,16 +24,11 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -68,17 +45,13 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -86,13 +59,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -100,14 +70,12 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString + getDisplayLanguageCodeBytes(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -125,13 +93,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -149,8 +114,8 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java similarity index 71% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java index 9d415396e551..c664292ae449 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java @@ -1,145 +1,112 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Represents a glossary built from user provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ -public final class Glossary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Glossary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary) GlossaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Glossary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, - com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder - extends + public interface LanguageCodePairOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodePair extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -147,39 +114,34 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -188,30 +150,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -220,19 +182,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -241,30 +199,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -273,7 +231,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +242,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -315,16 +273,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,94 +305,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -443,41 +397,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -488,14 +440,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } @@ -510,17 +461,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = - new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sourceLanguageCode_ = sourceLanguageCode_; @@ -534,41 +481,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)other); } else { super.mergeFrom(other); return this; @@ -576,9 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other) { - if (other - == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -615,25 +557,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,26 +582,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -671,22 +607,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -694,37 +629,30 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -734,22 +662,18 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -759,21 +683,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -782,22 +704,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -805,37 +726,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -845,29 +759,24 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -880,44 +789,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,20 +835,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LanguageCodesSetOrBuilder - extends + public interface LanguageCodesSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -950,13 +853,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -964,13 +865,10 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -978,14 +876,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -993,64 +888,58 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodesSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodesSet() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1058,15 +947,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1074,15 +961,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1090,7 +974,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1098,8 +981,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1107,16 +988,15 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1128,7 +1008,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1157,15 +1038,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1187,94 +1068,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1284,58 +1160,56 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1350,17 +1224,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = - new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { languageCodes_.makeImmutable(); @@ -1372,41 +1242,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)other); } else { super.mergeFrom(other); return this; @@ -1414,9 +1281,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other) { - if (other - == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1453,20 +1318,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1476,12 +1339,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1489,8 +1350,6 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1498,16 +1357,14 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1515,15 +1372,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
        * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1531,7 +1385,6 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1539,8 +1392,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1548,16 +1399,14 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1565,15 +1414,13 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1581,8 +1428,6 @@ public Builder setLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1590,14 +1435,12 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1605,8 +1448,6 @@ public Builder addLanguageCodes(java.lang.String value) { return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1614,20 +1455,19 @@ public Builder addLanguageCodes(java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1635,19 +1475,16 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
        * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1655,14 +1492,12 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1670,7 +1505,6 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1683,44 +1517,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1732,26 +1563,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int languagesCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object languages_; - public enum LanguagesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; - private LanguagesCase(int value) { this.value = value; } @@ -1767,40 +1594,33 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: - return LANGUAGE_PAIR; - case 4: - return LANGUAGE_CODES_SET; - case 0: - return LANGUAGES_NOT_SET; - default: - return null; + case 3: return LANGUAGE_PAIR; + case 4: return LANGUAGE_CODES_SET; + case 0: return LANGUAGES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1809,30 +1629,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1842,14 +1662,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1857,26 +1674,21 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -1884,25 +1696,20 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1910,39 +1717,31 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1950,15 +1749,12 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1966,26 +1762,19 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1995,22 +1784,17 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null
-        ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
-        : inputConfig_;
+    return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -2021,15 +1805,11 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ @java.lang.Override @@ -2037,15 +1817,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ @java.lang.Override @@ -2053,14 +1829,11 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -2070,15 +1843,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -2086,15 +1855,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -2102,14 +1867,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -2117,7 +1879,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2129,17 +1890,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (languagesCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + output.writeMessage(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + output.writeMessage(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { output.writeMessage(5, getInputConfig()); @@ -2166,26 +1926,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2195,35 +1957,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary other = - (com.google.cloud.translate.v3beta1.Glossary) obj; + com.google.cloud.translate.v3beta1.Glossary other = (com.google.cloud.translate.v3beta1.Glossary) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (getEntryCount() != other.getEntryCount()) return false; + if (getEntryCount() + != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair().equals(other.getLanguagePair())) return false; + if (!getLanguagePair() + .equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet() + .equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2272,136 +2040,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a glossary built from user provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary) com.google.cloud.translate.v3beta1.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, - com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2435,9 +2199,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override @@ -2456,11 +2220,8 @@ public com.google.cloud.translate.v3beta1.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary buildPartial() { - com.google.cloud.translate.v3beta1.Glossary result = - new com.google.cloud.translate.v3beta1.Glossary(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Glossary result = new com.google.cloud.translate.v3beta1.Glossary(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -2472,27 +2233,34 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = - inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); + result.inputConfig_ = inputConfigBuilder_ == null + ? inputConfig_ + : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && languagePairBuilder_ != null) { + if (languagesCase_ == 3 && + languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && + languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2501,39 +2269,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary)other); } else { super.mergeFrom(other); return this; @@ -2560,20 +2327,17 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary other) { mergeEndTime(other.getEndTime()); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: - { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: - { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: - { - break; - } + case LANGUAGE_PAIR: { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2601,56 +2365,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: - { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getLanguagePairFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2660,12 +2425,12 @@ public Builder mergeFrom( } // finally return this; } - private int languagesCase_ = 0; private java.lang.Object languages_; - - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public Builder clearLanguages() { @@ -2679,21 +2444,19 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2702,22 +2465,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2725,37 +2487,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2765,22 +2520,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2789,19 +2540,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> - languagePairBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2809,14 +2554,11 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override @@ -2834,16 +2576,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder setLanguagePair( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2857,8 +2596,6 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2877,26 +2614,18 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 - && languages_ - != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - .getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 3 && + languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -2912,8 +2641,6 @@ public Builder mergeLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2937,21 +2664,16 @@ public Builder clearLanguagePair() { return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder - getLanguagePairBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2959,8 +2681,7 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -2971,8 +2692,6 @@ public Builder clearLanguagePair() { } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2980,20 +2699,14 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -3005,20 +2718,13 @@ public Builder clearLanguagePair() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> - languageCodesSetBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -3026,15 +2732,11 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ @java.lang.Override @@ -3052,17 +2754,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3076,14 +2774,11 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ public Builder setLanguageCodesSet( com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder builderForValue) { @@ -3097,27 +2792,18 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 - && languages_ - != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - .getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 4 && + languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -3133,14 +2819,11 @@ public Builder mergeLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ public Builder clearLanguageCodesSet() { if (languageCodesSetBuilder_ == null) { @@ -3159,32 +2842,24 @@ public Builder clearLanguageCodesSet() { return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder - getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -3195,30 +2870,21 @@ public Builder clearLanguageCodesSet() { } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -3231,49 +2897,36 @@ public Builder clearLanguageCodesSet() { private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GlossaryInputConfig, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, - com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3295,8 +2948,6 @@ public Builder setInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputCo
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3316,8 +2967,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3327,10 +2976,9 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && inputConfig_ != null
-            && inputConfig_
-                != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          inputConfig_ != null &&
+          inputConfig_ != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -3343,8 +2991,6 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInput
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3363,8 +3009,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3378,8 +3022,6 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3387,19 +3029,15 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      *
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
-    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder
-        getInputConfigOrBuilder() {
+    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3408,32 +3046,26 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig,
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
-            com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>
+        com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GlossaryInputConfig,
-                com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
-                com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_;
+    private int entryCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -3441,14 +3073,11 @@ public int getEntryCount() { return entryCount_; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3460,14 +3089,11 @@ public Builder setEntryCount(int value) { return this; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3479,58 +3105,39 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3546,17 +3153,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3567,21 +3171,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3594,15 +3194,11 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3615,15 +3211,11 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3631,48 +3223,36 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3680,35 +3260,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3719,14 +3288,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3742,16 +3308,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3762,20 +3326,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3788,14 +3349,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3808,14 +3366,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3823,51 +3378,43 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3877,12 +3424,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary) private static final com.google.cloud.translate.v3beta1.Glossary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary(); } @@ -3891,27 +3438,27 @@ public static com.google.cloud.translate.v3beta1.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3926,4 +3473,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java index 6db570106ae1..d5d80ac45297 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GlossaryInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) GlossaryInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GlossaryInputConfig() {} + private GlossaryInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -136,7 +110,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -144,8 +117,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -172,19 +143,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -215,13 +183,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -233,7 +200,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -247,9 +215,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -259,18 +226,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.GlossaryInputConfig other =
-        (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3beta1.GlossaryInputConfig other = (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -300,136 +267,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -464,11 +426,8 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.GlossaryInputConfig result = - new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GlossaryInputConfig result = new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -481,7 +440,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GlossaryInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -490,39 +450,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInput public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig)other); } else { super.mergeFrom(other); return this; @@ -530,18 +489,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -569,19 +525,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,12 +547,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -609,13 +565,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -642,7 +593,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -650,8 +600,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -678,7 +626,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -696,8 +643,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -739,8 +684,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -780,8 +723,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -811,13 +752,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -833,8 +771,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -879,8 +815,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -912,8 +846,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -953,8 +885,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -983,19 +913,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1005,9 +930,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1017,12 +942,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3beta1.GlossaryInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GlossaryInputConfig();
   }
@@ -1031,27 +956,27 @@ public static com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GlossaryInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GlossaryInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1066,4 +991,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
similarity index 85%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
index 02eb6c051740..cac321359c9f 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryInputConfigOrBuilder
-    extends
+public interface GlossaryInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -52,13 +34,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -85,13 +64,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
similarity index 100%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
similarity index 79%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
index f81f9ca76e95..bb8954758e80 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
@@ -1,82 +1,53 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryOrBuilder
-    extends
+public interface GlossaryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -86,73 +57,53 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder(); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -163,91 +114,66 @@ public interface GlossaryOrBuilder
   com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ int getEntryCount(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java index 508d508c7c7d..47d8b92b8df0 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, - com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -90,31 +67,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -123,7 +95,6 @@ public SourceCase getSourceCase() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -132,15 +103,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -149,15 +119,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -167,8 +138,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -191,7 +160,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -199,8 +167,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -223,19 +189,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -262,13 +225,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -280,7 +242,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -300,9 +263,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -312,19 +274,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.InputConfig other =
-        (com.google.cloud.translate.v3beta1.InputConfig) obj;
+    com.google.cloud.translate.v3beta1.InputConfig other = (com.google.cloud.translate.v3beta1.InputConfig) obj;
 
-    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -355,136 +318,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3beta1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.InputConfig) com.google.cloud.translate.v3beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, - com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.InputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override @@ -520,11 +479,8 @@ public com.google.cloud.translate.v3beta1.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig buildPartial() { - com.google.cloud.translate.v3beta1.InputConfig result = - new com.google.cloud.translate.v3beta1.InputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.InputConfig result = new com.google.cloud.translate.v3beta1.InputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -540,7 +496,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.InputConfig result private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -549,39 +506,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -596,15 +552,13 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -632,25 +586,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,12 +613,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -679,8 +632,6 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -689,13 +640,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -704,8 +655,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -714,14 +663,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -729,8 +679,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -739,22 +687,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -763,7 +707,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -773,8 +716,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -783,14 +724,12 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -799,13 +738,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -828,7 +762,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -836,8 +769,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -860,7 +791,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -878,8 +808,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -917,8 +845,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -954,8 +880,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -981,13 +905,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1003,8 +924,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1045,8 +964,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1074,8 +991,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1111,8 +1026,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1137,19 +1050,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1159,9 +1067,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1171,12 +1079,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.InputConfig)
   private static final com.google.cloud.translate.v3beta1.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.InputConfig();
   }
@@ -1185,27 +1093,27 @@ public static com.google.cloud.translate.v3beta1.InputConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1220,4 +1128,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
similarity index 86%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
index 76cde0ffa5ee..327cbca77222 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -34,13 +16,10 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -49,14 +28,12 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +56,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -108,13 +82,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
similarity index 75%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
index 2f4b0893b854..be23ee907b9d 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) ListGlossariesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,40 +27,33 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,15 +95,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -139,12 +109,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -153,7 +120,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +128,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -179,15 +144,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -196,12 +162,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -222,7 +185,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -231,15 +193,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -260,15 +221,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -277,7 +239,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -315,7 +277,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -331,18 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesRequest other = - (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.translate.v3beta1.ListGlossariesRequest other = (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,136 +334,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.cloud.translate.v3beta1.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -531,11 +492,8 @@ public com.google.cloud.translate.v3beta1.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesRequest result = - new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.ListGlossariesRequest result = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -560,39 +518,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest)other); } else { super.mergeFrom(other); return this; @@ -600,8 +557,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -646,37 +602,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -686,27 +637,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -715,23 +661,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -739,39 +682,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -781,23 +713,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -805,17 +731,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -823,15 +746,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -843,15 +763,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -863,8 +780,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -873,13 +788,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -888,8 +803,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -898,14 +811,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -913,8 +827,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -923,22 +835,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -947,7 +855,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -957,8 +864,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -967,14 +872,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -984,8 +887,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1006,13 +907,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1021,8 +922,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1043,14 +942,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1058,8 +958,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1080,22 +978,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1116,7 +1010,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1126,8 +1019,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1148,23 +1039,21 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1174,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) private static final com.google.cloud.translate.v3beta1.ListGlossariesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(); } @@ -1188,27 +1077,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1223,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java index be11c428891c..2e12d3cd5f33 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java @@ -1,74 +1,44 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesRequestOrBuilder - extends +public interface ListGlossariesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -77,13 +47,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -92,14 +59,12 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -120,13 +85,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -147,8 +109,8 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java index 7c1f6a877695..860706a571b6 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) ListGlossariesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List glossaries_; /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -81,8 +59,6 @@ public java.util.List getGlossaries return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -90,13 +66,11 @@ public java.util.List getGlossaries * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -108,8 +82,6 @@ public int getGlossariesCount() { return glossaries_.size(); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -130,17 +100,15 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -148,7 +116,6 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -219,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesResponse other = - (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; + com.google.cloud.translate.v3beta1.ListGlossariesResponse other = (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; - if (!getGlossariesList().equals(other.getGlossariesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getGlossariesList() + .equals(other.getGlossariesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.cloud.translate.v3beta1.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -432,18 +396,14 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesResponse result = - new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); + com.google.cloud.translate.v3beta1.ListGlossariesResponse result = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -466,39 +426,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse)other); } else { super.mergeFrom(other); return this; @@ -506,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -526,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRespon glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlossariesFieldBuilder() - : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGlossariesFieldBuilder() : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -566,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.Glossary m = - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3beta1.Glossary m = + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.parser(), + extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,29 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - glossaries_ = - new java.util.ArrayList(glossaries_); + glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> - glossariesBuilder_; + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossariesBuilder_; /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -638,8 +585,6 @@ public java.util.List getGlossaries } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -654,8 +599,6 @@ public int getGlossariesCount() { } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -670,15 +613,14 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder setGlossaries( + int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,8 +634,6 @@ public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Gloss return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -712,8 +652,6 @@ public Builder setGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -734,15 +672,14 @@ public Builder addGlossaries(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder addGlossaries( + int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,8 +693,6 @@ public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Gloss return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -776,8 +711,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -796,8 +729,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -808,7 +739,8 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -816,8 +748,6 @@ public Builder addAllGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -835,8 +765,6 @@ public Builder clearGlossaries() { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -854,44 +782,39 @@ public Builder removeGlossaries(int index) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder(int index) { + public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder( + int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); - } else { + return glossaries_.get(index); } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -899,8 +822,6 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -908,48 +829,42 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(int index) { - return getGlossariesFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( + int index) { + return getGlossariesFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + glossaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -957,8 +872,6 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -966,13 +879,13 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -990,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1005,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1014,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1037,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1047,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1056,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1082,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) private static final com.google.cloud.translate.v3beta1.ListGlossariesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(); } @@ -1096,27 +997,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java index eba0cb31b8ad..4642bd830907 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesResponseOrBuilder - extends +public interface ListGlossariesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List getGlossariesList(); + java.util.List + getGlossariesList(); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -44,8 +25,6 @@ public interface ListGlossariesResponseOrBuilder */ com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -54,30 +33,25 @@ public interface ListGlossariesResponseOrBuilder */ int getGlossariesCount(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index); + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -85,13 +59,10 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -99,8 +70,8 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java similarity index 100% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java similarity index 85% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java index 06cd17ae4c3a..cf4bf3fa1c41 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, - com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -166,10 +140,10 @@ public DestinationCase getDestinationCase() {
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -181,11 +155,10 @@ public DestinationCase getDestinationCase() {
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -193,8 +166,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -251,10 +222,10 @@ public boolean hasGcsDestination() {
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -266,23 +237,20 @@ public boolean hasGcsDestination() {
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -339,10 +307,10 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -354,7 +322,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; @@ -362,13 +330,12 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } @@ -394,9 +362,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,18 +373,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.OutputConfig other = - (com.google.cloud.translate.v3beta1.OutputConfig) obj; + com.google.cloud.translate.v3beta1.OutputConfig other = (com.google.cloud.translate.v3beta1.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -446,136 +413,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.OutputConfig) com.google.cloud.translate.v3beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, - com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.OutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override @@ -610,11 +573,8 @@ public com.google.cloud.translate.v3beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.OutputConfig result = - new com.google.cloud.translate.v3beta1.OutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.OutputConfig result = new com.google.cloud.translate.v3beta1.OutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -627,7 +587,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.OutputConfig resul private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -636,39 +597,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -676,18 +636,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.OutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -715,19 +672,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -737,12 +694,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -755,13 +712,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -818,10 +770,10 @@ public Builder clearDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -833,11 +785,10 @@ public Builder clearDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -845,8 +796,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -903,10 +852,10 @@ public boolean hasGcsDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -918,11 +867,10 @@ public boolean hasGcsDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -940,8 +888,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -998,10 +944,10 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1013,7 +959,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; @@ -1032,8 +978,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1090,10 +1034,10 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1105,7 +1049,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; @@ -1122,8 +1066,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1180,10 +1122,10 @@ public Builder setGcsDestination(
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1195,21 +1137,17 @@ public Builder setGcsDestination(
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3beta1.GcsDestination.newBuilder( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1225,8 +1163,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1283,10 +1219,10 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1298,7 +1234,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; @@ -1320,8 +1256,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1378,10 +1312,10 @@ public Builder clearGcsDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1393,7 +1327,7 @@ public Builder clearGcsDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; @@ -1402,8 +1336,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1460,10 +1392,10 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1475,7 +1407,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; @@ -1492,8 +1424,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1550,10 +1480,10 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1565,25 +1495,20 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3beta1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1593,9 +1518,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat onChanged(); return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1605,12 +1530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.OutputConfig) private static final com.google.cloud.translate.v3beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.OutputConfig(); } @@ -1619,27 +1544,27 @@ public static com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1654,4 +1579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java similarity index 90% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java index 44082dab3bef..3c96e59668b6 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -82,10 +64,10 @@ public interface OutputConfigOrBuilder
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -97,17 +79,14 @@ public interface OutputConfigOrBuilder
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -164,10 +143,10 @@ public interface OutputConfigOrBuilder
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -179,17 +158,14 @@ public interface OutputConfigOrBuilder
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -246,10 +222,10 @@ public interface OutputConfigOrBuilder
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -261,7 +237,7 @@ public interface OutputConfigOrBuilder
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java index bb7e028c6a16..94104c7b5560 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
  */
-public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SupportedLanguage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguage)
     SupportedLanguageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -45,32 +27,28 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.SupportedLanguage.class,
-            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
-   *
-   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -105,15 +81,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -122,19 +99,15 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -143,30 +116,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -177,14 +150,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -195,14 +165,11 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -211,7 +178,6 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -252,10 +219,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,18 +234,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.SupportedLanguage other = - (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; + com.google.cloud.translate.v3beta1.SupportedLanguage other = (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getSupportSource() != other.getSupportSource()) return false; - if (getSupportTarget() != other.getSupportTarget()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getSupportSource() + != other.getSupportSource()) return false; + if (getSupportTarget() + != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,112 +265,109 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -406,32 +375,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguage)
       com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.SupportedLanguage.class,
-              com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.SupportedLanguage.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -465,11 +435,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3beta1.SupportedLanguage result =
-          new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.SupportedLanguage result = new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -494,39 +461,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguage
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance()) return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -578,37 +543,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                supportSource_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                supportTarget_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              supportSource_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              supportTarget_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,13 +578,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -633,13 +590,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -648,8 +605,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -658,14 +613,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -673,8 +629,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -683,22 +637,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -707,7 +657,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -717,8 +666,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -727,14 +674,12 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -744,21 +689,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -767,22 +710,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -790,37 +732,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -830,22 +765,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -853,16 +784,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean supportSource_; + private boolean supportSource_ ; /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -870,14 +798,11 @@ public boolean getSupportSource() { return supportSource_; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -889,14 +814,11 @@ public Builder setSupportSource(boolean value) { return this; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -906,16 +828,13 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_; + private boolean supportTarget_ ; /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -923,14 +842,11 @@ public boolean getSupportTarget() { return supportTarget_; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -942,14 +858,11 @@ public Builder setSupportTarget(boolean value) { return this; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -958,9 +871,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguage) private static final com.google.cloud.translate.v3beta1.SupportedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguage(); } @@ -984,27 +897,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java index f514bf7fb8b8..58290ccfb950 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface SupportedLanguageOrBuilder - extends +public interface SupportedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -34,13 +16,10 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -49,60 +28,49 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ boolean getSupportSource(); /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java similarity index 74% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java index 458b7e8bbb64..2b25540df510 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ -public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SupportedLanguages extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguages) SupportedLanguagesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, - com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -81,8 +59,6 @@ public java.util.List getL
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -91,13 +67,11 @@ public java.util.List getL
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -140,7 +110,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -166,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -176,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.SupportedLanguages other =
-        (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
+    com.google.cloud.translate.v3beta1.SupportedLanguages other = (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -206,136 +177,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguages) com.google.cloud.translate.v3beta1.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, - com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.SupportedLanguages.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override @@ -372,18 +338,14 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3beta1.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3beta1.SupportedLanguages result = - new com.google.cloud.translate.v3beta1.SupportedLanguages(this); + com.google.cloud.translate.v3beta1.SupportedLanguages result = new com.google.cloud.translate.v3beta1.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.SupportedLanguages result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -403,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguages public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages) other); + return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages)other); } else { super.mergeFrom(other); return this; @@ -443,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -463,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages o languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -498,27 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3beta1.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,30 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList( - languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.SupportedLanguage, - com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, - com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -567,8 +515,6 @@ public java.util.List getL
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -584,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -601,8 +545,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -625,8 +567,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -646,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -669,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.SupportedLanguage
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -693,8 +629,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -714,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -735,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -748,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -756,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -776,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -796,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -810,8 +735,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -822,14 +745,11 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
     public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -837,8 +757,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -846,8 +766,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -856,12 +774,10 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -871,13 +787,10 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -885,30 +798,27 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.SupportedLanguage,
-            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
-            com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>
+        com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.SupportedLanguage,
-                com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
-                com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   private static final com.google.cloud.translate.v3beta1.SupportedLanguages DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguages();
   }
@@ -932,27 +842,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SupportedLanguages parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SupportedLanguages parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -967,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
index c3e2f4007068..e457d1adcc8a 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface SupportedLanguagesOrBuilder
-    extends
+public interface SupportedLanguagesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -33,10 +15,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -46,8 +27,6 @@ public interface SupportedLanguagesOrBuilder
    */
   com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -57,8 +36,6 @@ public interface SupportedLanguagesOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -66,11 +43,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -78,5 +53,6 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
similarity index 69%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
index e1d973149b45..046270e794d9 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,43 +28,40 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -98,7 +77,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -107,15 +85,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -131,15 +108,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -148,12 +126,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -164,7 +139,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -173,15 +147,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -192,15 +165,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -209,19 +183,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -230,30 +200,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -264,16 +234,11 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -281,48 +246,32 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -331,10 +280,7 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputCo
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -342,8 +288,6 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -352,21 +296,14 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -375,25 +312,17 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -411,7 +340,6 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -420,15 +348,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -446,15 +373,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -465,18 +393,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -484,76 +407,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -569,21 +476,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -603,8 +509,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -620,19 +524,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -648,11 +550,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -660,7 +562,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -672,7 +573,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -694,8 +596,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        8);
     getUnknownFields().writeTo(output);
   }
 
@@ -715,27 +621,29 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getDocumentInputConfig());
     }
     if (documentOutputConfig_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getDocumentOutputConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(8, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -745,31 +653,38 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other =
-        (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
+    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
     if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false;
     if (hasDocumentInputConfig()) {
-      if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false;
+      if (!getDocumentInputConfig()
+          .equals(other.getDocumentInputConfig())) return false;
     }
     if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false;
     if (hasDocumentOutputConfig()) {
-      if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false;
+      if (!getDocumentOutputConfig()
+          .equals(other.getDocumentOutputConfig())) return false;
     }
-    if (!getModel().equals(other.getModel())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -811,156 +726,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) com.google.cloud.translate.v3beta1.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -989,9 +901,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1010,11 +922,8 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = - new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1031,23 +940,22 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = - documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = - documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1059,39 +967,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1099,8 +1006,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1130,7 +1036,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentReq if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1158,69 +1065,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1230,13 +1130,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1252,13 +1149,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1267,8 +1164,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1284,14 +1179,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1299,8 +1195,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1316,22 +1210,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1347,7 +1237,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -1357,8 +1246,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1374,14 +1261,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1391,8 +1276,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1403,13 +1286,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1418,8 +1301,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1430,14 +1311,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1445,8 +1327,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1457,22 +1337,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1483,7 +1359,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1493,8 +1368,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1505,14 +1378,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1522,21 +1393,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1545,22 +1414,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1568,37 +1436,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1608,22 +1469,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1633,61 +1490,41 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> - documentInputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDocumentInputConfig( - com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder setDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1701,15 +1538,11 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder builderForValue) { @@ -1723,23 +1556,17 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDocumentInputConfig( - com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && documentInputConfig_ != null - && documentInputConfig_ - != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + documentInputConfig_ != null && + documentInputConfig_ != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1752,15 +1579,11 @@ public Builder mergeDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1773,66 +1596,48 @@ public Builder clearDocumentInputConfig() { return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder - getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? + com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), getParentForChildren(), isClean()); + documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), + getParentForChildren(), + isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1840,13 +1645,8 @@ public Builder clearDocumentInputConfig() { private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> - documentOutputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1855,18 +1655,13 @@ public Builder clearDocumentInputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1875,24 +1670,17 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1901,12 +1689,9 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDocumentOutputConfig( - com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1920,8 +1705,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1930,9 +1713,7 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder builderForValue) { @@ -1946,8 +1727,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1956,17 +1735,13 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDocumentOutputConfig( - com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && documentOutputConfig_ != null - && documentOutputConfig_ - != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + documentOutputConfig_ != null && + documentOutputConfig_ != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -1979,8 +1754,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1989,9 +1762,7 @@ public Builder mergeDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2004,8 +1775,6 @@ public Builder clearDocumentOutputConfig() { return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2014,19 +1783,14 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder - getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2035,23 +1799,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? + com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2060,22 +1818,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), getParentForChildren(), isClean()); + documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), + getParentForChildren(), + isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2083,8 +1836,6 @@ public Builder clearDocumentOutputConfig() { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2102,13 +1853,13 @@ public Builder clearDocumentOutputConfig() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2117,8 +1868,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2136,14 +1885,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2151,8 +1901,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2170,22 +1918,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2203,7 +1947,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2213,8 +1956,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2232,14 +1973,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2249,67 +1988,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2323,17 +2042,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2347,26 +2062,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2379,17 +2087,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2402,90 +2106,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2494,13 +2182,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2516,21 +2201,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2550,8 +2234,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2567,19 +2249,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2595,25 +2275,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2628,22 +2306,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2658,20 +2337,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2686,14 +2362,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2703,12 +2381,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateDocumentRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest();
   }
@@ -2717,27 +2395,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateDocumentRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateDocumentRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2752,4 +2430,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
similarity index 78%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
index 0d7adac307e9..6e25f8caa4f9 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateDocumentRequestOrBuilder
-    extends
+public interface TranslateDocumentRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a regional call.
    *
@@ -41,13 +23,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -63,14 +42,12 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -81,13 +58,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -98,82 +72,61 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -182,16 +135,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -200,16 +148,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -218,16 +161,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -245,13 +183,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -269,62 +204,45 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -341,8 +259,6 @@ public interface TranslateDocumentRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -357,13 +273,15 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -378,10 +296,9 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -397,13 +314,11 @@ public interface TranslateDocumentRequestOrBuilder
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -418,5 +333,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
similarity index 67%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
index 08635eb4923a..e7e13e27cd26 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
@@ -1,78 +1,56 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -80,25 +58,18 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } /** - * - * *
    * Translated document.
    * 
@@ -106,27 +77,20 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTransla * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -134,52 +98,37 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -192,7 +141,6 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumen
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -201,15 +149,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -222,15 +169,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -241,14 +189,11 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -256,25 +201,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -282,15 +220,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +236,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -325,18 +260,19 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getGlossaryDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -346,27 +282,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = - (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation() + .equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) - return false; + if (!getGlossaryDocumentTranslation() + .equals(other.getGlossaryDocumentTranslation())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -399,136 +337,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.cloud.translate.v3beta1.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -553,14 +486,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance(); } @@ -575,36 +507,31 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = - new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = - documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = - glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -612,39 +539,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -652,9 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentResponse other) { - if (other - == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -695,39 +619,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -737,60 +660,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> - documentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> documentTranslationBuilder_; /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder setDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -804,8 +712,6 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -824,21 +730,17 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && documentTranslation_ != null - && documentTranslation_ - != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + documentTranslation_ != null && + documentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -851,8 +753,6 @@ public Builder mergeDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -870,42 +770,33 @@ public Builder clearDocumentTranslation() { return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder - getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? + com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } } /** - * - * *
      * Translated document.
      * 
@@ -913,17 +804,14 @@ public Builder clearDocumentTranslation() { * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getDocumentTranslation(), getParentForChildren(), isClean()); + documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getDocumentTranslation(), + getParentForChildren(), + isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -931,67 +819,47 @@ public Builder clearDocumentTranslation() { private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> - glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public Builder setGlossaryDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1005,17 +873,13 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3beta1.DocumentTranslation.Builder builderForValue) { @@ -1029,25 +893,19 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public Builder mergeGlossaryDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossaryDocumentTranslation_ != null - && glossaryDocumentTranslation_ - != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossaryDocumentTranslation_ != null && + glossaryDocumentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -1060,17 +918,13 @@ public Builder mergeGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1083,72 +937,54 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder - getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? + com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); + glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), + getParentForChildren(), + isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -1156,8 +992,6 @@ public Builder clearGlossaryDocumentTranslation() { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1170,13 +1004,13 @@ public Builder clearGlossaryDocumentTranslation() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1185,8 +1019,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1199,14 +1031,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1214,8 +1047,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1228,22 +1059,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1256,7 +1083,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1266,8 +1092,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1280,14 +1104,12 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1297,58 +1119,41 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1362,14 +1167,11 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1383,23 +1185,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1412,14 +1208,11 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1432,70 +1225,55 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1505,13 +1283,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) - private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(); } @@ -1520,27 +1297,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1555,4 +1332,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java index f107a6051686..a4631438ec4c 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateDocumentResponseOrBuilder - extends +public interface TranslateDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
@@ -59,53 +35,39 @@ public interface TranslateDocumentResponseOrBuilder com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -118,13 +80,10 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -137,44 +96,35 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java similarity index 67% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java index 78be4e17b6f2..a99f5402f33e 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -28,55 +11,49 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranslateTextGlossaryConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
-   *
-   *
    * 
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ @java.lang.Override @@ -85,30 +62,30 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -119,15 +96,12 @@ public com.google.protobuf.ByteString getGlossaryBytes() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -136,7 +110,6 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -168,7 +142,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,16 +153,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = - (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; - if (!getGlossary().equals(other.getGlossary())) return false; - if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; + if (getIgnoreCase() + != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,111 +178,106 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -314,32 +285,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,14 +322,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance();
     }
 
@@ -372,17 +343,13 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result =
-          new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
+    private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.glossary_ = glossary_;
@@ -396,39 +363,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -436,9 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other) {
-      if (other
-          == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -473,25 +437,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                glossary_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                ignoreCase_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              glossary_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              ignoreCase_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -501,26 +462,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
-     *
-     *
      * 
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -529,22 +487,21 @@ public java.lang.String getGlossary() { } } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -552,37 +509,30 @@ public com.google.protobuf.ByteString getGlossaryBytes() { } } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -592,22 +542,18 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -615,17 +561,14 @@ public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { return this; } - private boolean ignoreCase_; + private boolean ignoreCase_ ; /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -633,15 +576,12 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -653,15 +593,12 @@ public Builder setIgnoreCase(boolean value) { return this; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -670,9 +607,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -682,43 +619,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) - private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,8 +665,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java similarity index 61% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java index 25b7f1dab52b..e89e78055fa2 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java @@ -1,65 +1,41 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextGlossaryConfigOrBuilder - extends +public interface TranslateTextGlossaryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ java.lang.String getGlossary(); /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - com.google.protobuf.ByteString getGlossaryBytes(); + com.google.protobuf.ByteString + getGlossaryBytes(); /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java index 9202f20107c6..910b2c66cff2 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java @@ -1,44 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ -public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextRequest) TranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateTextRequest() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -48,44 +31,41 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -94,15 +74,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_; } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -111,15 +89,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -128,7 +103,6 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -136,8 +110,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -146,28 +118,24 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -176,30 +144,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -208,12 +176,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -223,7 +188,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -232,15 +196,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -250,15 +213,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -267,19 +231,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -288,30 +248,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -320,12 +280,9 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } public static final int PARENT_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -343,10 +300,7 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -355,15 +309,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -381,18 +334,17 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -401,12 +353,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -427,7 +376,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -436,15 +384,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -465,15 +412,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -484,18 +432,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -503,76 +446,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -587,21 +514,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -620,8 +546,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -636,19 +560,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -663,11 +585,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -675,7 +597,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -687,7 +608,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -709,8 +631,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        10);
     getUnknownFields().writeTo(output);
   }
 
@@ -741,20 +667,21 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -764,25 +691,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextRequest other =
-        (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
-
-    if (!getContentsList().equals(other.getContentsList())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
+    com.google.cloud.translate.v3beta1.TranslateTextRequest other = (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
+
+    if (!getContentsList()
+        .equals(other.getContentsList())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -822,161 +756,159 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextRequest) com.google.cloud.translate.v3beta1.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -992,9 +924,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @java.lang.Override @@ -1013,11 +945,8 @@ public com.google.cloud.translate.v3beta1.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateTextRequest result = - new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.TranslateTextRequest result = new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1044,8 +973,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1057,39 +987,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1097,8 +1026,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1137,7 +1065,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1165,68 +1094,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1236,12 +1156,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1249,8 +1167,6 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1259,16 +1175,14 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { contents_.makeImmutable(); return contents_; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1277,15 +1191,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1294,7 +1205,6 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1302,8 +1212,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1312,16 +1220,14 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1330,15 +1236,13 @@ public com.google.protobuf.ByteString getContentsBytes(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContents( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1346,8 +1250,6 @@ public Builder setContents(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1356,14 +1258,12 @@ public Builder setContents(int index, java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContents( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1371,8 +1271,6 @@ public Builder addContents(java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1381,20 +1279,19 @@ public Builder addContents(java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents(java.lang.Iterable values) { + public Builder addAllContents( + java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1403,19 +1300,16 @@ public Builder addAllContents(java.lang.Iterable values) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1424,14 +1318,12 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1442,21 +1334,19 @@ public Builder addContentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1465,22 +1355,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1488,37 +1377,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1528,22 +1410,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1553,8 +1431,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1564,13 +1440,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1579,8 +1455,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1590,14 +1464,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1605,8 +1480,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1616,22 +1489,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1641,7 +1510,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1651,8 +1519,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1662,14 +1528,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1679,21 +1543,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1702,22 +1564,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1725,37 +1586,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1765,22 +1619,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1790,8 +1640,6 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1809,16 +1657,14 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1827,8 +1673,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1846,17 +1690,16 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1864,8 +1707,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1883,25 +1724,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1919,10 +1754,7 @@ public Builder setParent(java.lang.String value) {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1932,8 +1764,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1951,17 +1781,13 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1971,8 +1797,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1993,13 +1817,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2008,8 +1832,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2030,14 +1852,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2045,8 +1868,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2067,22 +1888,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2103,7 +1920,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2113,8 +1929,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2135,14 +1949,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2152,67 +1964,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2226,17 +2018,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2250,26 +2038,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2282,17 +2063,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2305,90 +2082,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2397,13 +2158,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2418,21 +2176,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2451,8 +2208,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2467,19 +2222,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2494,25 +2247,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2526,22 +2277,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2555,20 +2307,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2582,14 +2331,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2599,12 +2350,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextRequest();
   }
@@ -2613,27 +2364,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2648,4 +2399,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
similarity index 81%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
index a2b67beb8821..8c4f854d1c1f 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateTextRequestOrBuilder
-    extends
+public interface TranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -34,13 +16,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - java.util.List getContentsList(); + java.util.List + getContentsList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -49,13 +29,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ int getContentsCount(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -64,14 +41,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -80,42 +54,35 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString getContentsBytes(int index); + com.google.protobuf.ByteString + getContentsBytes(int index); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -125,13 +92,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -141,41 +105,34 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -193,16 +150,11 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -220,17 +172,13 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -251,13 +199,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -278,62 +223,45 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -349,8 +277,6 @@ public interface TranslateTextRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -364,13 +290,15 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -384,10 +312,9 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -402,13 +329,11 @@ public interface TranslateTextRequestOrBuilder
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -422,5 +347,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
similarity index 78%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
index 133b0fc1347a..b4ef91e7dab4 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
@@ -1,34 +1,20 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-/** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
-public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+/**
+ * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
+ */
+public final class TranslateTextResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -36,32 +22,28 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -75,8 +57,6 @@ public java.util.List getTransla
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -86,13 +66,11 @@ public java.util.List getTransla
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -106,8 +84,6 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -121,8 +97,6 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
     return translations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -138,12 +112,9 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -155,13 +126,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getGlossaryTranslationsList() {
+  public java.util.List getGlossaryTranslationsList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -173,13 +141,11 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -195,8 +161,6 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -212,8 +176,6 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
     return glossaryTranslations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -231,7 +193,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -243,7 +204,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -260,11 +222,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,16 +237,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextResponse other =
-        (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3beta1.TranslateTextResponse other = (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
 
-    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList()
+        .equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList()
+        .equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -309,128 +273,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
       com.google.cloud.translate.v3beta1.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +416,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -474,18 +437,14 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextResponse result =
-          new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
+      com.google.cloud.translate.v3beta1.TranslateTextResponse result = new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -514,39 +473,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextRespo
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -554,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance()) return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -574,10 +531,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTranslationsFieldBuilder()
-                    : null;
+            translationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTranslationsFieldBuilder() : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -601,10 +557,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getGlossaryTranslationsFieldBuilder()
-                    : null;
+            glossaryTranslationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getGlossaryTranslationsFieldBuilder() : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -636,39 +591,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.translate.v3beta1.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
-                if (translationsBuilder_ == null) {
-                  ensureTranslationsIsMutable();
-                  translations_.add(m);
-                } else {
-                  translationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 26:
-              {
-                com.google.cloud.translate.v3beta1.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
-                if (glossaryTranslationsBuilder_ == null) {
-                  ensureGlossaryTranslationsIsMutable();
-                  glossaryTranslations_.add(m);
-                } else {
-                  glossaryTranslationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.translate.v3beta1.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3beta1.Translation.parser(),
+                      extensionRegistry);
+              if (translationsBuilder_ == null) {
+                ensureTranslationsIsMutable();
+                translations_.add(m);
+              } else {
+                translationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 26: {
+              com.google.cloud.translate.v3beta1.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3beta1.Translation.parser(),
+                      extensionRegistry);
+              if (glossaryTranslationsBuilder_ == null) {
+                ensureGlossaryTranslationsIsMutable();
+                glossaryTranslations_.add(m);
+              } else {
+                glossaryTranslationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -678,29 +632,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List translations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ =
-            new java.util.ArrayList(translations_);
+        translations_ = new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
-        translationsBuilder_;
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> translationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -717,8 +663,6 @@ public java.util.List getTransla
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -735,8 +679,6 @@ public int getTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -753,8 +695,6 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -778,8 +718,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -800,8 +738,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -824,8 +760,6 @@ public Builder addTranslations(com.google.cloud.translate.v3beta1.Translation va
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -849,8 +783,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -871,8 +803,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -893,8 +823,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -907,7 +835,8 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -915,8 +844,6 @@ public Builder addAllTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -936,8 +863,6 @@ public Builder clearTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -957,8 +882,6 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -972,8 +895,6 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -985,14 +906,11 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
     public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
         int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);
-      } else {
+        return translations_.get(index);  } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1001,8 +919,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsOrBuilderList() {
+    public java.util.List 
+         getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1010,8 +928,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1021,12 +937,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1037,12 +951,10 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder(
         int index) {
-      return getTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1051,49 +963,38 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsBuilderList() {
+    public java.util.List 
+         getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> 
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.Translation,
-                com.google.cloud.translate.v3beta1.Translation.Builder,
-                com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
-                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
+                translations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ =
-            new java.util.ArrayList(
-                glossaryTranslations_);
+        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
-        glossaryTranslationsBuilder_;
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> glossaryTranslationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1102,11 +1003,9 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsList() { + public java.util.List getGlossaryTranslationsList() { if (glossaryTranslationsBuilder_ == null) { return java.util.Collections.unmodifiableList(glossaryTranslations_); } else { @@ -1114,8 +1013,6 @@ private void ensureGlossaryTranslationsIsMutable() { } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1124,8 +1021,7 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public int getGlossaryTranslationsCount() { if (glossaryTranslationsBuilder_ == null) { @@ -1135,8 +1031,6 @@ public int getGlossaryTranslationsCount() { } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1145,8 +1039,7 @@ public int getGlossaryTranslationsCount() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1156,8 +1049,6 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1166,8 +1057,7 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1184,8 +1074,6 @@ public Builder setGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1194,8 +1082,7 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1209,8 +1096,6 @@ public Builder setGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1219,8 +1104,7 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Translation value) { if (glossaryTranslationsBuilder_ == null) { @@ -1236,8 +1120,6 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1246,8 +1128,7 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1264,8 +1145,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1274,8 +1153,7 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1289,8 +1167,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1299,8 +1175,7 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1314,8 +1189,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1324,14 +1197,14 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addAllGlossaryTranslations( java.lang.Iterable values) { if (glossaryTranslationsBuilder_ == null) { ensureGlossaryTranslationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaryTranslations_); onChanged(); } else { glossaryTranslationsBuilder_.addAllMessages(values); @@ -1339,8 +1212,6 @@ public Builder addAllGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1349,8 +1220,7 @@ public Builder addAllGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder clearGlossaryTranslations() { if (glossaryTranslationsBuilder_ == null) { @@ -1363,8 +1233,6 @@ public Builder clearGlossaryTranslations() { return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1373,8 +1241,7 @@ public Builder clearGlossaryTranslations() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder removeGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1387,8 +1254,6 @@ public Builder removeGlossaryTranslations(int index) { return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1397,16 +1262,13 @@ public Builder removeGlossaryTranslations(int index) {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTranslationsBuilder( int index) { return getGlossaryTranslationsFieldBuilder().getBuilder(index); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1415,20 +1277,16 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTranslationsOrBuilder( int index) { if (glossaryTranslationsBuilder_ == null) { - return glossaryTranslations_.get(index); - } else { + return glossaryTranslations_.get(index); } else { return glossaryTranslationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1437,11 +1295,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsOrBuilderList() { + public java.util.List + getGlossaryTranslationsOrBuilderList() { if (glossaryTranslationsBuilder_ != null) { return glossaryTranslationsBuilder_.getMessageOrBuilderList(); } else { @@ -1449,8 +1306,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1459,16 +1314,13 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder() { - return getGlossaryTranslationsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1477,17 +1329,14 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder( int index) { - return getGlossaryTranslationsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1496,25 +1345,18 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsBuilderList() { + public java.util.List + getGlossaryTranslationsBuilderList() { return getGlossaryTranslationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, - com.google.cloud.translate.v3beta1.Translation.Builder, - com.google.cloud.translate.v3beta1.TranslationOrBuilder> + com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> getGlossaryTranslationsFieldBuilder() { if (glossaryTranslationsBuilder_ == null) { - glossaryTranslationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, - com.google.cloud.translate.v3beta1.Translation.Builder, - com.google.cloud.translate.v3beta1.TranslationOrBuilder>( + glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>( glossaryTranslations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1523,9 +1365,9 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla } return glossaryTranslationsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1535,12 +1377,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextResponse) private static final com.google.cloud.translate.v3beta1.TranslateTextResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextResponse(); } @@ -1549,27 +1391,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1584,4 +1426,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java similarity index 85% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java index c887d44f9b2a..3fb798bbb0fa 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextResponseOrBuilder - extends +public interface TranslateTextResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -34,10 +16,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List getTranslationsList();
+  java.util.List 
+      getTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -48,8 +29,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -60,8 +39,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -70,11 +47,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List
+  java.util.List 
       getTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -83,11 +58,10 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -98,10 +72,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List getGlossaryTranslationsList();
+  java.util.List 
+      getGlossaryTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -114,8 +87,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -128,8 +99,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -140,11 +109,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List
+  java.util.List 
       getGlossaryTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
index 7731461b8598..5ad5286246b5 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ -public final class Translation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Translation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Translation) TranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Translation() { translatedText_ = ""; model_ = ""; @@ -45,32 +27,28 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, - com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string translated_text = 1; - * * @return The translatedText. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -103,15 +79,16 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -138,7 +112,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
    * 
* * string model = 2; - * * @return The model. */ @java.lang.Override @@ -147,15 +120,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -168,15 +140,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -185,12 +158,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -199,7 +169,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -208,15 +177,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -225,15 +193,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -244,14 +213,11 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -259,25 +225,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -285,15 +244,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -334,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -347,20 +304,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Translation other = - (com.google.cloud.translate.v3beta1.Translation) obj; + com.google.cloud.translate.v3beta1.Translation other = (com.google.cloud.translate.v3beta1.Translation) obj; - if (!getTranslatedText().equals(other.getTranslatedText())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText() + .equals(other.getTranslatedText())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -388,136 +348,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Translation) com.google.cloud.translate.v3beta1.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, - com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Translation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override @@ -555,11 +511,8 @@ public com.google.cloud.translate.v3beta1.Translation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Translation buildPartial() { - com.google.cloud.translate.v3beta1.Translation result = - new com.google.cloud.translate.v3beta1.Translation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Translation result = new com.google.cloud.translate.v3beta1.Translation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -576,8 +529,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -585,39 +539,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Translation) { - return mergeFrom((com.google.cloud.translate.v3beta1.Translation) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Translation)other); } else { super.mergeFrom(other); return this; @@ -670,37 +623,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,13 +660,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object translatedText_ = ""; /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -724,13 +671,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; - * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -739,8 +686,6 @@ public java.lang.String getTranslatedText() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -748,14 +693,15 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -763,8 +709,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -772,22 +716,18 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
      * 
* * string translated_text = 1; - * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -795,7 +735,6 @@ public Builder setTranslatedText(java.lang.String value) {
      * 
* * string translated_text = 1; - * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -805,8 +744,6 @@ public Builder clearTranslatedText() { return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -814,14 +751,12 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; - * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -831,8 +766,6 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -845,13 +778,13 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 2; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -860,8 +793,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -874,14 +805,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -889,8 +821,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -903,22 +833,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -931,7 +857,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -941,8 +866,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -955,14 +878,12 @@ public Builder clearModel() {
      * 
* * string model = 2; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -972,8 +893,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -982,13 +901,13 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -997,8 +916,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1007,14 +924,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -1022,8 +940,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1032,22 +948,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 4; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1056,7 +968,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 4; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -1066,8 +977,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1076,14 +985,12 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1093,58 +1000,41 @@ public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1158,14 +1048,11 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1179,23 +1066,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1208,14 +1089,11 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1228,70 +1106,55 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1301,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Translation) private static final com.google.cloud.translate.v3beta1.Translation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Translation(); } @@ -1315,27 +1178,27 @@ public static com.google.cloud.translate.v3beta1.Translation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java index 0708e2df6059..ed3732dfbd34 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslationOrBuilder - extends +public interface TranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Translation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -33,13 +15,10 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The translatedText. */ java.lang.String getTranslatedText(); /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -47,14 +26,12 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString getTranslatedTextBytes(); + com.google.protobuf.ByteString + getTranslatedTextBytes(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -67,13 +44,10 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -86,14 +60,12 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -102,13 +74,10 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -117,44 +86,35 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java new file mode 100644 index 000000000000..47f86e7725fd --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java @@ -0,0 +1,882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/translate/v3beta1/transla" + + "tion_service.proto\022 google.cloud.transla" + + "tion.v3beta1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032#google/longrunning/operations.p" + + "roto\032\037google/protobuf/timestamp.proto\"P\n" + + "\033TranslateTextGlossaryConfig\022\026\n\010glossary" + + "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" + + "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" + + "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" + + "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" + + "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" + + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" + + "onfig\030\007 \001(\0132=.google.cloud.translation.v" + + "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" + + "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" + + "ion.v3beta1.TranslateTextRequest.LabelsE" + + "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" + + "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" + + ".translation.v3beta1.Translation\022L\n\025glos" + + "sary_translations\030\003 \003(\0132-.google.cloud.t" + + "ranslation.v3beta1.Translation\"\255\001\n\013Trans" + + "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" + + "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" + + "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" + + "ranslation.v3beta1.TranslateTextGlossary" + + "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" + + "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." + + "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" + + "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" + + "\006labels\030\006 \003(\0132C.google.cloud.translation" + + ".v3beta1.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" + + "nguages\030\001 \003(\01322.google.cloud.translation" + + ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" + + "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" + + "\372A#\n!locations.googleapis.com/Location\022#" + + "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" + + "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" + + "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" + + "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" + + "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" + + "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" + + "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" + + "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" + + "(\0132+.google.cloud.translation.v3beta1.Gc" + + "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" + + "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" + + "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" + + ".cloud.translation.v3beta1.GcsDestinatio" + + "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" + + "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" + + "\0132+.google.cloud.translation.v3beta1.Gcs" + + "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" + + "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" + + "n\030\001 \001(\01320.google.cloud.translation.v3bet" + + "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" + + " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" + + "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" + + "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" + + "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" + + "_input_config\030\004 \001(\01325.google.cloud.trans" + + "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" + + "\022\\\n\026document_output_config\030\005 \001(\01326.googl" + + "e.cloud.translation.v3beta1.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" + + "lossary_config\030\007 \001(\0132=.google.cloud.tran" + + "slation.v3beta1.TranslateTextGlossaryCon" + + "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" + + ".translation.v3beta1.TranslateDocumentRe" + + "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" + + "nse\022S\n\024document_translation\030\001 \001(\01325.goog" + + "le.cloud.translation.v3beta1.DocumentTra" + + "nslation\022\\\n\035glossary_document_translatio" + + "n\030\002 \001(\01325.google.cloud.translation.v3bet" + + "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" + + "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" + + "anslation.v3beta1.TranslateTextGlossaryC" + + "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022\"\n\024source_language_code\030" + + "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" + + "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." + + "translation.v3beta1.BatchTranslateTextRe" + + "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" + + "\030\005 \003(\0132-.google.cloud.translation.v3beta" + + "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" + + "(\0132..google.cloud.translation.v3beta1.Ou" + + "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" + + "oogle.cloud.translation.v3beta1.BatchTra" + + "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" + + "]\n\006labels\030\t \003(\0132G.google.cloud.translati" + + "on.v3beta1.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" + + "oud.translation.v3beta1.TranslateTextGlo" + + "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" + + "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." + + "translation.v3beta1.BatchTranslateMetada" + + "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" + + "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" + + "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" + + "_characters\030\001 \001(\003\022\035\n\025translated_characte" + + "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" + + "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" + + "_source\030\001 \001(\0132+.google.cloud.translation" + + ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" + + "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" + + "\030\003 \001(\0132;.google.cloud.translation.v3beta" + + "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" + + "e_codes_set\030\004 \001(\0132;.google.cloud.transla" + + "tion.v3beta1.Glossary.LanguageCodesSetH\000" + + "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" + + "anslation.v3beta1.GlossaryInputConfig\022\031\n" + + "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" + + "e_language_code\030\001 \001(\t\022\034\n\024target_language" + + "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" + + "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" + + "is.com/Glossary\022=projects/{project}/loca" + + "tions/{location}/glossaries/{glossary}B\013" + + "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" + + "ogle.cloud.translation.v3beta1.GlossaryB" + + "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" + + "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" + + "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" + + " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" + + "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" + + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + + "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" + + "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" + + "ssaries\030\001 \003(\0132*.google.cloud.translation" + + ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " + + "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" + + "ation.v3beta1.CreateGlossaryMetadata.Sta" + + "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" + + "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" + + "tate\030\002 \001(\0162>.google.cloud.translation.v3" + + "beta1.DeleteGlossaryMetadata.State\022/\n\013su" + + "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" + + "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" + + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" + + "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + + "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" + + "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" + + "pis.com/Location\022\"\n\024source_language_code" + + "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " + + "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" + + "e.cloud.translation.v3beta1.BatchDocumen" + + "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" + + "\0132;.google.cloud.translation.v3beta1.Bat" + + "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" + + " \003(\0132K.google.cloud.translation.v3beta1." + + "BatchTranslateDocumentRequest.ModelsEntr" + + "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" + + "ud.translation.v3beta1.BatchTranslateDoc" + + "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" + + "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" + + "anslation.v3beta1.BatchTranslateDocument" + + "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" + + "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" + + "alue\030\002 \001(\0132=.google.cloud.translation.v3" + + "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + + "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" + + "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" + + "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" + + "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" + + "tination\030\001 \001(\01320.google.cloud.translatio" + + "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" + + "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" + + "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " + + "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" + + "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" + + "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" + + "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" + + "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" + + "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" + + "F.google.cloud.translation.v3beta1.Batch" + + "TranslateDocumentMetadata.State\022\023\n\013total" + + "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" + + "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" + + "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" + + "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" + + "aracters\030\010 \001(\003\022!\n\031total_billable_charact" + + "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." + + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + + "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" + + "xt\0226.google.cloud.translation.v3beta1.Tr" + + "anslateTextRequest\0327.google.cloud.transl" + + "ation.v3beta1.TranslateTextResponse\"r\202\323\344" + + "\223\002l\"6/v3beta1/{parent=projects/*/locatio" + + "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" + + "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" + + "ctLanguage\0227.google.cloud.translation.v3" + + "beta1.DetectLanguageRequest\0328.google.clo" + + "ud.translation.v3beta1.DetectLanguageRes" + + "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" + + "7/v3beta1/{parent=projects/*/locations/*" + + "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" + + "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" + + "portedLanguages\022>.google.cloud.translati" + + "on.v3beta1.GetSupportedLanguagesRequest\032" + + "4.google.cloud.translation.v3beta1.Suppo" + + "rtedLanguages\"\233\001\332A\"parent,display_langua" + + "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z1\022//v3beta1/{parent=projects/*}/support" + + "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" + + "le.cloud.translation.v3beta1.TranslateDo" + + "cumentRequest\032;.google.cloud.translation" + + ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" + + "\002?\":/v3beta1/{parent=projects/*/location" + + "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" + + "lateText\022;.google.cloud.translation.v3be" + + "ta1.BatchTranslateTextRequest\032\035.google.l" + + "ongrunning.Operation\"y\312A0\n\026BatchTranslat" + + "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" + + ";/v3beta1/{parent=projects/*/locations/*" + + "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" + + "teDocument\022?.google.cloud.translation.v3" + + "beta1.BatchTranslateDocumentRequest\032\035.go" + + "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" + + "ranslateDocumentResponse\022\036BatchTranslate" + + "DocumentMetadata\332AMparent,source_languag" + + "e_code,target_language_codes,input_confi" + + "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" + + "loud.translation.v3beta1.CreateGlossaryR" + + "equest\032\035.google.longrunning.Operation\"|\312" + + "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" + + "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" + + "rojects/*/locations/*}/glossaries:\010gloss" + + "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" + + "anslation.v3beta1.ListGlossariesRequest\032" + + "8.google.cloud.translation.v3beta1.ListG" + + "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" + + "5\0223/v3beta1/{parent=projects/*/locations" + + "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." + + "cloud.translation.v3beta1.GetGlossaryReq" + + "uest\032*.google.cloud.translation.v3beta1." + + "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" + + "projects/*/locations/*/glossaries/*}\022\337\001\n" + + "\016DeleteGlossary\0227.google.cloud.translati" + + "on.v3beta1.DeleteGlossaryRequest\032\035.googl" + + "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" + + "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" + + "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" + + "ations/*/glossaries/*}\032~\312A\030translate.goo" + + "gleapis.com\322A`https://www.googleapis.com" + + "/auth/cloud-platform,https://www.googlea" + + "pis.com/auth/cloud-translationB\360\001\n\"com.g" + + "oogle.cloud.translate.v3beta1B\027Translati" + + "onServiceProtoP\001ZFcloud.google.com/go/tr" + + "anslation/apiv3beta1/translationpb;trans" + + "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" + + "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" + + "Google::Cloud::Translate::V3beta1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { "Glossary", "IgnoreCase", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, + new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, + new java.lang.String[] { "Translations", "GlossaryTranslations", }); + internal_static_google_cloud_translation_v3beta1_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Translation_descriptor, + new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, + new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, + new java.lang.String[] { "InputUri", }); + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, + new java.lang.String[] { "MimeType", "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, + new java.lang.String[] { "OutputUriPrefix", }); + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, + new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, + new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, + new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, + new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, + new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, + new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "Languages", }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { "LanguageCodes", }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, + new java.lang.String[] { "Parent", "Glossary", }); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, + new java.lang.String[] { "Glossaries", "NextPageToken", }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto similarity index 98% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto index e8835700c23b..a758ce9f9f85 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -552,10 +552,10 @@ message OutputConfig { // If input file extension is a txt or html, the translation is directly // written to the output file. If glossary is requested, a separate // glossary_translations_file has format of - // gs://translation_test/a_b_c_'trg'_glossary_translations.[extension] + // `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]` // // The format of errors file (for target language code 'trg') is: - // gs://translation_test/a_b_c_'trg'_errors.[extension] + // `gs://translation_test/a_b_c_'trg'_errors.[extension]` // // If the input file extension is tsv, errors_file contains the following: // Column 1: ID of the request provided in the input, if it's not @@ -567,7 +567,7 @@ message OutputConfig { // // If the input file extension is txt or html, glossary_error_file will be // generated that contains error details. glossary_error_file has format of - // gs://translation_test/a_b_c_'trg'_glossary_errors.[extension] + // `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]` GcsDestination gcs_destination = 1; } } @@ -628,9 +628,9 @@ message DocumentOutputConfig { // // For a DocumentInputConfig.gcs_uri provided document, the output file will // have a name according to its URI. For example: an input file with URI: - // "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name + // `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name // "my_bucket" will have an output URI: - // "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where + // `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where // - [trg] corresponds to the translated file's language code, // - [ext] corresponds to the translated file's extension according to its // mime type. @@ -638,7 +638,7 @@ message DocumentOutputConfig { // // If the document was directly provided through the request, then the // output document will have the format: - // "gs://my_bucket/translated_document_[trg]_translations.[ext], where + // `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where // - [trg] corresponds to the translated file's language code, // - [ext] corresponds to the translated file's extension according to its // mime type. @@ -647,7 +647,7 @@ message DocumentOutputConfig { // translation will be equal to the default output URI but have // `glossary_translations` instead of `translations`. For the previous // example, its glossary URI would be: - // "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]". + // `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`. // // Thus the max number of output files will be 2 (Translated document, // Glossary translated document). @@ -1202,7 +1202,7 @@ message BatchTranslateDocumentRequest { // Required. The BCP-47 language code of the input document if known, for // example, "en-US" or "sr-Latn". Supported language codes are listed in - // Language Support (https://cloud.google.com/translate/docs/languages). + // [Language Support](https://cloud.google.com/translate/docs/languages). string source_language_code = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The BCP-47 language code to use for translation of the input @@ -1321,19 +1321,19 @@ message BatchDocumentOutputConfig { // Since index.csv will be keeping updated during the process, please make // sure there is no custom retention policy applied on the output bucket // that may avoid file updating. - // (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy) + // (https://cloud.google.com/storage/docs/bucket-lock#retention-policy) // // The naming format of translation output files follows (for target // language code [trg]): `translation_output`: - // gs://translation_output/a_b_c_[trg]_translation.[extension] + // `gs://translation_output/a_b_c_[trg]_translation.[extension]` // `glossary_translation_output`: - // gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The + // `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The // output document will maintain the same file format as the input document. // // The naming format of error output files follows (for target language code - // [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt + // [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt` // `glossary_error_output`: - // gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error + // `gs://translation_test/a_b_c_[trg]_glossary_translation.txt` The error // output is a txt file containing error details. GcsDestination gcs_destination = 1; } diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java From 3321d4685f3864dd06ee1142eb1dbfd7ff1acc81 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 27 Jul 2023 21:09:53 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-translate/README.md | 4 +- .../v3beta1/TranslationServiceClient.java | 8 +- .../google/cloud/location/LocationsGrpc.java | 308 ++- .../translate/v3/TranslationServiceGrpc.java | 1502 ++++++++++++ .../google/cloud/location/LocationsGrpc.java | 308 ++- .../v3beta1/TranslationServiceGrpc.java | 1517 +++++++++++++ .../v3/BatchDocumentInputConfig.java | 384 ++-- .../v3/BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3/BatchDocumentOutputConfig.java | 384 ++-- .../BatchDocumentOutputConfigOrBuilder.java | 26 +- .../v3/BatchTranslateDocumentMetadata.java | 782 ++++--- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../v3/BatchTranslateDocumentRequest.java | 1846 +++++++++------ ...atchTranslateDocumentRequestOrBuilder.java | 263 ++- .../v3/BatchTranslateDocumentResponse.java | 712 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../translate/v3/BatchTranslateMetadata.java | 593 +++-- .../v3/BatchTranslateMetadataOrBuilder.java | 41 +- .../translate/v3/BatchTranslateResponse.java | 524 +++-- .../v3/BatchTranslateResponseOrBuilder.java | 43 +- .../v3/BatchTranslateTextRequest.java | 1742 ++++++++------ .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../translate/v3/CreateGlossaryMetadata.java | 565 +++-- .../v3/CreateGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/CreateGlossaryRequest.java | 492 ++-- .../v3/CreateGlossaryRequestOrBuilder.java | 95 + .../translate/v3/DeleteGlossaryMetadata.java | 565 +++-- .../v3/DeleteGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/DeleteGlossaryRequest.java | 347 +-- .../v3/DeleteGlossaryRequestOrBuilder.java | 54 + .../translate/v3/DeleteGlossaryResponse.java | 491 ++-- .../v3/DeleteGlossaryResponseOrBuilder.java | 43 +- .../translate/v3/DetectLanguageRequest.java | 868 ++++--- .../v3/DetectLanguageRequestOrBuilder.java | 95 +- .../translate/v3/DetectLanguageResponse.java | 405 ++-- .../v3/DetectLanguageResponseOrBuilder.java | 36 +- .../cloud/translate/v3/DetectedLanguage.java | 346 +-- .../v3/DetectedLanguageOrBuilder.java | 30 +- .../translate/v3/DocumentInputConfig.java | 507 +++-- .../v3/DocumentInputConfigOrBuilder.java | 41 +- .../translate/v3/DocumentOutputConfig.java | 495 ++-- .../v3/DocumentOutputConfigOrBuilder.java | 47 +- .../translate/v3/DocumentTranslation.java | 477 ++-- .../v3/DocumentTranslationOrBuilder.java | 45 +- .../cloud/translate/v3/GcsDestination.java | 312 +-- .../translate/v3/GcsDestinationOrBuilder.java | 27 +- .../google/cloud/translate/v3/GcsSource.java | 309 +-- .../translate/v3/GcsSourceOrBuilder.java | 27 +- .../translate/v3/GetGlossaryRequest.java | 347 +-- .../v3/GetGlossaryRequestOrBuilder.java | 54 + .../v3/GetSupportedLanguagesRequest.java | 496 ++-- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../google/cloud/translate/v3/Glossary.java | 1764 +++++++++------ .../translate/v3/GlossaryInputConfig.java | 381 ++-- .../v3/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3/GlossaryName.java | 0 .../cloud/translate/v3/GlossaryOrBuilder.java | 97 +- .../cloud/translate/v3/InputConfig.java | 443 ++-- .../translate/v3/InputConfigOrBuilder.java | 35 +- .../translate/v3/ListGlossariesRequest.java | 524 +++-- .../v3/ListGlossariesRequestOrBuilder.java | 56 +- .../translate/v3/ListGlossariesResponse.java | 480 ++-- .../v3/ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3/LocationName.java | 0 .../cloud/translate/v3/OutputConfig.java | 371 +-- .../translate/v3/OutputConfigOrBuilder.java | 26 +- .../cloud/translate/v3/SupportedLanguage.java | 455 ++-- .../v3/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3/SupportedLanguages.java | 406 ++-- .../v3/SupportedLanguagesOrBuilder.java | 36 +- .../v3/TranslateDocumentRequest.java | 1435 +++++++----- .../v3/TranslateDocumentRequestOrBuilder.java | 162 +- .../v3/TranslateDocumentResponse.java | 697 ++++-- .../TranslateDocumentResponseOrBuilder.java | 63 +- .../v3/TranslateTextGlossaryConfig.java | 356 +-- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../translate/v3/TranslateTextRequest.java | 1153 ++++++---- .../v3/TranslateTextRequestOrBuilder.java | 139 +- .../translate/v3/TranslateTextResponse.java | 549 +++-- .../v3/TranslateTextResponseOrBuilder.java | 54 +- .../cloud/translate/v3/Translation.java | 567 +++-- .../translate/v3/TranslationOrBuilder.java | 53 +- .../translate/v3/TranslationServiceProto.java | 1021 +++++++++ .../translate/v3/translation_service.proto | 0 .../v3beta1/BatchDocumentInputConfig.java | 384 ++-- .../BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3beta1/BatchDocumentOutputConfig.java | 395 ++-- .../BatchDocumentOutputConfigOrBuilder.java | 26 +- .../BatchTranslateDocumentMetadata.java | 818 ++++--- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../BatchTranslateDocumentRequest.java | 1846 +++++++++------ ...atchTranslateDocumentRequestOrBuilder.java | 254 ++- .../BatchTranslateDocumentResponse.java | 733 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../v3beta1/BatchTranslateMetadata.java | 596 +++-- .../BatchTranslateMetadataOrBuilder.java | 41 +- .../v3beta1/BatchTranslateResponse.java | 527 +++-- .../BatchTranslateResponseOrBuilder.java | 43 +- .../v3beta1/BatchTranslateTextRequest.java | 1746 ++++++++------ .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../v3beta1/CreateGlossaryMetadata.java | 568 +++-- .../CreateGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/CreateGlossaryRequest.java | 492 ++-- .../CreateGlossaryRequestOrBuilder.java | 95 + .../v3beta1/DeleteGlossaryMetadata.java | 568 +++-- .../DeleteGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/DeleteGlossaryRequest.java | 350 +-- .../DeleteGlossaryRequestOrBuilder.java | 54 + .../v3beta1/DeleteGlossaryResponse.java | 494 ++-- .../DeleteGlossaryResponseOrBuilder.java | 43 +- .../v3beta1/DetectLanguageRequest.java | 874 ++++--- .../DetectLanguageRequestOrBuilder.java | 95 +- .../v3beta1/DetectLanguageResponse.java | 396 ++-- .../DetectLanguageResponseOrBuilder.java | 36 +- .../translate/v3beta1/DetectedLanguage.java | 353 +-- .../v3beta1/DetectedLanguageOrBuilder.java | 30 +- .../v3beta1/DocumentInputConfig.java | 507 +++-- .../v3beta1/DocumentInputConfigOrBuilder.java | 41 +- .../v3beta1/DocumentOutputConfig.java | 502 ++-- .../DocumentOutputConfigOrBuilder.java | 47 +- .../v3beta1/DocumentTranslation.java | 480 ++-- .../v3beta1/DocumentTranslationOrBuilder.java | 45 +- .../translate/v3beta1/GcsDestination.java | 319 +-- .../v3beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/translate/v3beta1/GcsSource.java | 312 +-- .../translate/v3beta1/GcsSourceOrBuilder.java | 27 +- .../translate/v3beta1/GetGlossaryRequest.java | 350 +-- .../v3beta1/GetGlossaryRequestOrBuilder.java | 54 + .../v3beta1/GetSupportedLanguagesRequest.java | 519 +++-- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../cloud/translate/v3beta1/Glossary.java | 1795 +++++++++------ .../v3beta1/GlossaryInputConfig.java | 381 ++-- .../v3beta1/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3beta1/GlossaryName.java | 0 .../translate/v3beta1/GlossaryOrBuilder.java | 100 +- .../cloud/translate/v3beta1/InputConfig.java | 440 ++-- .../v3beta1/InputConfigOrBuilder.java | 35 +- .../v3beta1/ListGlossariesRequest.java | 527 +++-- .../ListGlossariesRequestOrBuilder.java | 56 +- .../v3beta1/ListGlossariesResponse.java | 483 ++-- .../ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3beta1/LocationName.java | 0 .../cloud/translate/v3beta1/OutputConfig.java | 375 +-- .../v3beta1/OutputConfigOrBuilder.java | 26 +- .../translate/v3beta1/SupportedLanguage.java | 459 ++-- .../v3beta1/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3beta1/SupportedLanguages.java | 396 ++-- .../v3beta1/SupportedLanguagesOrBuilder.java | 36 +- .../v3beta1/TranslateDocumentRequest.java | 1274 +++++++---- .../TranslateDocumentRequestOrBuilder.java | 150 +- .../v3beta1/TranslateDocumentResponse.java | 747 +++--- .../TranslateDocumentResponseOrBuilder.java | 66 +- .../v3beta1/TranslateTextGlossaryConfig.java | 376 +-- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../v3beta1/TranslateTextRequest.java | 1157 ++++++---- .../TranslateTextRequestOrBuilder.java | 142 +- .../v3beta1/TranslateTextResponse.java | 594 +++-- .../TranslateTextResponseOrBuilder.java | 51 +- .../cloud/translate/v3beta1/Translation.java | 595 +++-- .../v3beta1/TranslationOrBuilder.java | 56 +- .../v3beta1/TranslationServiceProto.java | 1023 +++++++++ .../v3beta1/translation_service.proto | 0 .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...anguageLocationnameStringStringString.java | 0 ...etectLanguageStringStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationname.java | 0 .../SyncListGlossariesString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 ...slateTextLocationnameStringListstring.java | 0 ...ameStringStringStringStringListstring.java | 0 ...ncTranslateTextStringStringListstring.java | 0 ...ingStringStringStringStringListstring.java | 0 .../translatetext/SyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...etectLanguageLocationnameStringString.java | 0 .../SyncDetectLanguageStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationnameString.java | 0 .../SyncListGlossariesStringString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../v3/TranslationServiceClient.java | 2010 ----------------- .../v3/TranslationServiceSettings.java | 375 --- .../cloud/translate/v3/gapic_metadata.json | 48 - .../cloud/translate/v3/package-info.java | 46 - ...GrpcTranslationServiceCallableFactory.java | 113 - .../v3/stub/GrpcTranslationServiceStub.java | 548 ----- ...JsonTranslationServiceCallableFactory.java | 105 - .../stub/HttpJsonTranslationServiceStub.java | 910 -------- .../v3/stub/TranslationServiceStub.java | 143 -- .../stub/TranslationServiceStubSettings.java | 868 ------- .../reflect-config.json | 1946 ---------------- .../translate/v3/MockTranslationService.java | 59 - .../v3/MockTranslationServiceImpl.java | 271 --- .../TranslationServiceClientHttpJsonTest.java | 1197 ---------- .../v3/TranslationServiceClientTest.java | 1161 ---------- .../translate/v3/TranslationServiceGrpc.java | 1157 ---------- .../v3/CreateGlossaryRequestOrBuilder.java | 56 - .../v3/DeleteGlossaryRequestOrBuilder.java | 29 - .../v3/GetGlossaryRequestOrBuilder.java | 29 - .../translate/v3/TranslationServiceProto.java | 879 ------- .../v3beta1/TranslationServiceClient.java | 1790 --------------- .../v3beta1/TranslationServiceSettings.java | 376 --- .../translate/v3beta1/gapic_metadata.json | 48 - .../cloud/translate/v3beta1/package-info.java | 53 - ...GrpcTranslationServiceCallableFactory.java | 115 - .../stub/GrpcTranslationServiceStub.java | 556 ----- ...JsonTranslationServiceCallableFactory.java | 105 - .../stub/HttpJsonTranslationServiceStub.java | 916 -------- .../v3beta1/stub/TranslationServiceStub.java | 145 -- .../stub/TranslationServiceStubSettings.java | 869 ------- .../reflect-config.json | 1946 ---------------- .../v3beta1/MockTranslationService.java | 59 - .../v3beta1/MockTranslationServiceImpl.java | 271 --- .../TranslationServiceClientHttpJsonTest.java | 1036 --------- .../v3beta1/TranslationServiceClientTest.java | 1005 --------- .../v3beta1/TranslationServiceGrpc.java | 1157 ---------- .../CreateGlossaryRequestOrBuilder.java | 56 - .../DeleteGlossaryRequestOrBuilder.java | 29 - .../v3beta1/GetGlossaryRequestOrBuilder.java | 29 - .../v3beta1/TranslationServiceProto.java | 882 -------- 294 files changed, 38323 insertions(+), 42733 deletions(-) rename {owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1 => java-translate/grpc-google-cloud-translate-v3}/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java rename {owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3 => java-translate/grpc-google-cloud-translate-v3beta1}/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java (77%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java (83%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java (85%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java (92%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java (66%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java (65%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java (60%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java (63%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java (71%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java (71%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java (80%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java (56%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java (81%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java (87%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java (64%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java (67%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java (52%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java (63%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java (78%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java (84%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java (86%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java (75%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java (88%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java (94%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java (71%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java (80%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java (78%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java (65%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java (79%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java (77%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java (83%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java (84%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java (92%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java (63%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java (65%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java (60%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java (63%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java (74%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java (80%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java (68%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java (56%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java (81%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java (87%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java (59%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java (67%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java (52%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java (62%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java (78%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java (85%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java (86%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java (75%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java (88%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java (94%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java (74%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java (78%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java (67%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java (67%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java (61%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java (78%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java (85%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java (78%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java (100%) delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java delete mode 100644 owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java diff --git a/java-translate/README.md b/java-translate/README.md index 481979e50cd6..f6808dc0d0b3 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.19.0 + 26.20.0 pom import @@ -272,7 +272,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java index a1701c8e480a..44ac257f47c2 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -846,8 +846,8 @@ public final UnaryCallable batchTranslateT *

Only AutoML Translation models or glossaries within the same region (have the same * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support - * (https://cloud.google.com/translate/docs/languages). + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the * input document. Specify up to 10 language codes here. * @param inputConfigs Required. Input configurations. The total number of files matched should be @@ -913,8 +913,8 @@ public final UnaryCallable batchTranslateT *

Only AutoML Translation models or glossaries within the same region (have the same * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support - * (https://cloud.google.com/translate/docs/languages). + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the * input document. Specify up to 10 language codes here. * @param inputConfigs Required. Input configurations. The total number of files matched should be diff --git a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java index 90086bd0466e..bf8e7906ee95 100644 --- a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -20,113 +37,134 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListLocationsMethod() {
-    io.grpc.MethodDescriptor getListLocationsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.ListLocationsRequest,
+            com.google.cloud.location.ListLocationsResponse>
+        getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-              .build();
+          LocationsGrpc.getListLocationsMethod =
+              getListLocationsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+                      .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetLocationMethod() {
-    io.grpc.MethodDescriptor getGetLocationMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+        getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.Location.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-              .build();
+          LocationsGrpc.getGetLocationMethod =
+              getGetLocationMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.Location.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+                      .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsStub(channel, callOptions);
+          }
+        };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsBlockingStub(channel, callOptions);
+          }
+        };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static LocationsFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsFutureStub(channel, callOptions);
+          }
+        };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -136,88 +174,108 @@ public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + default void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLocationsMethod(), responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - default void getLocation(com.google.cloud.location.GetLocationRequest request, + default void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static abstract class LocationsImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub - extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** + * + * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public void getLocation(com.google.cloud.location.GetLocationRequest request, + public void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -226,8 +284,7 @@ public void getLocation(com.google.cloud.location.GetLocationRequest request,
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -238,21 +295,27 @@ protected LocationsBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -260,6 +323,7 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location. /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -268,35 +332,38 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location.
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.location.ListLocationsResponse> + listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -305,11 +372,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -323,11 +390,14 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listLocations( + (com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation( + (com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -349,24 +419,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>( - service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) .build(); } - private static abstract class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -408,11 +478,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java new file mode 100644 index 000000000000..2d181242ce0a --- /dev/null +++ b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java @@ -0,0 +1,1502 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.translate.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse> + getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse> + getTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse> + getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = + getTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse> + getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse> + getDetectLanguageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse> + getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = + getDetectLanguageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages> + getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages> + getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages> + getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = + getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.SupportedLanguages + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse> + getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse> + getTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse> + getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = + getTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> + getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> + getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = + getBatchTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = + TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = + getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> + getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> + getCreateGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> + getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = + getCreateGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.CreateGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse> + getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse> + getListGlossariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse> + getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = + getListGlossariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> + getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> + getGetGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary> + getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = + getGetGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.Glossary.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> + getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> + getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> + getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = + getDeleteGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DeleteGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText( + com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetectLanguageMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGlossariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public abstract static class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText( + com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateTextResponse translateText( + com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.Glossary getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.TranslateTextResponse> + translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.DetectLanguageResponse> + detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.SupportedLanguages> + getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.TranslateDocumentResponse> + translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.ListGlossariesResponse> + listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.Glossary> + getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText( + (com.google.cloud.translate.v3.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage( + (com.google.cloud.translate.v3.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages( + (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument( + (com.google.cloud.translate.v3.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText( + (com.google.cloud.translate.v3.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument( + (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary( + (com.google.cloud.translate.v3.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries( + (com.google.cloud.translate.v3.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary( + (com.google.cloud.translate.v3.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary( + (com.google.cloud.translate.v3.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.CreateGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary>(service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DeleteGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private abstract static class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java index 90086bd0466e..bf8e7906ee95 100644 --- a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -20,113 +37,134 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListLocationsMethod() {
-    io.grpc.MethodDescriptor getListLocationsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.ListLocationsRequest,
+            com.google.cloud.location.ListLocationsResponse>
+        getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-              .build();
+          LocationsGrpc.getListLocationsMethod =
+              getListLocationsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+                      .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetLocationMethod() {
-    io.grpc.MethodDescriptor getGetLocationMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+        getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.Location.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-              .build();
+          LocationsGrpc.getGetLocationMethod =
+              getGetLocationMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.Location.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+                      .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsStub(channel, callOptions);
+          }
+        };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsBlockingStub(channel, callOptions);
+          }
+        };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static LocationsFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsFutureStub(channel, callOptions);
+          }
+        };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -136,88 +174,108 @@ public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + default void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLocationsMethod(), responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - default void getLocation(com.google.cloud.location.GetLocationRequest request, + default void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static abstract class LocationsImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub - extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** + * + * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public void getLocation(com.google.cloud.location.GetLocationRequest request, + public void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -226,8 +284,7 @@ public void getLocation(com.google.cloud.location.GetLocationRequest request,
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -238,21 +295,27 @@ protected LocationsBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -260,6 +323,7 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location. /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -268,35 +332,38 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location.
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.location.ListLocationsResponse> + listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -305,11 +372,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -323,11 +390,14 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listLocations( + (com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation( + (com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -349,24 +419,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>( - service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) .build(); } - private static abstract class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -408,11 +478,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java new file mode 100644 index 000000000000..c3f4d6158c2e --- /dev/null +++ b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java @@ -0,0 +1,1517 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.translate.v3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse> + getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse> + getTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse> + getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = + getTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + getDetectLanguageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = + getDetectLanguageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages> + getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages> + getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages> + getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = + getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.SupportedLanguages + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + getTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = + getTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = + getBatchTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = + TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = + getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation> + getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation> + getCreateGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation> + getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = + getCreateGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + getListGlossariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = + getListGlossariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary> + getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3beta1.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary> + getGetGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary> + getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = + getGetGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation> + getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation> + getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation> + getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = + getDeleteGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetectLanguageMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGlossariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public abstract static class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.Glossary getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.TranslateTextResponse> + translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.SupportedLanguages> + getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.Glossary> + getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText( + (com.google.cloud.translate.v3beta1.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.TranslateTextResponse>) + responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage( + (com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.DetectLanguageResponse>) + responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages( + (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument( + (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.TranslateDocumentResponse>) + responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText( + (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument( + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary( + (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries( + (com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.ListGlossariesResponse>) + responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary( + (com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary( + (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary>(service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private abstract static class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java similarity index 77% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java index 946d7d46a52c..9a81bd5f3586 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentInputConfig() { - } + + private BatchDocumentInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -107,6 +133,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -114,6 +141,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -137,16 +166,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -174,12 +206,13 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -191,8 +224,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -206,8 +238,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,18 +250,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentInputConfig other = (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentInputConfig other =
+        (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -258,131 +291,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentInputConfig) com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -417,8 +455,11 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentInputConfig result = new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchDocumentInputConfig result = + new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -431,8 +472,7 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -441,38 +481,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInput public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -480,15 +521,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -516,19 +560,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,12 +582,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -556,8 +600,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -581,6 +630,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -588,6 +638,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -611,6 +663,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -628,6 +681,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -666,6 +721,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -690,8 +747,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -702,6 +758,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -728,10 +786,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -747,6 +808,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -788,6 +851,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -816,6 +881,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -852,6 +919,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -877,14 +946,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -894,9 +968,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -906,12 +980,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentInputConfig();
   }
@@ -920,27 +994,27 @@ public static com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -955,6 +1029,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
index 7abfa317fddb..d4533a75c6d8 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentInputConfigOrBuilder extends
+public interface BatchDocumentInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -31,10 +49,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -58,10 +79,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
similarity index 85%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
index 4412ae007b88..0ca6a1d996bc 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
@@ -1,56 +1,78 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentOutputConfig() { - } + + private BatchDocumentOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -133,6 +159,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -140,6 +167,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -189,16 +218,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -252,12 +284,13 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +302,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -284,8 +316,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -295,18 +328,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentOutputConfig other =
+        (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -336,131 +369,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override @@ -495,8 +533,11 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchDocumentOutputConfig result = + new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -506,11 +547,11 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentOutputConf int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -519,38 +560,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentOutpu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -558,15 +600,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -594,19 +639,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,12 +661,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -634,8 +679,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -685,6 +735,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -692,6 +743,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -741,6 +794,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -758,6 +812,8 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -822,6 +878,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -884,6 +942,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -936,10 +996,13 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -955,6 +1018,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1022,6 +1087,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1076,6 +1143,8 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1138,6 +1207,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1189,14 +1260,19 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3.GcsDestination,
+            com.google.cloud.translate.v3.GcsDestination.Builder,
+            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsDestination,
+                com.google.cloud.translate.v3.GcsDestination.Builder,
+                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1206,9 +1282,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1218,12 +1294,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentOutputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentOutputConfig();
   }
@@ -1232,27 +1308,27 @@ public static com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentOutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentOutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1267,6 +1343,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
similarity index 92%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
index 9b98837a7172..8f44ed055d99 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentOutputConfigOrBuilder extends
+public interface BatchDocumentOutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -57,10 +75,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -110,10 +131,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
index cea5c3242091..c3d6824ce0f0 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +84,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +94,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -77,6 +104,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -85,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -94,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -107,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -115,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -123,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -131,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -139,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -148,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -158,7 +203,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -183,52 +227,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -248,38 +297,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -290,12 +353,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -306,12 +372,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -322,12 +391,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -338,11 +410,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -353,12 +428,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -369,12 +447,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -385,12 +466,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -401,11 +485,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -413,11 +500,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ @java.lang.Override @@ -425,6 +515,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -437,6 +529,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,9 +541,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -489,45 +583,37 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -537,34 +623,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = + (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() - != other.getTotalPages()) return false; - if (getTranslatedPages() - != other.getTranslatedPages()) return false; - if (getFailedPages() - != other.getFailedPages()) return false; - if (getTotalBillablePages() - != other.getTotalBillablePages()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() - != other.getTotalBillableCharacters()) return false; + if (getTotalPages() != other.getTotalPages()) return false; + if (getTranslatedPages() != other.getTranslatedPages()) return false; + if (getFailedPages() != other.getFailedPages()) return false; + if (getTotalBillablePages() != other.getTotalBillablePages()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -580,29 +658,21 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -613,131 +683,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -760,13 +835,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata + getDefaultInstanceForType() { return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -781,13 +857,17 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = + new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { + private void buildPartial0( + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -817,9 +897,7 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentM result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -827,38 +905,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentM public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) other); } else { super.mergeFrom(other); return this; @@ -866,7 +945,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other) { - if (other == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -923,64 +1004,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -990,26 +1080,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1020,28 +1118,38 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { + public Builder setState( + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1051,11 +1159,14 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateDocumentMeta return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1065,14 +1176,17 @@ public Builder clearState() { return this; } - private long totalPages_ ; + private long totalPages_; /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -1080,12 +1194,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1097,12 +1214,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1112,14 +1232,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -1127,12 +1250,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1144,12 +1270,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1159,14 +1288,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -1174,12 +1306,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1191,12 +1326,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1206,14 +1344,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -1221,12 +1362,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1238,12 +1382,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1253,13 +1400,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -1267,11 +1417,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1283,11 +1436,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1297,14 +1453,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1312,12 +1471,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1329,12 +1491,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1344,14 +1509,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -1359,12 +1527,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1376,12 +1547,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1391,14 +1565,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1406,12 +1583,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1423,12 +1603,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1440,34 +1623,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1488,14 +1684,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1506,6 +1703,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1514,9 +1713,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1529,6 +1728,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1546,6 +1747,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1558,6 +1761,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1568,11 +1773,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1580,21 +1788,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1604,12 +1815,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(); } @@ -1618,27 +1830,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1865,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java index a2a7d1b0cc1e..56aa416281ab 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,137 +1,191 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentMetadataOrBuilder extends +public interface BatchTranslateDocumentMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState(); /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java similarity index 66% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java index a638507885ad..7b5efed61524 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java @@ -1,49 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); customizedAttribution_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -52,22 +67,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -80,7 +100,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -89,14 +112,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -109,17 +133,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -128,9 +153,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -138,6 +166,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -146,14 +175,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -161,16 +191,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -179,41 +208,53 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -221,24 +262,30 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List inputConfigs_; /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -246,13 +293,18 @@ public java.lang.String getTargetLanguageCodes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -260,14 +312,18 @@ public java.util.List ge
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -275,13 +331,17 @@ public java.util.List ge
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -289,13 +349,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -303,7 +367,9 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( @@ -314,13 +380,18 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -328,60 +399,76 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -403,20 +490,21 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -442,6 +530,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -463,17 +553,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -495,11 +587,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -507,92 +599,122 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
+
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry =
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.translate.v3.TranslationServiceProto
+                            .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.translate.v3.TranslateTextGlossaryConfig
+                            .getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
-  private com.google.protobuf.MapField
-  internalGetGlossaries() {
+          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+      glossaries_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+      internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
+
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -602,32 +724,36 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; + private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -641,23 +767,26 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -671,13 +800,17 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -691,20 +824,24 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -718,14 +855,16 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -733,9 +872,12 @@ public java.lang.String getFormatConversionsOrThrow( } public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object customizedAttribution_ = ""; /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -744,6 +886,7 @@ public java.lang.String getFormatConversionsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ @java.lang.Override @@ -752,14 +895,15 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -768,16 +912,15 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -786,6 +929,7 @@ public java.lang.String getCustomizedAttribution() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -797,8 +941,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -814,20 +957,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetModels(), - ModelsDefaultEntryHolder.defaultEntry, - 6); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetGlossaries(), - GlossariesDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -859,42 +993,43 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry - : internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry - models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, models__); - } - for (java.util.Map.Entry entry - : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry - glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry - : internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry - formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry : + internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry models__ = + ModelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + entry : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + GlossariesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry : + internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry formatConversions__ = + FormatConversionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); @@ -907,34 +1042,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = + (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList() - .equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList() - .equals(other.getInputConfigsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals( - other.internalGetModels())) return false; - if (!internalGetGlossaries().equals( - other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals( - other.internalGetFormatConversions())) return false; - if (!getCustomizedAttribution() - .equals(other.getCustomizedAttribution())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals(other.internalGetModels())) return false; + if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; + if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -982,116 +1109,121 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.cloud.translate.v3.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -1100,13 +1232,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1115,36 +1246,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1165,9 +1294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1186,14 +1315,18 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = + new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1218,9 +1351,8 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1243,38 +1375,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -1282,7 +1415,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1321,9 +1455,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1332,14 +1467,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom( - other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1372,80 +1504,97 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.cloud.translate.v3.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - formatConversions__ = input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFormatConversions().getMutableMap().put( - formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.cloud.translate.v3.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry + formatConversions__ = + input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFormatConversions() + .getMutableMap() + .put(formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: + { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1455,10 +1604,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1471,14 +1623,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1487,6 +1641,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1499,16 +1655,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1516,6 +1673,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1528,19 +1687,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1553,7 +1718,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1563,6 +1731,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1575,13 +1745,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1591,6 +1765,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1598,13 +1774,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1613,6 +1789,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1620,15 +1798,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1636,6 +1813,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1643,18 +1822,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1662,6 +1845,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1671,6 +1855,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1678,12 +1864,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1693,6 +1881,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1700,38 +1889,49 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1739,33 +1939,41 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1773,18 +1981,23 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1792,53 +2005,64 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1848,18 +2072,26 @@ public Builder addTargetLanguageCodesBytes( } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = new java.util.ArrayList(inputConfigs_); + inputConfigs_ = + new java.util.ArrayList( + inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; + com.google.cloud.translate.v3.BatchDocumentInputConfig, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> + inputConfigsBuilder_; /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1867,9 +2099,12 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -1877,6 +2112,8 @@ public java.util.List ge } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1884,7 +2121,9 @@ public java.util.List ge
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -1894,6 +2133,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1901,7 +2142,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -1911,6 +2154,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1918,7 +2163,9 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -1935,6 +2182,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1942,7 +2191,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -1956,6 +2207,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1963,7 +2216,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { @@ -1979,6 +2234,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1986,7 +2243,9 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2003,6 +2262,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2010,7 +2271,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2024,6 +2287,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2031,7 +2296,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2045,6 +2312,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2052,14 +2321,16 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2067,6 +2338,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2074,7 +2347,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2087,6 +2362,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2094,7 +2371,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2107,6 +2386,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2114,13 +2395,17 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2128,16 +2413,21 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2145,10 +2435,12 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2156,6 +2448,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2163,13 +2457,17 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2177,14 +2475,19 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2192,22 +2495,27 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentInputConfig, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentInputConfig, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2215,45 +2523,64 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3.BatchDocumentOutputConfig, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2269,13 +2596,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutput return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2289,19 +2620,25 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2314,13 +2651,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutp return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2333,74 +2674,90 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder + getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentOutputConfig, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentOutputConfig, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2409,10 +2766,13 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutpu onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2434,20 +2794,21 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2473,6 +2834,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2494,17 +2857,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2526,23 +2891,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2563,23 +2930,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2600,17 +2966,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2631,17 +3000,18 @@ public Builder putModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        glossaries_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -2649,11 +3019,13 @@ public Builder putAllModels(
       }
       return glossaries_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ = com.google.protobuf.MapField.newMapField(
-            GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ =
+            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2662,140 +3034,177 @@ public Builder putAllModels(
       onChanged();
       return glossaries_;
     }
+
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( - java.lang.String key, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -2804,11 +3213,13 @@ public Builder putAllGlossaries( } return formatConversions_; } + private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = + com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -2817,10 +3228,13 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2834,23 +3248,26 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2864,13 +3281,17 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2884,20 +3305,25 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2911,12 +3337,15 @@ java.lang.String getFormatConversionsOrDefault(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -2924,13 +3353,15 @@ public java.lang.String getFormatConversionsOrThrow( } return map.get(key); } + public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap() - .clear(); + internalGetMutableFormatConversions().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2944,25 +3375,26 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableFormatConversions().getMutableMap() - .remove(key); + public Builder removeFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFormatConversions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableFormatConversions() { + public java.util.Map getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2976,19 +3408,24 @@ public Builder removeFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putFormatConversions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFormatConversions().getMutableMap() - .put(key, value); + public Builder putFormatConversions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFormatConversions().getMutableMap().put(key, value); bitField0_ |= 0x00000080; return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3002,18 +3439,21 @@ public Builder putFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap() - .putAll(values); + internalGetMutableFormatConversions().getMutableMap().putAll(values); bitField0_ |= 0x00000080; return this; } private java.lang.Object customizedAttribution_ = ""; /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3022,13 +3462,13 @@ public Builder putAllFormatConversions(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -3037,6 +3477,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3045,15 +3487,14 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -3061,6 +3502,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3069,18 +3512,22 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttribution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3089,6 +3536,7 @@ public Builder setCustomizedAttribution(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -3098,6 +3546,8 @@ public Builder clearCustomizedAttribution() { return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3106,21 +3556,23 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3130,12 +3582,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) private static final com.google.cloud.translate.v3.BatchTranslateDocumentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(); } @@ -3144,27 +3596,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3179,6 +3631,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java index 448bb93ce6e2..742d85933e62 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentRequestOrBuilder extends +public interface BatchTranslateDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -37,13 +60,17 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -51,10 +78,13 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -62,57 +92,73 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -120,11 +166,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -132,10 +181,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -143,10 +196,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -154,11 +211,15 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,45 +227,63 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -227,6 +306,8 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -247,15 +328,13 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -276,9 +355,10 @@ boolean containsModels(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -300,11 +380,13 @@ boolean containsModels(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -325,64 +407,82 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -396,10 +496,14 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getFormatConversionsCount(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -413,17 +517,17 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsFormatConversions( - java.lang.String key); - /** - * Use {@link #getFormatConversionsMap()} instead. + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsFormatConversions(java.lang.String key); + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getFormatConversions(); + java.util.Map getFormatConversions(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -437,11 +541,14 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getFormatConversionsMap(); + java.util.Map getFormatConversionsMap(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -455,14 +562,18 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getFormatConversionsOrDefault( + java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -476,12 +587,15 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getFormatConversionsOrThrow( - java.lang.String key); + java.lang.String getFormatConversionsOrThrow(java.lang.String key); /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -490,10 +604,13 @@ java.lang.String getFormatConversionsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -502,8 +619,8 @@ java.lang.String getFormatConversionsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString - getCustomizedAttributionBytes(); + com.google.protobuf.ByteString getCustomizedAttributionBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java index 4bcc611426d6..8b0ebcacc358 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,47 +30,52 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateDocumentResponse() {
-  }
+
+  private BatchTranslateDocumentResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
+            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -64,12 +86,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -80,12 +105,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -96,12 +124,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -112,11 +143,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -127,12 +161,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -143,12 +180,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -159,12 +199,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -175,11 +218,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -187,11 +233,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ @java.lang.Override @@ -199,6 +248,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -213,6 +264,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -220,6 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -227,6 +281,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -234,6 +290,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ @java.lang.Override @@ -241,6 +298,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -255,6 +314,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,8 +326,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -308,44 +367,34 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -355,38 +404,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages()
-        != other.getTotalPages()) return false;
-    if (getTranslatedPages()
-        != other.getTranslatedPages()) return false;
-    if (getFailedPages()
-        != other.getFailedPages()) return false;
-    if (getTotalBillablePages()
-        != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters()
-        != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other =
+        (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages() != other.getTotalPages()) return false;
+    if (getTranslatedPages() != other.getTranslatedPages()) return false;
+    if (getFailedPages() != other.getFailedPages()) return false;
+    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -400,29 +440,21 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -437,98 +469,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -538,33 +576,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
+              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -591,13 +628,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -612,13 +650,17 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result =
+          new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(
+        com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -645,14 +687,10 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -660,38 +698,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -699,7 +738,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentResponse other) {
-      if (other == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance())
+        return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -756,66 +797,73 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalPages_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedPages_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedPages_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              totalBillablePages_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 48: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              totalBillableCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalPages_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedPages_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedPages_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                totalBillablePages_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 48:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                totalBillableCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,16 +873,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalPages_ ;
+    private long totalPages_;
     /**
+     *
+     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -842,12 +894,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -859,12 +914,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -874,14 +932,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -889,12 +950,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -906,12 +970,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -921,14 +988,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -936,12 +1006,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -953,12 +1026,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -968,14 +1044,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -983,12 +1062,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1000,12 +1082,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1015,13 +1100,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -1029,11 +1117,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1045,11 +1136,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1059,14 +1153,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1074,12 +1171,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1091,12 +1191,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1106,14 +1209,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -1121,12 +1227,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1138,12 +1247,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1153,14 +1265,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1168,12 +1283,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1185,12 +1303,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1202,34 +1323,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1250,14 +1384,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1268,6 +1403,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1276,9 +1413,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1291,6 +1428,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1308,6 +1447,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1320,6 +1461,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1330,11 +1473,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1342,14 +1488,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1357,8 +1506,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1366,12 +1520,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1379,6 +1536,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1389,6 +1547,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1411,6 +1571,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1419,8 +1581,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1431,6 +1592,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1441,9 +1604,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1456,6 +1619,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1475,6 +1640,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1489,6 +1656,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1501,11 +1670,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1515,21 +1685,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1539,12 +1712,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse();
   }
@@ -1553,27 +1727,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateDocumentResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateDocumentResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1588,6 +1762,4 @@ public com.google.protobuf.Parser getParserForTy
   public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
index ba1d11008da9..93f7258efcb0 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,118 +1,166 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateDocumentResponseOrBuilder extends
+public interface BatchTranslateDocumentResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -122,6 +170,8 @@ public interface BatchTranslateDocumentResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -129,10 +179,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,10 +193,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
index b739ed61bfff..a84aea7849e4 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
@@ -1,58 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, + com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +83,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +93,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -78,6 +104,8 @@ public enum State
      */
     SUCCEEDED(2),
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -86,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -95,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -108,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -133,6 +171,8 @@ public enum State
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -141,6 +181,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -150,6 +192,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -160,7 +204,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -185,52 +228,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -250,37 +298,51 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -291,12 +353,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -307,6 +372,8 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -314,6 +381,7 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -324,11 +392,14 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -336,11 +407,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ @java.lang.Override @@ -348,6 +422,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -360,6 +436,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,9 +448,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -397,25 +475,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -425,24 +500,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateMetadata other = (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateMetadata other = + (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -458,14 +530,11 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -476,131 +545,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateMetadata) com.google.cloud.translate.v3.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, + com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +691,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -639,8 +712,11 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateMetadata result = new com.google.cloud.translate.v3.BatchTranslateMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchTranslateMetadata result = + new com.google.cloud.translate.v3.BatchTranslateMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -660,9 +736,7 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -670,38 +744,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata) other); } else { super.mergeFrom(other); return this; @@ -709,7 +784,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -751,39 +827,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -793,26 +873,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -823,24 +911,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -854,11 +951,14 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.Sta return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -868,13 +968,16 @@ public Builder clearState() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -882,11 +985,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -898,11 +1004,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -912,14 +1021,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -927,12 +1039,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -944,12 +1059,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -959,8 +1077,10 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -968,6 +1088,7 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -975,6 +1096,8 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -982,6 +1105,7 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -993,6 +1117,8 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1000,6 +1126,7 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1011,34 +1138,47 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1059,14 +1199,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1077,6 +1218,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1085,9 +1228,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1100,6 +1243,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1117,6 +1262,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1129,6 +1276,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1139,11 +1288,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1151,21 +1303,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1175,12 +1330,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateMetadata) private static final com.google.cloud.translate.v3.BatchTranslateMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateMetadata(); } @@ -1189,27 +1344,27 @@ public static com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1224,6 +1379,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java index 337d2d9e0aab..aef48c713adb 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateMetadataOrBuilder extends +public interface BatchTranslateMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateMetadata.State getState(); /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -55,29 +85,38 @@ public interface BatchTranslateMetadataOrBuilder extends
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java index daca001c1a91..9c4ed6c56ec3 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,46 +30,50 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateResponse() {
-  }
+
+  private BatchTranslateResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateResponse.class,
+            com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -63,11 +84,14 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -78,11 +102,14 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -93,11 +120,14 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -105,11 +135,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ @java.lang.Override @@ -117,6 +150,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -131,6 +166,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -138,6 +175,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -145,6 +183,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -152,6 +192,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -159,6 +200,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,6 +216,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,8 +228,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -211,24 +254,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -238,28 +276,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateResponse other = (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3.BatchTranslateResponse other =
+        (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -273,14 +307,11 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -295,98 +326,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -396,33 +432,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateResponse)
       com.google.cloud.translate.v3.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateResponse.class,
+              com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +479,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -465,8 +500,11 @@ public com.google.cloud.translate.v3.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateResponse result = new com.google.cloud.translate.v3.BatchTranslateResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.BatchTranslateResponse result =
+          new com.google.cloud.translate.v3.BatchTranslateResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -483,14 +521,10 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -498,38 +532,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +572,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance())
+        return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -579,41 +615,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -623,15 +661,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalCharacters_ ;
+    private long totalCharacters_;
     /**
+     *
+     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -639,11 +681,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -655,11 +700,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -669,13 +717,16 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -683,11 +734,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -699,11 +753,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -713,13 +770,16 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -727,11 +787,14 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -743,11 +806,14 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -759,34 +825,47 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -807,14 +886,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -825,6 +905,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -833,9 +915,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -848,6 +930,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -865,6 +949,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -877,6 +963,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -887,11 +975,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -899,14 +990,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -914,8 +1008,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -923,12 +1022,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -936,6 +1038,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -946,6 +1049,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -968,6 +1073,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -976,8 +1083,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -988,6 +1094,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -998,9 +1106,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1013,6 +1121,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1032,6 +1142,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1046,6 +1158,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1058,11 +1172,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1072,21 +1187,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1096,12 +1214,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3.BatchTranslateResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateResponse();
   }
@@ -1110,27 +1228,27 @@ public static com.google.cloud.translate.v3.BatchTranslateResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1145,6 +1263,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
index e7a723c707b5..2e9f558f8217 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
@@ -1,61 +1,94 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateResponseOrBuilder extends
+public interface BatchTranslateResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -65,6 +98,8 @@ public interface BatchTranslateResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -72,10 +107,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -83,10 +121,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
similarity index 65%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
index 9959a46dc9ce..56f191e1456e 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
@@ -1,48 +1,63 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -51,22 +66,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -79,7 +99,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -88,14 +111,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -108,17 +132,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -127,14 +152,18 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -143,29 +172,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -174,38 +203,50 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -213,46 +254,51 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,20 +320,21 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -313,6 +360,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -334,17 +383,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -366,11 +417,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -378,9 +429,12 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -388,13 +442,17 @@ public java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -402,14 +460,18 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -417,13 +479,17 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -431,13 +497,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -445,24 +515,30 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3.OutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -470,124 +546,167 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; + private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry = + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig + .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField( - GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -597,32 +716,34 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -638,20 +759,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -671,6 +793,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -686,17 +810,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -712,11 +838,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -724,6 +850,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -735,8 +862,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -746,30 +872,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetModels(),
-        ModelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetGlossaries(),
-        GlossariesDefaultEntryHolder.defaultEntry,
-        7);
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        9);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
     getUnknownFields().writeTo(output);
   }
 
@@ -793,43 +907,44 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry
-         : internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry :
+        internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry models__ =
+          ModelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry<
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        entry : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry<
+              java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+          glossaries__ =
+              GlossariesDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -839,32 +954,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateTextRequest other = (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
-
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList()
-        .equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(
-        other.internalGetModels())) return false;
-    if (!getInputConfigsList()
-        .equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3.BatchTranslateTextRequest other =
+        (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
+
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(other.internalGetModels())) return false;
+    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig()
-          .equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(
-        other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -910,116 +1018,121 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateTextRequest) com.google.cloud.translate.v3.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -1028,13 +1141,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1043,36 +1155,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 9: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateTextRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1092,9 +1202,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @java.lang.Override @@ -1113,14 +1223,18 @@ public com.google.cloud.translate.v3.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateTextRequest result = new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3.BatchTranslateTextRequest result = + new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1149,9 +1263,8 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1167,38 +1280,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1206,7 +1320,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1227,8 +1342,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest } onChanged(); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1248,9 +1362,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1259,11 +1374,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1291,75 +1404,89 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.cloud.translate.v3.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3.InputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.translate.v3.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1369,10 +1496,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1385,14 +1515,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1401,6 +1533,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1413,16 +1547,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1430,6 +1565,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1442,19 +1579,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1467,7 +1610,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1477,6 +1623,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1489,13 +1637,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1505,18 +1657,20 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1525,20 +1679,21 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1546,28 +1701,35 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1577,17 +1739,21 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1597,6 +1763,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1604,35 +1771,46 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1640,31 +1818,39 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1672,17 +1858,22 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1690,50 +1881,61 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1742,21 +1944,19 @@ public Builder addTargetLanguageCodesBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1765,10 +1965,13 @@ public Builder addTargetLanguageCodesBytes( onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1790,20 +1993,21 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1829,6 +2033,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1850,17 +2056,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1882,23 +2090,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1919,23 +2129,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1956,17 +2165,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1987,27 +2199,32 @@ public Builder putModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ =
+            new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> inputConfigsBuilder_;
+            com.google.cloud.translate.v3.InputConfig,
+            com.google.cloud.translate.v3.InputConfig.Builder,
+            com.google.cloud.translate.v3.InputConfigOrBuilder>
+        inputConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2015,7 +2232,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2025,6 +2244,8 @@ public java.util.List getInputConfigs } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2032,7 +2253,9 @@ public java.util.List getInputConfigs
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2042,6 +2265,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2049,7 +2274,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2059,6 +2286,8 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2066,10 +2295,11 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInputConfigs( - int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2083,6 +2313,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2090,7 +2322,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2104,6 +2338,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2111,7 +2347,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2127,6 +2365,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2134,10 +2374,11 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value)
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addInputConfigs( - int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2151,6 +2392,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2158,7 +2401,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2172,6 +2417,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2179,7 +2426,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2193,6 +2442,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2200,14 +2451,15 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2215,6 +2467,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2222,7 +2476,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2235,6 +2491,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2242,7 +2500,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2255,6 +2515,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2262,13 +2524,16 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder( - int index) { + public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2276,16 +2541,20 @@ public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2293,10 +2562,12 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2304,6 +2575,8 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2311,13 +2584,17 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2325,14 +2602,17 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( - int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(int index) { + return getInputConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2340,22 +2620,27 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> + com.google.cloud.translate.v3.InputConfig, + com.google.cloud.translate.v3.InputConfig.Builder, + com.google.cloud.translate.v3.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.InputConfig, + com.google.cloud.translate.v3.InputConfig.Builder, + com.google.cloud.translate.v3.InputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2363,45 +2648,64 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( private com.google.cloud.translate.v3.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3.OutputConfig, + com.google.cloud.translate.v3.OutputConfig.Builder, + com.google.cloud.translate.v3.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2417,13 +2721,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3.OutputConfig.Builder builderForValue) { @@ -2437,19 +2745,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && outputConfig_ != null + && outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2462,13 +2774,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig valu return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2481,13 +2797,17 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2495,48 +2815,63 @@ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> + com.google.cloud.translate.v3.OutputConfig, + com.google.cloud.translate.v3.OutputConfig.Builder, + com.google.cloud.translate.v3.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.OutputConfig, + com.google.cloud.translate.v3.OutputConfig.Builder, + com.google.cloud.translate.v3.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2544,11 +2879,13 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil } return glossaries_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = + com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2557,160 +2894,195 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil onChanged(); return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( - java.lang.String key, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2719,10 +3091,13 @@ public Builder putAllGlossaries( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2738,20 +3113,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2771,6 +3147,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2786,17 +3164,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2812,23 +3192,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2843,23 +3225,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2874,17 +3255,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2899,16 +3283,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2918,12 +3300,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   private static final com.google.cloud.translate.v3.BatchTranslateTextRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateTextRequest();
   }
@@ -2932,27 +3314,27 @@ public static com.google.cloud.translate.v3.BatchTranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2967,6 +3349,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
index 113cf3687b09..e5c1b33c3560 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateTextRequestOrBuilder extends
+public interface BatchTranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -37,74 +60,97 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -127,6 +173,8 @@ public interface BatchTranslateTextRequestOrBuilder extends
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -147,15 +195,13 @@ public interface BatchTranslateTextRequestOrBuilder extends
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -176,9 +222,10 @@ boolean containsModels(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -200,11 +247,13 @@ boolean containsModels(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -225,10 +274,11 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -236,11 +286,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -248,10 +301,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.InputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -259,10 +316,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -270,11 +331,15 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -282,104 +347,138 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( - int index); + com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3.OutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -396,6 +495,8 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -410,15 +511,13 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -433,9 +532,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -451,11 +551,13 @@ boolean containsLabels(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -470,6 +572,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
similarity index 70%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
index 8d73e559b532..7827ff615171 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
+            com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.CreateGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully created.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to create the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully created.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to create the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryMetadata other = (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3.CreateGlossaryMetadata other = + (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,103 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +623,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
       com.google.cloud.translate.v3.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
+              com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.CreateGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +664,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +685,11 @@ public com.google.cloud.translate.v3.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.CreateGlossaryMetadata result = new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.CreateGlossaryMetadata result =
+          new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +703,7 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +711,39 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +751,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +790,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +824,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +851,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +873,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +911,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +935,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +968,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1008,14 @@ public Builder setState(com.google.cloud.translate.v3.CreateGlossaryMetadata.Sta return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1027,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1088,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1107,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1117,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1132,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1151,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1165,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1177,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1192,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3.CreateGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryMetadata(); } @@ -1090,27 +1233,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1268,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java index 91012a73b317..c19c4c4ddf9b 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface CreateGlossaryMetadataOrBuilder extends +public interface CreateGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java similarity index 60% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java index 145cbf8ff2a8..873c5bb5a8df 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, + com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -93,11 +120,16 @@ public java.lang.String getParent() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.Glossary glossary_; /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ @java.lang.Override @@ -105,30 +137,44 @@ public boolean hasGlossary() { return glossary_ != null; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary getGlossary() { - return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -161,8 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,19 +216,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryRequest other = (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3.CreateGlossaryRequest other = + (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary() - .equals(other.getGlossary())) return false; + if (!getGlossary().equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,131 +252,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryRequest) com.google.cloud.translate.v3.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, + com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.CreateGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -348,9 +395,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -369,8 +416,11 @@ public com.google.cloud.translate.v3.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.CreateGlossaryRequest result = new com.google.cloud.translate.v3.CreateGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.CreateGlossaryRequest result = + new com.google.cloud.translate.v3.CreateGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,9 +431,7 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null - ? glossary_ - : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); } } @@ -391,38 +439,39 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -430,7 +479,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -465,24 +515,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,22 +543,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -516,20 +572,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -537,28 +596,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -568,17 +638,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -588,39 +664,58 @@ public Builder setParentBytes( private com.google.cloud.translate.v3.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossaryBuilder_; + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> + glossaryBuilder_; /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ public com.google.cloud.translate.v3.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { @@ -636,14 +731,17 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setGlossary( - com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossaryBuilder_ == null) { glossary_ = builderForValue.build(); } else { @@ -654,17 +752,21 @@ public Builder setGlossary( return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossary_ != null && - glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossary_ != null + && glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -677,11 +779,15 @@ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -694,11 +800,15 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -706,43 +816,55 @@ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { return getGlossaryFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null ? - com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( - getGlossary(), - getParentForChildren(), - isClean()); + glossaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder>( + getGlossary(), getParentForChildren(), isClean()); glossary_ = null; } return glossaryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -752,12 +874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryRequest) private static final com.google.cloud.translate.v3.CreateGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryRequest(); } @@ -766,27 +888,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..7d76230e64de --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface CreateGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The glossary. + */ + com.google.cloud.translate.v3.Glossary getGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java index 407b2058b41d..79f39b9d1ae2 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
+            com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.DeleteGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3.DeleteGlossaryMetadata other = + (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,103 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +623,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
+              com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +664,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +685,11 @@ public com.google.cloud.translate.v3.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.DeleteGlossaryMetadata result =
+          new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +703,7 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +711,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +751,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +790,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +824,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +851,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +873,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +911,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +935,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +968,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1008,14 @@ public Builder setState(com.google.cloud.translate.v3.DeleteGlossaryMetadata.Sta return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1027,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1088,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1107,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1117,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1132,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1151,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1165,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1177,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1192,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3.DeleteGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(); } @@ -1090,27 +1233,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1268,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java index 47cc452baf1a..f1522824f1e8 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DeleteGlossaryMetadataOrBuilder extends +public interface DeleteGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java index b0844ec79872..0646b0544ae2 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryRequest other = (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3.DeleteGlossaryRequest other = + (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryRequest) com.google.cloud.translate.v3.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DeleteGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +341,11 @@ public com.google.cloud.translate.v3.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.DeleteGlossaryRequest result = new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DeleteGlossaryRequest result = + new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +361,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +456,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +485,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +509,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +551,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3.DeleteGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryRequest(); } @@ -537,27 +600,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..10e9ed863205 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface DeleteGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java similarity index 71% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java index ec8afcb199fe..baff0e838394 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -12,48 +29,54 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
+            com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getName() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -107,11 +133,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ @java.lang.Override @@ -119,6 +148,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -133,6 +164,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,6 +173,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -147,6 +181,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -154,6 +190,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -161,6 +198,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,6 +214,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -186,8 +226,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -210,12 +249,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -225,24 +262,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DeleteGlossaryResponse other = (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3.DeleteGlossaryResponse other =
+        (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -271,98 +306,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -371,33 +411,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
       com.google.cloud.translate.v3.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
+              com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +456,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +477,11 @@ public com.google.cloud.translate.v3.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryResponse result = new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.DeleteGlossaryResponse result =
+          new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -450,14 +492,10 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -465,38 +503,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -504,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -542,31 +582,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,22 +616,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -600,20 +643,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -621,28 +665,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -652,17 +703,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -672,34 +727,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -720,14 +788,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -738,6 +807,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -746,9 +817,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -761,6 +832,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -778,6 +851,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -790,6 +865,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -800,11 +877,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -812,14 +892,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -827,8 +910,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -836,12 +924,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -849,6 +940,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -859,6 +951,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -881,6 +975,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -889,8 +985,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -901,6 +996,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -911,9 +1008,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -926,6 +1023,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -945,6 +1044,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -959,6 +1060,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -971,11 +1074,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -985,21 +1089,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1009,12 +1116,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3.DeleteGlossaryResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryResponse();
   }
@@ -1023,27 +1130,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DeleteGlossaryResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DeleteGlossaryResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1058,6 +1165,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
index e406e3597d8d..60741c6926e6 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
@@ -1,51 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DeleteGlossaryResponseOrBuilder extends
+public interface DeleteGlossaryResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -55,6 +84,8 @@ public interface DeleteGlossaryResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -62,10 +93,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -73,10 +107,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
index 7cc70c4faad6..451a98239d20 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageRequest) DetectLanguageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -27,45 +45,49 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, + com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -81,26 +103,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -115,7 +142,10 @@ public int getNumber() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -124,14 +154,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -146,17 +177,18 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -165,9 +197,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -181,6 +216,7 @@ public java.lang.String getParent() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -189,14 +225,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -210,16 +247,15 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -229,22 +265,28 @@ public java.lang.String getModel() { public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { @@ -255,8 +297,7 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -265,23 +306,24 @@ public java.lang.String getContent() { } } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -292,15 +334,19 @@ public java.lang.String getContent() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -309,30 +355,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -341,32 +387,34 @@ public java.lang.String getMimeType() { } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -382,20 +430,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -415,6 +464,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -430,17 +481,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -456,11 +509,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -468,6 +521,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -479,8 +533,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -493,12 +546,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        6);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
     getUnknownFields().writeTo(output);
   }
 
@@ -520,15 +569,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -538,26 +587,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageRequest other = (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3.DetectLanguageRequest other =
+        (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent()
-            .equals(other.getContent())) return false;
+        if (!getContent().equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -597,153 +642,155 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageRequest) com.google.cloud.translate.v3.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, + com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -758,9 +805,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -779,8 +826,11 @@ public com.google.cloud.translate.v3.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3.DetectLanguageRequest result = new com.google.cloud.translate.v3.DetectLanguageRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DetectLanguageRequest result = + new com.google.cloud.translate.v3.DetectLanguageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -812,38 +862,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DetectLanguageRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest)other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest) other); } else { super.mergeFrom(other); return this; @@ -851,7 +902,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -867,19 +919,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest oth bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -907,42 +960,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -952,12 +1013,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -971,6 +1032,8 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -985,14 +1048,16 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1001,6 +1066,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1015,16 +1082,17 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1032,6 +1100,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1046,19 +1116,25 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1073,7 +1149,10 @@ public Builder setParent(
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1083,6 +1162,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1097,13 +1178,17 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1113,6 +1198,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1126,13 +1213,13 @@ public Builder setParentBytes(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1141,6 +1228,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1154,15 +1243,14 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1170,6 +1258,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1183,18 +1273,22 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1208,6 +1302,7 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1217,6 +1312,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1230,12 +1327,14 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1244,11 +1343,14 @@ public Builder setModelBytes( } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -1256,11 +1358,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -1270,8 +1375,7 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1282,24 +1386,25 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1309,28 +1414,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1342,17 +1454,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1362,19 +1478,21 @@ public Builder setContentBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1383,21 +1501,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1405,30 +1524,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1438,18 +1564,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1457,21 +1587,19 @@ public Builder setMimeTypeBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1480,10 +1608,13 @@ public Builder setMimeTypeBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1499,20 +1630,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1532,6 +1664,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1547,17 +1681,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1573,23 +1709,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1604,23 +1742,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1635,17 +1772,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1660,16 +1800,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1679,12 +1817,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3.DetectLanguageRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageRequest();
   }
@@ -1693,27 +1831,27 @@ public static com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1728,6 +1866,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
index 98adaa711c0b..4a1934406da6 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageRequestOrBuilder extends
+public interface DetectLanguageRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -22,11 +40,16 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -41,13 +64,17 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -61,10 +88,13 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -78,63 +108,78 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -151,6 +196,8 @@ public interface DetectLanguageRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -165,15 +212,13 @@ public interface DetectLanguageRequestOrBuilder extends
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -188,9 +233,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -206,11 +252,13 @@ boolean containsLabels(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -225,8 +273,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   com.google.cloud.translate.v3.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
index 9c1c7cdd3613..bdcbc1a96fda 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
@@ -1,52 +1,74 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageResponse) DetectLanguageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, + com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -59,6 +81,8 @@ public java.util.List getLanguag
     return languages_;
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -67,11 +91,13 @@ public java.util.List getLanguag
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -104,12 +134,12 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
-      int index) {
+  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +151,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +165,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +175,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageResponse other = (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3.DetectLanguageResponse other =
+        (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -177,131 +205,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageResponse) com.google.cloud.translate.v3.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, + com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -338,14 +370,18 @@ public com.google.cloud.translate.v3.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3.DetectLanguageResponse result = new com.google.cloud.translate.v3.DetectLanguageResponse(this); + com.google.cloud.translate.v3.DetectLanguageResponse result = + new com.google.cloud.translate.v3.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DetectLanguageResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +401,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectLanguageResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse)other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse) other); } else { super.mergeFrom(other); return this; @@ -404,7 +441,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +461,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse ot languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +496,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.DetectedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +525,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3.DetectedLanguage, + com.google.cloud.translate.v3.DetectedLanguage.Builder, + com.google.cloud.translate.v3.DetectedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -515,6 +563,8 @@ public java.util.List getLanguag
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -530,6 +580,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -545,6 +597,8 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -552,8 +606,7 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder setLanguages(
-        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -567,6 +620,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -586,6 +641,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -607,6 +664,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -614,8 +673,7 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder addLanguages(
-        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -629,6 +687,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -648,6 +708,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -667,6 +729,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -678,8 +742,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +750,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -705,6 +770,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -723,6 +790,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -730,11 +799,12 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -745,11 +815,14 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilde
     public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -757,8 +830,8 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +839,8 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -774,10 +849,12 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -785,12 +862,13 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(
-        int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(int index) {
+      return getLanguagesFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -798,27 +876,30 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> 
+            com.google.cloud.translate.v3.DetectedLanguage,
+            com.google.cloud.translate.v3.DetectedLanguage.Builder,
+            com.google.cloud.translate.v3.DetectedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.DetectedLanguage,
+                com.google.cloud.translate.v3.DetectedLanguage.Builder,
+                com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +909,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3.DetectLanguageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageResponse();
   }
@@ -842,27 +923,27 @@ public static com.google.cloud.translate.v3.DetectLanguageResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
index 10d47edded3c..c2923821ebf9 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageResponseOrBuilder extends
+public interface DetectLanguageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -15,9 +33,10 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -27,6 +46,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -36,6 +57,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -43,9 +66,11 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -53,6 +78,5 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
similarity index 69%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
index 5e22078de8e9..c61021ef9e0a 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ -public final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectedLanguage) DetectedLanguageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, + com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -61,30 +84,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -108,6 +134,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +146,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -140,8 +166,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,18 +176,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.DetectedLanguage other = (com.google.cloud.translate.v3.DetectedLanguage) obj; + com.google.cloud.translate.v3.DetectedLanguage other = + (com.google.cloud.translate.v3.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,139 +201,142 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectedLanguage) com.google.cloud.translate.v3.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, + com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectedLanguage.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override @@ -341,8 +368,11 @@ public com.google.cloud.translate.v3.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3.DetectedLanguage result = new com.google.cloud.translate.v3.DetectedLanguage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DetectedLanguage result = + new com.google.cloud.translate.v3.DetectedLanguage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -361,38 +391,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectedLanguage result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage)other); + return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage) other); } else { super.mergeFrom(other); return this; @@ -435,22 +466,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,23 +494,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object languageCode_ = ""; /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -485,21 +522,22 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -507,30 +545,37 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -540,18 +585,22 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -559,13 +608,16 @@ public Builder setLanguageCodeBytes( return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -573,11 +625,14 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ @@ -589,11 +644,14 @@ public Builder setConfidence(float value) { return this; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -602,9 +660,9 @@ public Builder clearConfidence() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +672,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectedLanguage) private static final com.google.cloud.translate.v3.DetectedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectedLanguage(); } @@ -628,27 +686,27 @@ public static com.google.cloud.translate.v3.DetectedLanguage getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,6 +721,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java similarity index 56% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java index 309303d82e0e..1933a7deb723 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DetectedLanguageOrBuilder extends +public interface DetectedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java index 95d687cfdb55..9cc9719ccf38 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ -public final class DocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentInputConfig) DocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, + com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -68,30 +91,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -99,11 +128,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -116,12 +148,15 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -129,22 +164,27 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -155,15 +195,18 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -178,6 +221,7 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
    * 
* * string mime_type = 4; + * * @return The mimeType. */ @java.lang.Override @@ -186,14 +230,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -208,16 +253,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -226,6 +270,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,11 +282,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) source_); + output.writeBytes(1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3.GcsSource) source_); @@ -259,13 +302,14 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.translate.v3.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -278,24 +322,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentInputConfig other = (com.google.cloud.translate.v3.DocumentInputConfig) obj; + com.google.cloud.translate.v3.DocumentInputConfig other = + (com.google.cloud.translate.v3.DocumentInputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 2: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -331,131 +373,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentInputConfig) com.google.cloud.translate.v3.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, + com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override @@ -491,8 +537,11 @@ public com.google.cloud.translate.v3.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentInputConfig result = new com.google.cloud.translate.v3.DocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DocumentInputConfig result = + new com.google.cloud.translate.v3.DocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -508,8 +557,7 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -518,38 +566,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -557,24 +606,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -602,29 +655,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,12 +689,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -652,22 +707,28 @@ public Builder clearSource() { private int bitField0_; /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -677,27 +738,35 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -710,14 +779,20 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -725,12 +800,15 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -748,6 +826,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -769,6 +849,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -776,8 +858,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -788,6 +869,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -797,10 +880,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -816,6 +902,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -840,6 +928,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -851,6 +941,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -870,6 +962,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -878,14 +972,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -898,6 +997,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
 
     private java.lang.Object mimeType_ = "";
     /**
+     *
+     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -912,13 +1013,13 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * 
* * string mime_type = 4; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -927,6 +1028,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -941,15 +1044,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -957,6 +1059,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -971,18 +1075,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -997,6 +1105,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 4; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1006,6 +1115,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -1020,21 +1131,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1044,12 +1157,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentInputConfig) private static final com.google.cloud.translate.v3.DocumentInputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentInputConfig(); } @@ -1058,27 +1171,27 @@ public static com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1093,6 +1206,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java index 50777c79ecb4..0b19f21c69b1 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentInputConfigOrBuilder extends +public interface DocumentInputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -57,6 +87,8 @@ public interface DocumentInputConfigOrBuilder extends
   com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -71,10 +103,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -89,10 +124,10 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java similarity index 81% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java index d82dcac7e052..0e63cb5920fb 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentOutputConfig) DocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -67,24 +90,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -131,7 +158,10 @@ public int getNumber() {
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -139,6 +169,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -185,17 +217,22 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -242,20 +279,25 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -269,6 +311,7 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -277,14 +320,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -298,16 +342,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -316,6 +359,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } @@ -345,8 +388,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.translate.v3.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -359,20 +403,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentOutputConfig other = (com.google.cloud.translate.v3.DocumentOutputConfig) obj; + com.google.cloud.translate.v3.DocumentOutputConfig other = + (com.google.cloud.translate.v3.DocumentOutputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -404,131 +447,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentOutputConfig) com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +590,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -564,8 +611,11 @@ public com.google.cloud.translate.v3.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentOutputConfig result = new com.google.cloud.translate.v3.DocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DocumentOutputConfig result = + new com.google.cloud.translate.v3.DocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -581,8 +631,7 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentOutputConfig re private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -591,38 +640,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -630,20 +680,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -671,24 +724,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -698,12 +752,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -716,8 +770,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -764,7 +823,10 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -772,6 +834,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -818,7 +882,10 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override @@ -836,6 +903,8 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -882,7 +951,9 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -898,6 +969,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -944,7 +1017,9 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination( com.google.cloud.translate.v3.GcsDestination.Builder builderForValue) { @@ -958,6 +1033,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1004,14 +1081,19 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.translate.v3.GcsDestination.newBuilder( + (com.google.cloud.translate.v3.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -1027,6 +1109,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1073,7 +1157,9 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1092,6 +1178,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1138,12 +1226,16 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1190,7 +1282,9 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1204,6 +1298,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1250,17 +1346,24 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1273,6 +1376,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1286,13 +1391,13 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1301,6 +1406,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1314,15 +1421,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1330,6 +1436,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1343,18 +1451,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1368,6 +1480,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1377,6 +1490,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1390,21 +1505,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1414,12 +1531,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentOutputConfig) private static final com.google.cloud.translate.v3.DocumentOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentOutputConfig(); } @@ -1428,27 +1545,27 @@ public static com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1463,6 +1580,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java similarity index 87% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java index 4b5da369adef..cf370a01aa79 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentOutputConfigOrBuilder extends +public interface DocumentOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -54,11 +72,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -105,11 +128,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -156,11 +184,15 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -174,10 +206,13 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -191,10 +226,10 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java similarity index 72% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java index 599656c29380..751649958567 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ -public final class DocumentTranslation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentTranslation) DocumentTranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -27,28 +45,32 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, + com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -56,14 +78,16 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List - getByteStreamOutputsList() { + public java.util.List getByteStreamOutputsList() { return byteStreamOutputs_; } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -71,12 +95,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -84,6 +111,7 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -92,14 +120,18 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -139,9 +171,12 @@ public java.lang.String getMimeType() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -151,6 +186,7 @@ public java.lang.String getMimeType() {
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -159,14 +195,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -176,16 +213,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -194,6 +230,7 @@ public java.lang.String getDetectedLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -228,8 +264,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -248,19 +284,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentTranslation other = (com.google.cloud.translate.v3.DocumentTranslation) obj; + com.google.cloud.translate.v3.DocumentTranslation other = + (com.google.cloud.translate.v3.DocumentTranslation) obj; - if (!getByteStreamOutputsList() - .equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,131 +320,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentTranslation) com.google.cloud.translate.v3.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, + com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentTranslation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override @@ -443,14 +481,18 @@ public com.google.cloud.translate.v3.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3.DocumentTranslation result = new com.google.cloud.translate.v3.DocumentTranslation(this); + com.google.cloud.translate.v3.DocumentTranslation result = + new com.google.cloud.translate.v3.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DocumentTranslation result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -472,38 +514,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentTranslation res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation)other); + return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation) other); } else { super.mergeFrom(other); return this; @@ -511,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) + return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -558,28 +602,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,16 +637,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); + private java.util.List byteStreamOutputs_ = + java.util.Collections.emptyList(); + private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = + new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -606,14 +660,17 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ - public java.util.List - getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; + public java.util.List getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(byteStreamOutputs_) + : byteStreamOutputs_; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -621,12 +678,15 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -634,6 +694,7 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -641,6 +702,8 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -648,19 +711,23 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -668,17 +735,22 @@ public Builder setByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -686,18 +758,20 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -705,6 +779,7 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -716,18 +791,20 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -736,20 +813,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -757,28 +835,35 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -788,17 +873,21 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -808,6 +897,8 @@ public Builder setMimeTypeBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -817,13 +908,13 @@ public Builder setMimeTypeBytes(
      * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -832,6 +923,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -841,15 +934,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -857,6 +949,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -866,18 +960,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -887,6 +985,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 3; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -896,6 +995,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -905,21 +1006,23 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -929,12 +1032,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentTranslation) private static final com.google.cloud.translate.v3.DocumentTranslation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentTranslation(); } @@ -943,27 +1046,27 @@ public static com.google.cloud.translate.v3.DocumentTranslation getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -978,6 +1081,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java similarity index 76% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java index a0de308766f1..f3f741b7c96f 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentTranslationOrBuilder extends +public interface DocumentTranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -15,10 +33,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -26,10 +47,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -37,32 +61,40 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -72,10 +104,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -85,8 +120,8 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java index dbeaf322df16..a9f4428e1c59 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, + com.google.cloud.translate.v3.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -81,16 +105,15 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -99,6 +122,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -135,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3.GcsDestination other = (com.google.cloud.translate.v3.GcsDestination) obj; + com.google.cloud.translate.v3.GcsDestination other = + (com.google.cloud.translate.v3.GcsDestination) obj; - if (!getOutputUriPrefix() - .equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,132 +185,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsDestination) com.google.cloud.translate.v3.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, + com.google.cloud.translate.v3.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override @@ -318,8 +345,11 @@ public com.google.cloud.translate.v3.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3.GcsDestination buildPartial() { - com.google.cloud.translate.v3.GcsDestination result = new com.google.cloud.translate.v3.GcsDestination(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GcsDestination result = + new com.google.cloud.translate.v3.GcsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -335,38 +365,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsDestination result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3.GcsDestination)other); + return mergeFrom((com.google.cloud.translate.v3.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -406,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -426,10 +459,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -439,13 +475,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -454,6 +490,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -463,15 +501,14 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -479,6 +516,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -488,18 +527,22 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -509,6 +552,7 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -518,6 +562,8 @@ public Builder clearOutputUriPrefix() { return this; } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -527,21 +573,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -551,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsDestination) private static final com.google.cloud.translate.v3.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsDestination(); } @@ -565,27 +613,27 @@ public static com.google.cloud.translate.v3.GcsDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -600,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java similarity index 64% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java index 70032240ccc2..83501d8cc6bd 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -17,10 +35,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -30,8 +51,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString - getOutputUriPrefixBytes(); + com.google.protobuf.ByteString getOutputUriPrefixBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java similarity index 67% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java index 9be42c2bf528..4da305a923c0 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, + com.google.cloud.translate.v3.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ @java.lang.Override @@ -60,29 +83,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -91,6 +114,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -127,15 +150,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsSource)) { return super.equals(obj); } com.google.cloud.translate.v3.GcsSource other = (com.google.cloud.translate.v3.GcsSource) obj; - if (!getInputUri() - .equals(other.getInputUri())) return false; + if (!getInputUri().equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +176,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsSource) com.google.cloud.translate.v3.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, + com.google.cloud.translate.v3.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsSource.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override @@ -310,8 +336,11 @@ public com.google.cloud.translate.v3.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3.GcsSource buildPartial() { - com.google.cloud.translate.v3.GcsSource result = new com.google.cloud.translate.v3.GcsSource(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GcsSource result = + new com.google.cloud.translate.v3.GcsSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +356,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsSource result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3.GcsSource)other); + return mergeFrom((com.google.cloud.translate.v3.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -398,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +450,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputUri_ = ""; /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -442,20 +477,21 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -463,28 +499,35 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -494,26 +537,30 @@ public Builder clearInputUri() { return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsSource) private static final com.google.cloud.translate.v3.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsSource(); } @@ -537,27 +584,27 @@ public static com.google.cloud.translate.v3.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java index d2e2d20ee1e1..08a1d20b8daa 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ java.lang.String getInputUri(); /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString - getInputUriBytes(); + com.google.protobuf.ByteString getInputUriBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java index 835dc64c2b00..d25600ea3926 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetGlossaryRequest) GetGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, + com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetGlossaryRequest other = (com.google.cloud.translate.v3.GetGlossaryRequest) obj; + com.google.cloud.translate.v3.GetGlossaryRequest other = + (com.google.cloud.translate.v3.GetGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +181,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetGlossaryRequest) com.google.cloud.translate.v3.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, + com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +341,11 @@ public com.google.cloud.translate.v3.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.GetGlossaryRequest result = new com.google.cloud.translate.v3.GetGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GetGlossaryRequest result = + new com.google.cloud.translate.v3.GetGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +361,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GetGlossaryRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +456,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +485,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +509,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +551,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetGlossaryRequest) private static final com.google.cloud.translate.v3.GetGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetGlossaryRequest(); } @@ -537,27 +600,27 @@ public static com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..bddba5a37dcb --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface GetGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java index 58b8dd01ff91..35a3d6bc65f8 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -27,28 +45,32 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -65,7 +87,10 @@ protected java.lang.Object newInstance(
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -74,14 +99,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -98,17 +124,18 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -117,9 +144,12 @@ public java.lang.String getParent() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -127,6 +157,7 @@ public java.lang.String getParent() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ @java.lang.Override @@ -135,14 +166,15 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -150,16 +182,15 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -168,9 +199,12 @@ public java.lang.String getDisplayLanguageCode() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -188,6 +222,7 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -221,16 +257,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -239,6 +274,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -287,19 +322,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getDisplayLanguageCode() - .equals(other.getDisplayLanguageCode())) return false; - if (!getModel() - .equals(other.getModel())) return false; + com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = + (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; + if (!getModel().equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,131 +356,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.cloud.translate.v3.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetSupportedLanguagesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override @@ -480,8 +518,11 @@ public com.google.cloud.translate.v3.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = + new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -503,38 +544,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GetSupportedLanguagesRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest)other); + return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) other); } else { super.mergeFrom(other); return this; @@ -542,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetSupportedLanguagesRequest other) { - if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -584,27 +627,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,10 +661,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -634,14 +684,16 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -650,6 +702,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -666,16 +720,17 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -683,6 +738,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -699,19 +756,25 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -728,7 +791,10 @@ public Builder setParent(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -738,6 +804,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -754,13 +822,17 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -770,6 +842,8 @@ public Builder setParentBytes( private java.lang.Object displayLanguageCode_ = ""; /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -777,13 +851,13 @@ public Builder setParentBytes(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -792,6 +866,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -799,15 +875,14 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -815,6 +890,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -822,18 +899,22 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -841,6 +922,7 @@ public Builder setDisplayLanguageCode(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -850,6 +932,8 @@ public Builder clearDisplayLanguageCode() { return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -857,12 +941,14 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -872,6 +958,8 @@ public Builder setDisplayLanguageCodeBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -889,13 +977,13 @@ public Builder setDisplayLanguageCodeBytes(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -904,6 +992,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -921,15 +1011,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -937,6 +1026,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -954,18 +1045,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -983,6 +1078,7 @@ public Builder setModel(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -992,6 +1088,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -1009,21 +1107,23 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +1133,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) private static final com.google.cloud.translate.v3.GetSupportedLanguagesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(); } @@ -1047,27 +1147,27 @@ public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,6 +1182,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java index f9e18ec31480..e1201914f13a 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GetSupportedLanguagesRequestOrBuilder extends +public interface GetSupportedLanguagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -24,11 +42,16 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -45,13 +68,17 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -59,10 +86,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -70,12 +100,14 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString - getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -93,10 +125,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -114,8 +149,8 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java index d96c78b5bf6f..11fd69381128 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Represents a glossary built from user-provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ -public final class Glossary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Glossary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary) GlossaryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Glossary() { name_ = ""; displayName_ = ""; @@ -26,88 +44,103 @@ private Glossary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, + com.google.cloud.translate.v3.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder extends + public interface LanguageCodePairOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -115,34 +148,39 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -151,30 +189,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -183,15 +221,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -200,30 +242,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -232,6 +274,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -274,17 +316,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodePair other = + (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,89 +347,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -398,39 +444,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override @@ -462,8 +510,11 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Glossary.LanguageCodePair result = + new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -482,38 +533,41 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodePa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair)other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair) other); } else { super.mergeFrom(other); return this; @@ -521,7 +575,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodePair other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) + return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -558,22 +613,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,23 +641,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -608,21 +669,22 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -630,30 +692,37 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -663,18 +732,22 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -684,19 +757,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -705,21 +780,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -727,30 +803,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -760,24 +843,29 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -790,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) private static final com.google.cloud.translate.v3.Glossary.LanguageCodePair DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(); } @@ -804,27 +892,28 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,14 +928,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface LanguageCodesSetOrBuilder extends + public interface LanguageCodesSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -854,11 +945,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -866,10 +959,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -877,11 +973,14 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -889,58 +988,64 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString - getLanguageCodesBytes(int index); + com.google.protobuf.ByteString getLanguageCodesBytes(int index); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodesSet() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -948,13 +1053,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_; } /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -962,12 +1069,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -975,6 +1085,7 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -982,6 +1093,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -989,15 +1102,16 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1009,8 +1123,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1039,15 +1152,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = + (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1069,89 +1182,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1161,52 +1279,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override @@ -1225,8 +1344,11 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = + new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1243,38 +1365,41 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodesS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet)other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) other); } else { super.mergeFrom(other); return this; @@ -1282,7 +1407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodesSet other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) + return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1319,18 +1445,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1340,10 +1468,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1351,6 +1481,8 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1358,14 +1490,16 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1373,12 +1507,15 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1386,6 +1523,7 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1393,6 +1531,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1400,14 +1540,16 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1415,13 +1557,15 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1429,6 +1573,8 @@ public Builder setLanguageCodes( return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1436,12 +1582,14 @@ public Builder setLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1449,6 +1597,8 @@ public Builder addLanguageCodes( return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1456,19 +1606,20 @@ public Builder addLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes( - java.lang.Iterable values) { + public Builder addAllLanguageCodes(java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1476,16 +1627,19 @@ public Builder addAllLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1493,12 +1647,14 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; + * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1506,6 +1662,7 @@ public Builder addLanguageCodesBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1518,12 +1675,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) private static final com.google.cloud.translate.v3.Glossary.LanguageCodesSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(); } @@ -1532,27 +1689,28 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1567,19 +1725,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int languagesCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object languages_; + public enum LanguagesCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; + private LanguagesCase(int value) { this.value = value; } @@ -1595,33 +1756,40 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: return LANGUAGE_PAIR; - case 4: return LANGUAGE_CODES_SET; - case 0: return LANGUAGES_NOT_SET; - default: return null; + case 3: + return LANGUAGE_PAIR; + case 4: + return LANGUAGE_CODES_SET; + case 0: + return LANGUAGES_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -1630,30 +1798,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1663,11 +1831,14 @@ public java.lang.String getName() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1675,21 +1846,26 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -1697,20 +1873,24 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1718,21 +1898,26 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
@@ -1740,9 +1925,10 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1750,12 +1936,15 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1763,19 +1952,26 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1785,17 +1981,22 @@ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+    return inputConfig_ == null
+        ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
+        : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -1806,11 +2007,15 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -1818,11 +2023,15 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ @java.lang.Override @@ -1830,11 +2039,14 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -1844,11 +2056,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1856,11 +2072,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1868,11 +2088,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1880,14 +2103,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -1896,29 +2123,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1927,6 +2154,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1938,8 +2166,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1977,28 +2204,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, displayName_); @@ -2011,43 +2236,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary)) { return super.equals(obj); } com.google.cloud.translate.v3.Glossary other = (com.google.cloud.translate.v3.Glossary) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (getEntryCount() - != other.getEntryCount()) return false; + if (getEntryCount() != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair() - .equals(other.getLanguagePair())) return false; + if (!getLanguagePair().equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet() - .equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2098,132 +2315,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Glossary parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Glossary parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a glossary built from user-provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary) com.google.cloud.translate.v3.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, + com.google.cloud.translate.v3.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2258,9 +2479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override @@ -2279,8 +2500,11 @@ public com.google.cloud.translate.v3.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary buildPartial() { - com.google.cloud.translate.v3.Glossary result = new com.google.cloud.translate.v3.Glossary(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Glossary result = + new com.google.cloud.translate.v3.Glossary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2292,22 +2516,17 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = inputConfigBuilder_ == null - ? inputConfig_ - : inputConfigBuilder_.build(); + result.inputConfig_ = + inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; @@ -2317,12 +2536,10 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && - languagePairBuilder_ != null) { + if (languagesCase_ == 3 && languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && - languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2331,38 +2548,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary) { - return mergeFrom((com.google.cloud.translate.v3.Glossary)other); + return mergeFrom((com.google.cloud.translate.v3.Glossary) other); } else { super.mergeFrom(other); return this; @@ -2394,17 +2612,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3.Glossary other) { onChanged(); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: { - break; - } + case LANGUAGE_PAIR: + { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: + { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2432,62 +2653,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - input.readMessage( - getLanguagePairFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2497,12 +2718,12 @@ public Builder mergeFrom( } // finally return this; } + private int languagesCase_ = 0; private java.lang.Object languages_; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public Builder clearLanguages() { @@ -2516,19 +2737,21 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2537,21 +2760,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2559,30 +2783,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2592,18 +2823,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2612,13 +2847,19 @@ public Builder setNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodePair, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> + languagePairBuilder_; /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2626,11 +2867,14 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override @@ -2648,6 +2892,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2668,6 +2914,8 @@ public Builder setLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCo return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2686,18 +2934,25 @@ public Builder setLanguagePair( return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair( + com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 && - languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 3 + && languages_ + != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder( + (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2713,6 +2968,8 @@ public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.Language return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2736,16 +2993,21 @@ public Builder clearLanguagePair() { return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder + getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2753,7 +3015,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder getLangua * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -2764,6 +3027,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLangu } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2771,14 +3036,19 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLangu * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodePair, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodePair, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -2790,13 +3060,19 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLangu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> + languageCodesSetBuilder_; /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -2804,11 +3080,14 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return The languageCodesSet. */ @java.lang.Override @@ -2826,13 +3105,16 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet( + com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2846,6 +3128,8 @@ public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.Langua return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2864,18 +3148,25 @@ public Builder setLanguageCodesSet( return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet( + com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 && - languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 4 + && languages_ + != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder( + (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2891,6 +3182,8 @@ public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.Lang return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2914,16 +3207,21 @@ public Builder clearLanguageCodesSet() { return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder + getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2931,7 +3229,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder getLangua * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -2942,6 +3241,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2949,14 +3250,19 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -2969,36 +3275,49 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.translate.v3.GlossaryInputConfig, + com.google.cloud.translate.v3.GlossaryInputConfig.Builder, + com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3020,6 +3339,8 @@ public Builder setInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3039,6 +3360,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3048,9 +3371,10 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          inputConfig_ != null &&
-          inputConfig_ != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && inputConfig_ != null
+            && inputConfig_
+                != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -3063,6 +3387,8 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfi
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3081,6 +3407,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3094,6 +3422,8 @@ public com.google.cloud.translate.v3.GlossaryInputConfig.Builder getInputConfigB
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3105,11 +3435,14 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null ?
-            com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+        return inputConfig_ == null
+            ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
+            : inputConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3118,26 +3451,32 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
      * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> 
+            com.google.cloud.translate.v3.GlossaryInputConfig,
+            com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
+            com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
-                getInputConfig(),
-                getParentForChildren(),
-                isClean());
+        inputConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GlossaryInputConfig,
+                com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
+                com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
+                getInputConfig(), getParentForChildren(), isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_ ;
+    private int entryCount_;
     /**
+     *
+     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -3145,11 +3484,14 @@ public int getEntryCount() { return entryCount_; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3161,11 +3503,14 @@ public Builder setEntryCount(int value) { return this; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3177,39 +3522,58 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3225,14 +3589,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3243,17 +3610,21 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3266,11 +3637,15 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3283,11 +3658,15 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3295,36 +3674,48 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3332,24 +3723,35 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3360,11 +3762,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3380,14 +3785,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3398,17 +3805,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3421,11 +3831,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3438,11 +3851,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3450,36 +3866,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -3487,18 +3911,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3507,20 +3933,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3528,28 +3955,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3559,26 +3993,30 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3588,12 +4026,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary) private static final com.google.cloud.translate.v3.Glossary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary(); } @@ -3602,27 +4040,27 @@ public static com.google.cloud.translate.v3.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3637,6 +4075,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java similarity index 78% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java index 61296364dabe..51e6da2ec7e3 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GlossaryInputConfig) GlossaryInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GlossaryInputConfig() { - } + + private GlossaryInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, + com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -109,6 +135,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -116,6 +143,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -141,16 +170,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -180,12 +212,13 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -197,8 +230,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -212,8 +244,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -223,18 +256,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.GlossaryInputConfig other = (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3.GlossaryInputConfig other =
+        (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -264,131 +297,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GlossaryInputConfig) com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, + com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -423,8 +460,11 @@ public com.google.cloud.translate.v3.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3.GlossaryInputConfig result = new com.google.cloud.translate.v3.GlossaryInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GlossaryInputConfig result = + new com.google.cloud.translate.v3.GlossaryInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -437,8 +477,7 @@ private void buildPartial0(com.google.cloud.translate.v3.GlossaryInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -447,38 +486,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig) other); } else { super.mergeFrom(other); return this; @@ -486,15 +526,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -522,19 +565,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,12 +587,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -562,8 +605,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -589,6 +637,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -596,6 +645,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -621,6 +672,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -638,6 +690,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -678,6 +732,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -704,8 +760,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -716,6 +771,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -744,10 +801,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -763,6 +823,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -806,6 +868,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -836,6 +900,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -874,6 +940,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -901,14 +969,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -918,9 +991,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -930,12 +1003,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3.GlossaryInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GlossaryInputConfig();
   }
@@ -944,27 +1017,27 @@ public static com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GlossaryInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GlossaryInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -979,6 +1052,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
similarity index 84%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
index fb22a8f7160c..e759dd0a8775 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryInputConfigOrBuilder extends
+public interface GlossaryInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -33,10 +51,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -62,10 +83,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
similarity index 100%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
similarity index 81%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
index 43319bf6f093..1a660f1ad122 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
@@ -1,53 +1,82 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryOrBuilder extends
+public interface GlossaryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -57,24 +86,32 @@ public interface GlossaryOrBuilder extends com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return The languageCodesSet. */ com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
@@ -84,26 +121,34 @@ public interface GlossaryOrBuilder extends com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -114,88 +159,118 @@ public interface GlossaryOrBuilder extends
   com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ int getEntryCount(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); com.google.cloud.translate.v3.Glossary.LanguagesCase getLanguagesCase(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java index 67e7ac456466..235db7d84b73 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, + com.google.cloud.translate.v3.InputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -67,26 +90,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -95,6 +123,7 @@ public int getNumber() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -103,14 +132,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -119,16 +149,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -138,6 +167,8 @@ public java.lang.String getMimeType() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -160,6 +191,7 @@ public java.lang.String getMimeType() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -167,6 +199,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -189,16 +223,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -225,12 +262,13 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -242,8 +280,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -263,8 +300,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,20 +312,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.InputConfig other = (com.google.cloud.translate.v3.InputConfig) obj;
+    com.google.cloud.translate.v3.InputConfig other =
+        (com.google.cloud.translate.v3.InputConfig) obj;
 
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -318,132 +355,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.InputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.InputConfig) com.google.cloud.translate.v3.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, + com.google.cloud.translate.v3.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.InputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override @@ -479,8 +520,11 @@ public com.google.cloud.translate.v3.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.InputConfig buildPartial() { - com.google.cloud.translate.v3.InputConfig result = new com.google.cloud.translate.v3.InputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.InputConfig result = + new com.google.cloud.translate.v3.InputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -496,8 +540,7 @@ private void buildPartial0(com.google.cloud.translate.v3.InputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -506,38 +549,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3.InputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -552,13 +596,15 @@ public Builder mergeFrom(com.google.cloud.translate.v3.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -586,24 +632,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,12 +660,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -632,6 +679,8 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -640,13 +689,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -655,6 +704,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -663,15 +714,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -679,6 +729,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -687,18 +739,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -707,6 +763,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -716,6 +773,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -724,12 +783,14 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -738,8 +799,13 @@ public Builder setMimeTypeBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -762,6 +828,7 @@ public Builder setMimeTypeBytes(
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -769,6 +836,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -791,6 +860,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -808,6 +878,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -845,6 +917,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -868,8 +942,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -880,6 +953,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -905,10 +980,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -924,6 +1002,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -964,6 +1044,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -991,6 +1073,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1026,6 +1110,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1050,14 +1136,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1067,9 +1158,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1079,12 +1170,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.InputConfig)
   private static final com.google.cloud.translate.v3.InputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.InputConfig();
   }
@@ -1093,27 +1184,27 @@ public static com.google.cloud.translate.v3.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public InputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public InputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1128,6 +1219,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
similarity index 86%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
index 9ba8a5b4c0ec..382010027946 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface InputConfigOrBuilder extends
+public interface InputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -16,10 +34,13 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -28,12 +49,14 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -56,10 +79,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -82,10 +108,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
similarity index 75%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
index cc8459ab2ed5..90cb92cb5494 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesRequest) ListGlossariesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,33 +45,40 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, + com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,12 +122,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -109,9 +139,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -144,16 +179,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -162,9 +196,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -185,6 +222,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -193,14 +231,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -221,16 +260,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -239,6 +277,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -277,8 +315,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -294,21 +331,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesRequest other = (com.google.cloud.translate.v3.ListGlossariesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.translate.v3.ListGlossariesRequest other = + (com.google.cloud.translate.v3.ListGlossariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,131 +368,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesRequest) com.google.cloud.translate.v3.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, + com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -492,8 +530,11 @@ public com.google.cloud.translate.v3.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3.ListGlossariesRequest result = new com.google.cloud.translate.v3.ListGlossariesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.ListGlossariesRequest result = + new com.google.cloud.translate.v3.ListGlossariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -518,38 +559,39 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest)other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest) other); } else { super.mergeFrom(other); return this; @@ -557,7 +599,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -602,32 +645,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,22 +685,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -661,20 +714,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -682,28 +738,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -713,17 +780,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -731,14 +804,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -746,12 +822,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -763,12 +842,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -780,6 +862,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -788,13 +872,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -803,6 +887,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -811,15 +897,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -827,6 +912,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -835,18 +922,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -855,6 +946,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -864,6 +956,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -872,12 +966,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -887,6 +983,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -907,13 +1005,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -922,6 +1020,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -942,15 +1042,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -958,6 +1057,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -978,18 +1079,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1010,6 +1115,7 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1019,6 +1125,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1039,21 +1147,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1063,12 +1173,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesRequest) private static final com.google.cloud.translate.v3.ListGlossariesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesRequest(); } @@ -1077,27 +1187,27 @@ public static com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1222,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java index fd96eb4ac5b2..8395ca4fd025 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java @@ -1,44 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesRequestOrBuilder extends +public interface ListGlossariesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -47,10 +77,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -59,12 +92,14 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -85,10 +120,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -109,8 +147,8 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java index 05cfe9f7e96f..017627031f51 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesResponse) ListGlossariesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, + com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List glossaries_; /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -59,6 +81,8 @@ public java.util.List getGlossariesList( return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -66,11 +90,13 @@ public java.util.List getGlossariesList( * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -82,6 +108,8 @@ public int getGlossariesCount() { return glossaries_.size(); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -100,15 +130,17 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -116,6 +148,7 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -186,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesResponse other = (com.google.cloud.translate.v3.ListGlossariesResponse) obj; + com.google.cloud.translate.v3.ListGlossariesResponse other = + (com.google.cloud.translate.v3.ListGlossariesResponse) obj; - if (!getGlossariesList() - .equals(other.getGlossariesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getGlossariesList().equals(other.getGlossariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,131 +265,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesResponse) com.google.cloud.translate.v3.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, + com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -396,14 +431,18 @@ public com.google.cloud.translate.v3.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3.ListGlossariesResponse result = new com.google.cloud.translate.v3.ListGlossariesResponse(this); + com.google.cloud.translate.v3.ListGlossariesResponse result = + new com.google.cloud.translate.v3.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.ListGlossariesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -426,38 +465,39 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse)other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +505,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) + return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -484,9 +525,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse ot glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGlossariesFieldBuilder() : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGlossariesFieldBuilder() + : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -523,30 +565,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.Glossary m = - input.readMessage( - com.google.cloud.translate.v3.Glossary.parser(), - extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3.Glossary m = + input.readMessage( + com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +600,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossariesBuilder_; + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> + glossariesBuilder_; /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -585,6 +636,8 @@ public java.util.List getGlossariesList( } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -599,6 +652,8 @@ public int getGlossariesCount() { } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -613,14 +668,15 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder setGlossaries( - int index, com.google.cloud.translate.v3.Glossary value) { + public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +690,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -652,6 +710,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -672,14 +732,15 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary value) { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries( - int index, com.google.cloud.translate.v3.Glossary value) { + public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +754,15 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries( - com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); glossaries_.add(builderForValue.build()); @@ -711,6 +773,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -729,6 +793,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -739,8 +805,7 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -748,6 +813,8 @@ public Builder addAllGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -765,6 +832,8 @@ public Builder clearGlossaries() { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -782,39 +851,44 @@ public Builder removeGlossaries(int index) { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder( - int index) { + public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder(int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); } else { + return glossaries_.get(index); + } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +896,8 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -829,42 +905,48 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder().addBuilder( - com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder() + .addBuilder(com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder( - int index) { - return getGlossariesFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int index) { + return getGlossariesFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( - glossaries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + glossariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder>( + glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -872,6 +954,8 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -879,13 +963,13 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +978,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -901,15 +987,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1002,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -924,18 +1011,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -943,6 +1034,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1044,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -959,21 +1053,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1079,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesResponse) private static final com.google.cloud.translate.v3.ListGlossariesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesResponse(); } @@ -997,27 +1093,27 @@ public static com.google.cloud.translate.v3.ListGlossariesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java index 29c4dd7cf828..8b89b523c5be 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesResponseOrBuilder extends +public interface ListGlossariesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List - getGlossariesList(); + java.util.List getGlossariesList(); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -25,6 +44,8 @@ public interface ListGlossariesResponseOrBuilder extends */ com.google.cloud.translate.v3.Glossary getGlossaries(int index); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -33,25 +54,30 @@ public interface ListGlossariesResponseOrBuilder extends */ int getGlossariesCount(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( - int index); + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -59,10 +85,13 @@ com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -70,8 +99,8 @@ com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java similarity index 100% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java similarity index 88% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java index deaa8f9097e5..cdc55677ab0c 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, + com.google.cloud.translate.v3.OutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -159,6 +185,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -166,6 +193,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -241,16 +270,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -330,12 +362,13 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -347,8 +380,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -362,8 +394,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -373,18 +406,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.OutputConfig other = (com.google.cloud.translate.v3.OutputConfig) obj;
+    com.google.cloud.translate.v3.OutputConfig other =
+        (com.google.cloud.translate.v3.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -413,132 +446,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.OutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.OutputConfig) com.google.cloud.translate.v3.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, + com.google.cloud.translate.v3.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.OutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override @@ -573,8 +610,11 @@ public com.google.cloud.translate.v3.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.OutputConfig buildPartial() { - com.google.cloud.translate.v3.OutputConfig result = new com.google.cloud.translate.v3.OutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.OutputConfig result = + new com.google.cloud.translate.v3.OutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -587,8 +627,7 @@ private void buildPartial0(com.google.cloud.translate.v3.OutputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -597,38 +636,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.OutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -638,13 +678,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.translate.v3.OutputConfig other) { if (other == com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -672,19 +714,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -694,12 +736,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -712,8 +754,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -789,6 +836,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -796,6 +844,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -871,6 +921,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -888,6 +939,8 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -978,6 +1031,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1066,6 +1121,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1144,10 +1201,13 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -1163,6 +1223,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1256,6 +1318,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1336,6 +1400,8 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1424,6 +1490,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1501,14 +1569,19 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3.GcsDestination,
+            com.google.cloud.translate.v3.GcsDestination.Builder,
+            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsDestination,
+                com.google.cloud.translate.v3.GcsDestination.Builder,
+                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1518,9 +1591,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1530,12 +1603,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.OutputConfig)
   private static final com.google.cloud.translate.v3.OutputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.OutputConfig();
   }
@@ -1544,27 +1617,27 @@ public static com.google.cloud.translate.v3.OutputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public OutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public OutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1579,6 +1652,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
similarity index 94%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
index ebbf02b24155..e5a9617a4dd6 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface OutputConfigOrBuilder extends
+public interface OutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -83,10 +101,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -162,10 +183,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
index 1fd9d3dc0283..ae1b11b64191 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
  */
-public final class SupportedLanguage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguage)
     SupportedLanguageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -27,28 +45,32 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3.SupportedLanguage.class,
+            com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
+   *
+   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -81,16 +105,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -99,15 +122,19 @@ public java.lang.String getLanguageCode() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -116,30 +143,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -150,11 +177,14 @@ public java.lang.String getDisplayName() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** + * + * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -165,11 +195,14 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** + * + * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -178,6 +211,7 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +223,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -219,12 +252,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +265,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.SupportedLanguage other = (com.google.cloud.translate.v3.SupportedLanguage) obj; + com.google.cloud.translate.v3.SupportedLanguage other = + (com.google.cloud.translate.v3.SupportedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getSupportSource() - != other.getSupportSource()) return false; - if (getSupportTarget() - != other.getSupportTarget()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getSupportSource() != other.getSupportSource()) return false; + if (getSupportTarget() != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,109 +293,112 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -375,33 +406,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguage)
       com.google.cloud.translate.v3.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3.SupportedLanguage.class,
+              com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.SupportedLanguage.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -435,8 +465,11 @@ public com.google.cloud.translate.v3.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3.SupportedLanguage result = new com.google.cloud.translate.v3.SupportedLanguage(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.SupportedLanguage result =
+          new com.google.cloud.translate.v3.SupportedLanguage(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -461,38 +494,39 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguage resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage)other);
+        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -500,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance())
+        return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -543,32 +578,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              supportSource_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              supportTarget_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                supportSource_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                supportTarget_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -578,10 +618,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
+     *
+     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -590,13 +633,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -605,6 +648,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -613,15 +658,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -629,6 +673,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -637,18 +683,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -657,6 +707,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -666,6 +717,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -674,12 +727,14 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -689,19 +744,21 @@ public Builder setLanguageCodeBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -710,21 +767,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -732,30 +790,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -765,18 +830,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -784,13 +853,16 @@ public Builder setDisplayNameBytes( return this; } - private boolean supportSource_ ; + private boolean supportSource_; /** + * + * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -798,11 +870,14 @@ public boolean getSupportSource() { return supportSource_; } /** + * + * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; + * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -814,11 +889,14 @@ public Builder setSupportSource(boolean value) { return this; } /** + * + * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; + * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -828,13 +906,16 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_ ; + private boolean supportTarget_; /** + * + * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -842,11 +923,14 @@ public boolean getSupportTarget() { return supportTarget_; } /** + * + * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; + * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -858,11 +942,14 @@ public Builder setSupportTarget(boolean value) { return this; } /** + * + * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; + * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -871,9 +958,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguage) private static final com.google.cloud.translate.v3.SupportedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguage(); } @@ -897,27 +984,27 @@ public static com.google.cloud.translate.v3.SupportedLanguage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,6 +1019,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java index 558c0e71e25a..37c368f31ecf 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface SupportedLanguageOrBuilder extends +public interface SupportedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -16,10 +34,13 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -28,49 +49,60 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ boolean getSupportSource(); /** + * + * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java index ee010be134cc..72b8b288fe39 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ -public final class SupportedLanguages extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguages) SupportedLanguagesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, + com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -59,6 +81,8 @@ public java.util.List getLangua
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -67,11 +91,13 @@ public java.util.List getLangua
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -104,12 +134,12 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
-      int index) {
+  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +151,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +165,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +175,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.SupportedLanguages other = (com.google.cloud.translate.v3.SupportedLanguages) obj;
+    com.google.cloud.translate.v3.SupportedLanguages other =
+        (com.google.cloud.translate.v3.SupportedLanguages) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -176,132 +204,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguages) com.google.cloud.translate.v3.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, + com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3.SupportedLanguages.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override @@ -338,14 +370,18 @@ public com.google.cloud.translate.v3.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3.SupportedLanguages result = new com.google.cloud.translate.v3.SupportedLanguages(this); + com.google.cloud.translate.v3.SupportedLanguages result = + new com.google.cloud.translate.v3.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.SupportedLanguages result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +401,39 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguages resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages)other); + return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages) other); } else { super.mergeFrom(other); return this; @@ -404,7 +441,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +461,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +496,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +526,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3.SupportedLanguage, + com.google.cloud.translate.v3.SupportedLanguage.Builder, + com.google.cloud.translate.v3.SupportedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -515,6 +564,8 @@ public java.util.List getLangua
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -530,6 +581,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -545,6 +598,8 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -552,8 +607,7 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder setLanguages(
-        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -567,6 +621,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -586,6 +642,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -607,6 +665,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -614,8 +674,7 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder addLanguages(
-        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -629,6 +688,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -648,6 +709,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -667,6 +730,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -678,8 +743,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +751,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -705,6 +771,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -723,6 +791,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -730,11 +800,12 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -745,11 +816,14 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuild
     public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -757,8 +831,8 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +840,8 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -774,10 +850,12 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -785,12 +863,13 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(
-        int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(int index) {
+      return getLanguagesFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -798,27 +877,30 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> 
+            com.google.cloud.translate.v3.SupportedLanguage,
+            com.google.cloud.translate.v3.SupportedLanguage.Builder,
+            com.google.cloud.translate.v3.SupportedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.SupportedLanguage,
+                com.google.cloud.translate.v3.SupportedLanguage.Builder,
+                com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +910,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguages)
   private static final com.google.cloud.translate.v3.SupportedLanguages DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguages();
   }
@@ -842,27 +924,27 @@ public static com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SupportedLanguages parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SupportedLanguages parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +959,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
index 098702c63e9f..6e3c2f2f1e5b 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface SupportedLanguagesOrBuilder extends
+public interface SupportedLanguagesOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -15,9 +33,10 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -27,6 +46,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -36,6 +57,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -43,9 +66,11 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -53,6 +78,5 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
similarity index 70%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
index 9d623a7afd43..b2a85bba7e18 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -29,40 +47,43 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, + com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -79,6 +100,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -87,14 +109,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -111,16 +134,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -129,9 +151,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -142,6 +167,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -150,14 +176,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -168,16 +195,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -186,15 +212,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -203,30 +233,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -237,11 +267,16 @@ public java.lang.String getTargetLanguageCode() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -249,32 +284,48 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -283,7 +334,10 @@ public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInp
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -291,6 +345,8 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -299,14 +355,21 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -315,17 +378,25 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -343,6 +414,7 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -351,14 +423,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -376,16 +449,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -396,13 +468,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -410,60 +487,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -479,20 +572,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -512,6 +606,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -527,17 +623,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -553,11 +651,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -565,9 +663,12 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object customizedAttribution_ = "";
   /**
+   *
+   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -576,6 +677,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ @java.lang.Override @@ -584,14 +686,15 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -600,16 +703,15 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -620,12 +722,15 @@ public java.lang.String getCustomizedAttribution() { public static final int IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER = 11; private boolean isTranslateNativePdfOnly_ = false; /** + * + * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -636,6 +741,8 @@ public boolean getIsTranslateNativePdfOnly() { public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER = 12; private boolean enableShadowRemovalNativePdf_ = false; /** + * + * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -643,7 +750,9 @@ public boolean getIsTranslateNativePdfOnly() {
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -652,6 +761,7 @@ public boolean getEnableShadowRemovalNativePdf() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -663,8 +773,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -686,12 +795,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (glossaryConfig_ != null) { output.writeMessage(7, getGlossaryConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customizedAttribution_); } @@ -720,40 +825,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_); } if (documentInputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDocumentInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig()); } if (documentOutputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDocumentOutputConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getGlossaryConfig()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); } if (isTranslateNativePdfOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, isTranslateNativePdfOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, isTranslateNativePdfOnly_); } if (enableShadowRemovalNativePdf_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, enableShadowRemovalNativePdf_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableShadowRemovalNativePdf_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -763,44 +865,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentRequest other = (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; + com.google.cloud.translate.v3.TranslateDocumentRequest other = + (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false; if (hasDocumentInputConfig()) { - if (!getDocumentInputConfig() - .equals(other.getDocumentInputConfig())) return false; + if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false; } if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false; if (hasDocumentOutputConfig()) { - if (!getDocumentOutputConfig() - .equals(other.getDocumentOutputConfig())) return false; + if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false; } - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getCustomizedAttribution() - .equals(other.getCustomizedAttribution())) return false; - if (getIsTranslateNativePdfOnly() - != other.getIsTranslateNativePdfOnly()) return false; - if (getEnableShadowRemovalNativePdf() - != other.getEnableShadowRemovalNativePdf()) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; + if (getIsTranslateNativePdfOnly() != other.getIsTranslateNativePdfOnly()) return false; + if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -839,164 +931,166 @@ public int hashCode() { hash = (37 * hash) + CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER; hash = (53 * hash) + getCustomizedAttribution().hashCode(); hash = (37 * hash) + IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsTranslateNativePdfOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsTranslateNativePdfOnly()); hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableShadowRemovalNativePdf()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentRequest) com.google.cloud.translate.v3.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, + com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1028,9 +1122,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1049,8 +1143,11 @@ public com.google.cloud.translate.v3.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentRequest result = new com.google.cloud.translate.v3.TranslateDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.TranslateDocumentRequest result = + new com.google.cloud.translate.v3.TranslateDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1067,22 +1164,23 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = + documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = + documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1103,38 +1201,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -1142,7 +1241,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1172,8 +1272,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1212,77 +1311,87 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 88: { - isTranslateNativePdfOnly_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 88 - case 96: { - enableShadowRemovalNativePdf_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: + { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 88: + { + isTranslateNativePdfOnly_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + enableShadowRemovalNativePdf_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1292,10 +1401,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1312,13 +1424,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1327,6 +1439,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1343,15 +1457,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1359,6 +1472,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1375,18 +1490,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1403,6 +1522,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1412,6 +1532,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1428,12 +1550,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1443,6 +1567,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1453,13 +1579,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1468,6 +1594,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1478,15 +1606,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1494,6 +1621,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1504,18 +1633,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1526,6 +1659,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1535,6 +1669,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1545,12 +1681,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1560,19 +1698,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1581,21 +1721,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1603,30 +1744,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1636,18 +1784,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1657,39 +1809,58 @@ public Builder setTargetLanguageCodeBytes( private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; + com.google.cloud.translate.v3.DocumentInputConfig, + com.google.cloud.translate.v3.DocumentInputConfig.Builder, + com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> + documentInputConfigBuilder_; /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { @@ -1705,11 +1876,15 @@ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInpu return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3.DocumentInputConfig.Builder builderForValue) { @@ -1723,17 +1898,23 @@ public Builder setDocumentInputConfig( return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig( + com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - documentInputConfig_ != null && - documentInputConfig_ != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && documentInputConfig_ != null + && documentInputConfig_ + != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1746,11 +1927,15 @@ public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3.DocumentIn return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1763,48 +1948,66 @@ public Builder clearDocumentInputConfig() { return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfig.Builder + getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null ? - com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentInputConfig, + com.google.cloud.translate.v3.DocumentInputConfig.Builder, + com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), - getParentForChildren(), - isClean()); + documentInputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentInputConfig, + com.google.cloud.translate.v3.DocumentInputConfig.Builder, + com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), getParentForChildren(), isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1812,8 +2015,13 @@ public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInp private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; + com.google.cloud.translate.v3.DocumentOutputConfig, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> + documentOutputConfigBuilder_; /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1822,13 +2030,18 @@ public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInp
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1837,17 +2050,24 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1856,9 +2076,12 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig( + com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1872,6 +2095,8 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOut return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1880,7 +2105,9 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOut
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3.DocumentOutputConfig.Builder builderForValue) { @@ -1894,6 +2121,8 @@ public Builder setDocumentOutputConfig( return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1902,13 +2131,17 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig( + com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - documentOutputConfig_ != null && - documentOutputConfig_ != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && documentOutputConfig_ != null + && documentOutputConfig_ + != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -1921,6 +2154,8 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentO return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1929,7 +2164,9 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentO
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1942,6 +2179,8 @@ public Builder clearDocumentOutputConfig() { return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1950,14 +2189,19 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfig.Builder + getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1966,17 +2210,23 @@ public com.google.cloud.translate.v3.DocumentOutputConfig.Builder getDocumentOut
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null ? - com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1985,17 +2235,22 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentOutputConfig, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), - getParentForChildren(), - isClean()); + documentOutputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentOutputConfig, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), getParentForChildren(), isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2003,6 +2258,8 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2020,13 +2277,13 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2035,6 +2292,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2052,15 +2311,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -2068,6 +2326,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2085,18 +2345,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2114,6 +2378,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -2123,6 +2388,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2140,12 +2407,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2155,47 +2424,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2209,13 +2498,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2229,19 +2522,25 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2254,13 +2553,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2273,74 +2576,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2349,10 +2668,13 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2368,20 +2690,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2401,6 +2724,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2416,17 +2741,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2442,23 +2769,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2473,23 +2802,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2504,17 +2832,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2529,16 +2860,16 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object customizedAttribution_ = "";
     /**
+     *
+     *
      * 
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2547,13 +2878,13 @@ public Builder putAllLabels(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -2562,6 +2893,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2570,15 +2903,14 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -2586,6 +2918,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2594,18 +2928,22 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttribution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2614,6 +2952,7 @@ public Builder setCustomizedAttribution(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -2623,6 +2962,8 @@ public Builder clearCustomizedAttribution() { return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2631,12 +2972,14 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; @@ -2644,14 +2987,18 @@ public Builder setCustomizedAttributionBytes( return this; } - private boolean isTranslateNativePdfOnly_ ; + private boolean isTranslateNativePdfOnly_; /** + * + * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -2659,12 +3006,16 @@ public boolean getIsTranslateNativePdfOnly() { return isTranslateNativePdfOnly_; } /** + * + * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The isTranslateNativePdfOnly to set. * @return This builder for chaining. */ @@ -2676,12 +3027,16 @@ public Builder setIsTranslateNativePdfOnly(boolean value) { return this; } /** + * + * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearIsTranslateNativePdfOnly() { @@ -2691,8 +3046,10 @@ public Builder clearIsTranslateNativePdfOnly() { return this; } - private boolean enableShadowRemovalNativePdf_ ; + private boolean enableShadowRemovalNativePdf_; /** + * + * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -2700,7 +3057,9 @@ public Builder clearIsTranslateNativePdfOnly() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -2708,6 +3067,8 @@ public boolean getEnableShadowRemovalNativePdf() { return enableShadowRemovalNativePdf_; } /** + * + * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -2715,7 +3076,9 @@ public boolean getEnableShadowRemovalNativePdf() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableShadowRemovalNativePdf to set. * @return This builder for chaining. */ @@ -2727,6 +3090,8 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) { return this; } /** + * + * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -2734,7 +3099,9 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableShadowRemovalNativePdf() { @@ -2743,9 +3110,9 @@ public Builder clearEnableShadowRemovalNativePdf() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2755,12 +3122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentRequest) private static final com.google.cloud.translate.v3.TranslateDocumentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentRequest(); } @@ -2769,27 +3136,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2804,6 +3171,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java index d3d93011bdfa..80203b939fbd 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentRequestOrBuilder extends +public interface TranslateDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -24,10 +42,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -44,12 +65,14 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -60,10 +83,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -74,61 +100,82 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -137,11 +184,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -150,11 +202,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -163,11 +220,15 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -185,10 +246,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -206,45 +270,61 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -261,6 +341,8 @@ public interface TranslateDocumentRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -275,15 +357,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -298,9 +378,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -316,11 +397,13 @@ boolean containsLabels(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -335,10 +418,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -347,10 +431,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -359,23 +446,28 @@ java.lang.String getLabelsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString - getCustomizedAttributionBytes(); + com.google.protobuf.ByteString getCustomizedAttributionBytes(); /** + * + * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isTranslateNativePdfOnly. */ boolean getIsTranslateNativePdfOnly(); /** + * + * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -383,7 +475,9 @@ java.lang.String getLabelsOrThrow(
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableShadowRemovalNativePdf. */ boolean getEnableShadowRemovalNativePdf(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java similarity index 69% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java index db06f3d6a2eb..67518f981181 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, + com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -58,18 +80,25 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } /** + * + * *
    * Translated document.
    * 
@@ -77,20 +106,27 @@ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation( * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { - return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -98,37 +134,52 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -141,6 +192,7 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDoc
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -149,14 +201,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -169,16 +222,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -189,11 +241,14 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -201,18 +256,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -220,11 +282,15 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,8 +302,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -260,19 +325,18 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossaryDocumentTranslation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,29 +346,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentResponse other = (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3.TranslateDocumentResponse other = + (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation() - .equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation() - .equals(other.getGlossaryDocumentTranslation())) return false; + if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) + return false; } - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -337,131 +399,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentResponse) com.google.cloud.translate.v3.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, + com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override @@ -507,8 +574,11 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentResponse result = new com.google.cloud.translate.v3.TranslateDocumentResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.TranslateDocumentResponse result = + new com.google.cloud.translate.v3.TranslateDocumentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -516,22 +586,23 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = + documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = + glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +610,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentRespon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse)other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse) other); } else { super.mergeFrom(other); return this; @@ -578,7 +650,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentResponse other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) + return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -619,38 +692,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,38 +734,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> documentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + documentTranslationBuilder_; /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** + * + * *
      * Translated document.
      * 
@@ -712,6 +800,8 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3.DocumentTran return this; } /** + * + * *
      * Translated document.
      * 
@@ -730,17 +820,21 @@ public Builder setDocumentTranslation( return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeDocumentTranslation( + com.google.cloud.translate.v3.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - documentTranslation_ != null && - documentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && documentTranslation_ != null + && documentTranslation_ + != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -753,6 +847,8 @@ public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTr return this; } /** + * + * *
      * Translated document.
      * 
@@ -770,33 +866,42 @@ public Builder clearDocumentTranslation() { return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder + getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null ? - com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } } /** + * + * *
      * Translated document.
      * 
@@ -804,14 +909,17 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTra * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getDocumentTranslation(), - getParentForChildren(), - isClean()); + documentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getDocumentTranslation(), getParentForChildren(), isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -819,47 +927,64 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTra private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + glossaryDocumentTranslationBuilder_; /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation( + com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -873,13 +998,16 @@ public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3.Docu return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3.DocumentTranslation.Builder builderForValue) { @@ -893,19 +1021,24 @@ public Builder setGlossaryDocumentTranslation( return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation( + com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossaryDocumentTranslation_ != null && - glossaryDocumentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossaryDocumentTranslation_ != null + && glossaryDocumentTranslation_ + != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -918,13 +1051,16 @@ public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3.Do return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -937,54 +1073,69 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder + getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null ? - com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), - getParentForChildren(), - isClean()); + glossaryDocumentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -992,6 +1143,8 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDoc private java.lang.Object model_ = ""; /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1004,13 +1157,13 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDoc
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1019,6 +1172,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1031,15 +1186,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1047,6 +1201,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1059,18 +1215,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1083,6 +1243,7 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1092,6 +1253,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1104,12 +1267,14 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1119,41 +1284,55 @@ public Builder setModelBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1167,6 +1346,8 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1185,17 +1366,21 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1208,6 +1393,8 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1225,33 +1412,42 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1259,21 +1455,24 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,12 +1482,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentResponse) private static final com.google.cloud.translate.v3.TranslateDocumentResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentResponse(); } @@ -1297,27 +1496,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java similarity index 78% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java index 12df582e1665..8bbcee6311b6 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentResponseOrBuilder extends +public interface TranslateDocumentResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
@@ -35,39 +59,53 @@ public interface TranslateDocumentResponseOrBuilder extends com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -80,10 +118,13 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -96,30 +137,38 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java index 19d44926cff7..fd6a308ec202 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -11,43 +28,48 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
+            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
+   *
+   *
    * 
    * Required. The `glossary` to be applied for this translation.
    *
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ @java.lang.Override @@ -66,14 +89,15 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** + * + * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -84,16 +108,15 @@ public java.lang.String getGlossary() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -104,12 +127,15 @@ public java.lang.String getGlossary() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** + * + * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -118,6 +144,7 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -150,8 +176,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -161,17 +186,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = + (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; - if (!getGlossary() - .equals(other.getGlossary())) return false; - if (getIgnoreCase() - != other.getIgnoreCase()) return false; + if (!getGlossary().equals(other.getGlossary())) return false; + if (getIgnoreCase() != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,106 +210,111 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -293,33 +322,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
+              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -330,9 +358,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
@@ -351,8 +379,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result =
+          new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -371,38 +402,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextGlossaryCo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig)other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -410,7 +442,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextGlossaryConfig other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance())
+        return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -445,22 +478,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              glossary_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              ignoreCase_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                glossary_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                ignoreCase_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -470,10 +506,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
+     *
+     *
      * 
      * Required. The `glossary` to be applied for this translation.
      *
@@ -484,13 +523,13 @@ public Builder mergeFrom(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -499,6 +538,8 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -509,15 +550,14 @@ public java.lang.String getGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -525,6 +565,8 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -535,18 +577,22 @@ public java.lang.String getGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -557,6 +603,7 @@ public Builder setGlossary(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -566,6 +613,8 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -576,12 +625,14 @@ public Builder clearGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -589,14 +640,17 @@ public Builder setGlossaryBytes( return this; } - private boolean ignoreCase_ ; + private boolean ignoreCase_; /** + * + * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -604,12 +658,15 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** + * + * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -621,12 +678,15 @@ public Builder setIgnoreCase(boolean value) { return this; } /** + * + * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -635,9 +695,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -647,12 +707,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) private static final com.google.cloud.translate.v3.TranslateTextGlossaryConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(); } @@ -661,27 +721,27 @@ public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -696,6 +756,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java index d0ab32490d3d..20e7f1bacc22 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateTextGlossaryConfigOrBuilder extends +public interface TranslateTextGlossaryConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -18,10 +36,13 @@ public interface TranslateTextGlossaryConfigOrBuilder extends
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ java.lang.String getGlossary(); /** + * + * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -32,18 +53,21 @@ public interface TranslateTextGlossaryConfigOrBuilder extends
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - com.google.protobuf.ByteString - getGlossaryBytes(); + com.google.protobuf.ByteString getGlossaryBytes(); /** + * + * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java index 54bf85258daf..6efb315acac1 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java @@ -1,27 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ -public final class TranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextRequest) TranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateTextRequest() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -31,41 +48,44 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, + com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -73,13 +93,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { return contents_; } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -87,12 +109,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -100,6 +125,7 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -107,6 +133,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -114,24 +142,28 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -140,30 +172,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -172,9 +204,12 @@ public java.lang.String getMimeType() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -184,6 +219,7 @@ public java.lang.String getMimeType() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -192,14 +228,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -209,16 +246,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -227,15 +263,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -244,30 +284,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -276,9 +316,12 @@ public java.lang.String getTargetLanguageCode() { } public static final int PARENT_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -296,7 +339,10 @@ public java.lang.String getTargetLanguageCode() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -305,14 +351,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -330,17 +377,18 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -349,9 +397,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -372,6 +423,7 @@ public java.lang.String getParent() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -380,14 +432,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -408,16 +461,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -428,13 +480,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -442,60 +499,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -511,20 +584,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -544,6 +618,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -559,17 +635,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -585,11 +663,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -597,6 +675,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -608,8 +687,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -631,12 +709,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        10);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
     getUnknownFields().writeTo(output);
   }
 
@@ -667,21 +741,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -691,32 +764,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextRequest other = (com.google.cloud.translate.v3.TranslateTextRequest) obj;
-
-    if (!getContentsList()
-        .equals(other.getContentsList())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode()
-        .equals(other.getTargetLanguageCode())) return false;
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
+    com.google.cloud.translate.v3.TranslateTextRequest other =
+        (com.google.cloud.translate.v3.TranslateTextRequest) obj;
+
+    if (!getContentsList().equals(other.getContentsList())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig()
-          .equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -756,159 +822,160 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextRequest) com.google.cloud.translate.v3.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, + com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateTextRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -924,9 +991,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @java.lang.Override @@ -945,8 +1012,11 @@ public com.google.cloud.translate.v3.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.TranslateTextRequest result = new com.google.cloud.translate.v3.TranslateTextRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.TranslateTextRequest result = + new com.google.cloud.translate.v3.TranslateTextRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -973,9 +1043,8 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -987,38 +1056,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1026,7 +1096,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) + return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1065,8 +1136,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest othe if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1094,59 +1164,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1156,10 +1235,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1167,6 +1248,8 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1174,14 +1257,16 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { contents_.makeImmutable(); return contents_; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1189,12 +1274,15 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1202,6 +1290,7 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1209,6 +1298,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1216,14 +1307,16 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1231,13 +1324,15 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1245,6 +1340,8 @@ public Builder setContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1252,12 +1349,14 @@ public Builder setContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1265,6 +1364,8 @@ public Builder addContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1272,19 +1373,20 @@ public Builder addContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents( - java.lang.Iterable values) { + public Builder addAllContents(java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1292,16 +1394,19 @@ public Builder addAllContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1309,12 +1414,14 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1325,19 +1432,21 @@ public Builder addContentsBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1346,21 +1455,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1368,30 +1478,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1401,18 +1518,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1422,6 +1543,8 @@ public Builder setMimeTypeBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1431,13 +1554,13 @@ public Builder setMimeTypeBytes(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1446,6 +1569,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1455,15 +1580,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1471,6 +1595,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1480,18 +1606,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1501,6 +1631,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1510,6 +1641,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1519,12 +1652,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1534,19 +1669,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1555,21 +1692,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1577,30 +1715,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1610,18 +1755,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1631,6 +1780,8 @@ public Builder setTargetLanguageCodeBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1648,14 +1799,16 @@ public Builder setTargetLanguageCodeBytes(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1664,6 +1817,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1681,16 +1836,17 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1698,6 +1854,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1715,19 +1873,25 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1745,7 +1909,10 @@ public Builder setParent(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1755,6 +1922,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1772,13 +1941,17 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1788,6 +1961,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1808,13 +1983,13 @@ public Builder setParentBytes(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1823,6 +1998,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1843,15 +2020,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1859,6 +2035,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1879,18 +2057,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1911,6 +2093,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1920,6 +2103,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1940,12 +2125,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -1955,47 +2142,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2009,13 +2216,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2029,19 +2240,25 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2054,13 +2271,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2073,74 +2294,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2149,10 +2386,13 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2168,20 +2408,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2201,6 +2442,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2216,17 +2459,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2242,23 +2487,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2273,23 +2520,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2304,17 +2550,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2329,16 +2578,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2348,12 +2595,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextRequest)
   private static final com.google.cloud.translate.v3.TranslateTextRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextRequest();
   }
@@ -2362,27 +2609,27 @@ public static com.google.cloud.translate.v3.TranslateTextRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2397,6 +2644,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
index ae16c8dae3d5..714f465ced31 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextRequestOrBuilder extends
+public interface TranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -15,11 +33,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - java.util.List - getContentsList(); + java.util.List getContentsList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -27,10 +47,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ int getContentsCount(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -38,11 +61,14 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -50,35 +76,42 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString - getContentsBytes(int index); + com.google.protobuf.ByteString getContentsBytes(int index); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -88,10 +121,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -101,34 +137,41 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -146,11 +189,16 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -168,13 +216,17 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -195,10 +247,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -219,45 +274,61 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -274,6 +345,8 @@ public interface TranslateTextRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -288,15 +361,13 @@ public interface TranslateTextRequestOrBuilder extends
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -311,9 +382,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -329,11 +401,13 @@ boolean containsLabels(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -348,6 +422,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
similarity index 79%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
index 9e404b27f9ce..84d6f44ae86f 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
@@ -1,20 +1,34 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-/**
- * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
- */
-public final class TranslateTextResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
+public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -22,28 +36,32 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextResponse.class,
+            com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -57,6 +75,8 @@ public java.util.List getTranslations
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -66,11 +86,13 @@ public java.util.List getTranslations
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -84,6 +106,8 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -97,6 +121,8 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
     return translations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -106,15 +132,17 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
-      int index) {
+  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
     return translations_.get(index);
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -130,6 +158,8 @@ public java.util.List getGlossaryTran
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -141,11 +171,13 @@ public java.util.List getGlossaryTran
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -161,6 +193,8 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -176,6 +210,8 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
     return glossaryTranslations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -193,6 +229,7 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -204,8 +241,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -222,12 +258,11 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, glossaryTranslations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -237,17 +272,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextResponse other = (com.google.cloud.translate.v3.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3.TranslateTextResponse other =
+        (com.google.cloud.translate.v3.TranslateTextResponse) obj;
 
-    if (!getTranslationsList()
-        .equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList()
-        .equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,127 +307,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextResponse)
       com.google.cloud.translate.v3.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextResponse.class,
+              com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +450,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -437,14 +471,18 @@ public com.google.cloud.translate.v3.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextResponse result = new com.google.cloud.translate.v3.TranslateTextResponse(this);
+      com.google.cloud.translate.v3.TranslateTextResponse result =
+          new com.google.cloud.translate.v3.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.translate.v3.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.translate.v3.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -473,38 +511,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextResponse r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,7 +551,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())
+        return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -531,9 +571,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTranslationsFieldBuilder() : null;
+            translationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTranslationsFieldBuilder()
+                    : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -557,9 +598,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getGlossaryTranslationsFieldBuilder() : null;
+            glossaryTranslationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getGlossaryTranslationsFieldBuilder()
+                    : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -591,38 +633,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.translate.v3.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3.Translation.parser(),
-                      extensionRegistry);
-              if (translationsBuilder_ == null) {
-                ensureTranslationsIsMutable();
-                translations_.add(m);
-              } else {
-                translationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 26: {
-              com.google.cloud.translate.v3.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3.Translation.parser(),
-                      extensionRegistry);
-              if (glossaryTranslationsBuilder_ == null) {
-                ensureGlossaryTranslationsIsMutable();
-                glossaryTranslations_.add(m);
-              } else {
-                glossaryTranslationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.translate.v3.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
+                if (translationsBuilder_ == null) {
+                  ensureTranslationsIsMutable();
+                  translations_.add(m);
+                } else {
+                  translationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 26:
+              {
+                com.google.cloud.translate.v3.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
+                if (glossaryTranslationsBuilder_ == null) {
+                  ensureGlossaryTranslationsIsMutable();
+                  glossaryTranslations_.add(m);
+                } else {
+                  glossaryTranslationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -632,21 +675,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List translations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ = new java.util.ArrayList(translations_);
+        translations_ =
+            new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> translationsBuilder_;
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
+        translationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -663,6 +714,8 @@ public java.util.List getTranslations
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -679,6 +732,8 @@ public int getTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -695,6 +750,8 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -703,8 +760,7 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder setTranslations(
-        int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder setTranslations(int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -718,6 +774,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -738,6 +796,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -760,6 +820,8 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -768,8 +830,7 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder addTranslations(
-        int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder addTranslations(int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -783,6 +844,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -803,6 +866,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -823,6 +888,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -835,8 +902,7 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -844,6 +910,8 @@ public Builder addAllTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -863,6 +931,8 @@ public Builder clearTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -882,6 +952,8 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -890,11 +962,12 @@ public Builder removeTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(int index) {
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -903,14 +976,16 @@ public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);  } else {
+        return translations_.get(index);
+      } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -919,8 +994,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsOrBuilderList() {
+    public java.util.List
+        getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -928,6 +1003,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -937,10 +1014,12 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
     public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -949,12 +1028,13 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
-        int index) {
-      return getTranslationsFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(int index) {
+      return getTranslationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -963,38 +1043,49 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsBuilderList() {
+    public java.util.List
+        getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
-                translations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        translationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.Translation,
+                com.google.cloud.translate.v3.Translation.Builder,
+                com.google.cloud.translate.v3.TranslationOrBuilder>(
+                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
+        glossaryTranslations_ =
+            new java.util.ArrayList(
+                glossaryTranslations_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> glossaryTranslationsBuilder_;
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
+        glossaryTranslationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1013,6 +1104,8 @@ public java.util.List getGlossaryTran
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1031,6 +1124,8 @@ public int getGlossaryTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1049,6 +1144,8 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1074,6 +1171,8 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1096,6 +1195,8 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1120,6 +1221,8 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3.Translation
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1145,6 +1248,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1167,6 +1272,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1189,6 +1296,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1203,8 +1312,7 @@ public Builder addAllGlossaryTranslations(
         java.lang.Iterable values) {
       if (glossaryTranslationsBuilder_ == null) {
         ensureGlossaryTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, glossaryTranslations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_);
         onChanged();
       } else {
         glossaryTranslationsBuilder_.addAllMessages(values);
@@ -1212,6 +1320,8 @@ public Builder addAllGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1233,6 +1343,8 @@ public Builder clearGlossaryTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1254,6 +1366,8 @@ public Builder removeGlossaryTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1269,6 +1383,8 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
       return getGlossaryTranslationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1282,11 +1398,14 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
     public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
         int index) {
       if (glossaryTranslationsBuilder_ == null) {
-        return glossaryTranslations_.get(index);  } else {
+        return glossaryTranslations_.get(index);
+      } else {
         return glossaryTranslationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1297,8 +1416,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List 
-         getGlossaryTranslationsOrBuilderList() {
+    public java.util.List
+        getGlossaryTranslationsOrBuilderList() {
       if (glossaryTranslationsBuilder_ != null) {
         return glossaryTranslationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1306,6 +1425,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1317,10 +1438,12 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder() {
-      return getGlossaryTranslationsFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1333,10 +1456,12 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder(
         int index) {
-      return getGlossaryTranslationsFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1347,16 +1472,22 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List 
-         getGlossaryTranslationsBuilderList() {
+    public java.util.List
+        getGlossaryTranslationsBuilderList() {
       return getGlossaryTranslationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
         getGlossaryTranslationsFieldBuilder() {
       if (glossaryTranslationsBuilder_ == null) {
-        glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
+        glossaryTranslationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.Translation,
+                com.google.cloud.translate.v3.Translation.Builder,
+                com.google.cloud.translate.v3.TranslationOrBuilder>(
                 glossaryTranslations_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1365,9 +1496,9 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
       }
       return glossaryTranslationsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1377,12 +1508,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextResponse)
   private static final com.google.cloud.translate.v3.TranslateTextResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextResponse();
   }
@@ -1391,27 +1522,27 @@ public static com.google.cloud.translate.v3.TranslateTextResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateTextResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateTextResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1426,6 +1557,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
index 8a9c20edf4b4..33400af51a8f 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextResponseOrBuilder extends
+public interface TranslateTextResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -16,9 +34,10 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List 
-      getTranslationsList();
+  java.util.List getTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -29,6 +48,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   com.google.cloud.translate.v3.Translation getTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -39,6 +60,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   int getTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -47,9 +70,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List 
+  java.util.List
       getTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -58,10 +83,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -72,9 +98,10 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List 
-      getGlossaryTranslationsList();
+  java.util.List getGlossaryTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -87,6 +114,8 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    */
   com.google.cloud.translate.v3.Translation getGlossaryTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -99,6 +128,8 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    */
   int getGlossaryTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -109,9 +140,11 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List 
+  java.util.List
       getGlossaryTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -122,6 +155,5 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
index d3ee335b268b..d68563415ca9 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ -public final class Translation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Translation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Translation) TranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Translation() { translatedText_ = ""; model_ = ""; @@ -27,28 +45,32 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, + com.google.cloud.translate.v3.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string translated_text = 1; + * * @return The translatedText. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -79,16 +103,15 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTranslatedText() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -112,6 +138,7 @@ public java.lang.String getTranslatedText() {
    * 
* * string model = 2; + * * @return The model. */ @java.lang.Override @@ -120,14 +147,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -140,16 +168,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -158,9 +185,12 @@ public java.lang.String getModel() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -169,6 +199,7 @@ public java.lang.String getModel() {
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -177,14 +208,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -193,16 +225,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -213,11 +244,14 @@ public java.lang.String getDetectedLanguageCode() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -225,18 +259,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -244,11 +285,15 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -290,8 +334,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -304,23 +347,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3.Translation other = (com.google.cloud.translate.v3.Translation) obj; + com.google.cloud.translate.v3.Translation other = + (com.google.cloud.translate.v3.Translation) obj; - if (!getTranslatedText() - .equals(other.getTranslatedText())) return false; - if (!getModel() - .equals(other.getModel())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText().equals(other.getTranslatedText())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -348,132 +388,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Translation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Translation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Translation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Translation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Translation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Translation) com.google.cloud.translate.v3.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, + com.google.cloud.translate.v3.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3.Translation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override @@ -511,8 +555,11 @@ public com.google.cloud.translate.v3.Translation build() { @java.lang.Override public com.google.cloud.translate.v3.Translation buildPartial() { - com.google.cloud.translate.v3.Translation result = new com.google.cloud.translate.v3.Translation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Translation result = + new com.google.cloud.translate.v3.Translation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -529,9 +576,8 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +585,39 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Translation) { - return mergeFrom((com.google.cloud.translate.v3.Translation)other); + return mergeFrom((com.google.cloud.translate.v3.Translation) other); } else { super.mergeFrom(other); return this; @@ -623,34 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,10 +710,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object translatedText_ = ""; /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -671,13 +724,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; + * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -686,6 +739,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -693,15 +748,14 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -709,6 +763,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -716,18 +772,22 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -735,6 +795,7 @@ public Builder setTranslatedText(
      * 
* * string translated_text = 1; + * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -744,6 +805,8 @@ public Builder clearTranslatedText() { return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -751,12 +814,14 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -766,6 +831,8 @@ public Builder setTranslatedTextBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -778,13 +845,13 @@ public Builder setTranslatedTextBytes(
      * 
* * string model = 2; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -793,6 +860,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -805,15 +874,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -821,6 +889,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -833,18 +903,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -857,6 +931,7 @@ public Builder setModel(
      * 
* * string model = 2; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -866,6 +941,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -878,12 +955,14 @@ public Builder clearModel() {
      * 
* * string model = 2; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -893,6 +972,8 @@ public Builder setModelBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -901,13 +982,13 @@ public Builder setModelBytes(
      * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -916,6 +997,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -924,15 +1007,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -940,6 +1022,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -948,18 +1032,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -968,6 +1056,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 4; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -977,6 +1066,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -985,12 +1076,14 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1000,41 +1093,55 @@ public Builder setDetectedLanguageCodeBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,6 +1155,8 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1066,17 +1175,21 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1089,6 +1202,8 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1106,33 +1221,42 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1140,21 +1264,24 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,12 +1291,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Translation) private static final com.google.cloud.translate.v3.Translation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Translation(); } @@ -1178,27 +1305,27 @@ public static com.google.cloud.translate.v3.Translation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1340,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java index c583eea67e05..e282db3326fe 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslationOrBuilder extends +public interface TranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Translation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -15,10 +33,13 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The translatedText. */ java.lang.String getTranslatedText(); /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -26,12 +47,14 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString - getTranslatedTextBytes(); + com.google.protobuf.ByteString getTranslatedTextBytes(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -44,10 +67,13 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -60,12 +86,14 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -74,10 +102,13 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -86,30 +117,38 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java new file mode 100644 index 000000000000..51734e862e27 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java @@ -0,0 +1,1021 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Translation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/translate/v3/translation_" + + "service.proto\022\033google.cloud.translation." + + "v3\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032#g" + + "oogle/longrunning/operations.proto\032\037goog" + + "le/protobuf/timestamp.proto\"P\n\033Translate" + + "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" + + "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" + + "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" + + "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" + + "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" + + "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\005m" + + "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" + + "\0132=.google.cloud.translation.v3.Translat" + + "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" + + "\n\025TranslateTextResponse\022>\n\014translations\030" + + "\001 \003(\0132(.google.cloud.translation.v3.Tran" + + "slation\022G\n\025glossary_translations\030\003 \003(\0132(" + + ".google.cloud.translation.v3.Translation" + + "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" + + "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" + + "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" + + "le.cloud.translation.v3.TranslateTextGlo" + + "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" + + "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" + + "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" + + "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" + + "ation.v3.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" + + "nguages\030\001 \003(\0132-.google.cloud.translation" + + ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" + + "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" + + "locations.googleapis.com/Location\022#\n\025dis" + + "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" + + "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" + + "guages\030\001 \003(\0132..google.cloud.translation." + + "v3.SupportedLanguage\"p\n\021SupportedLanguag" + + "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" + + "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" + + "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" + + "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" + + "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" + + "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" + + "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" + + "estination\030\001 \001(\0132+.google.cloud.translat" + + "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" + + "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" + + "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" + + "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" + + "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" + + "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" + + "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" + + "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" + + "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" + + "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" + + "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" + + "\n\025document_input_config\030\004 \001(\01320.google.c" + + "loud.translation.v3.DocumentInputConfigB" + + "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." + + "google.cloud.translation.v3.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" + + "lossary_config\030\007 \001(\01328.google.cloud.tran" + + "slation.v3.TranslateTextGlossaryConfigB\004" + + "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" + + "slation.v3.TranslateDocumentRequest.Labe" + + "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" + + "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" + + "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" + + "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" + + "nse\022N\n\024document_translation\030\001 \001(\01320.goog" + + "le.cloud.translation.v3.DocumentTranslat" + + "ion\022W\n\035glossary_document_translation\030\002 \001" + + "(\01320.google.cloud.translation.v3.Documen" + + "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" + + "config\030\004 \001(\01328.google.cloud.translation." + + "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" + + "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!locations.googleapis.com/Location" + + "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" + + "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" + + "els\030\004 \003(\0132B.google.cloud.translation.v3." + + "BatchTranslateTextRequest.ModelsEntryB\004\342" + + "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" + + "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" + + "tput_config\030\006 \001(\0132).google.cloud.transla" + + "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" + + "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" + + "chTranslateTextRequest.GlossariesEntryB\004" + + "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" + + "slation.v3.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" + + "oud.translation.v3.TranslateTextGlossary" + + "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" + + "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" + + "lation.v3.BatchTranslateMetadata.State\022\035" + + "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" + + "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" + + "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" + + "atchTranslateResponse\022\030\n\020total_character" + + "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" + + "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" + + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " + + "\001(\0132&.google.cloud.translation.v3.GcsSou" + + "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" + + ".cloud.translation.v3.Glossary.LanguageC" + + "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." + + "google.cloud.translation.v3.Glossary.Lan" + + "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." + + "google.cloud.translation.v3.GlossaryInpu" + + "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" + + "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " + + "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" + + "language_code\030\001 \001(\t\022\034\n\024target_language_c" + + "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" + + "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" + + ".com/Glossary\022=projects/{project}/locati" + + "ons/{location}/glossaries/{glossary}B\013\n\t" + + "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" + + "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" + + "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + + "\372A#\n!translate.googleapis.com/Glossary\"Q" + + "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" + + "A\001\002\372A#\n!translate.googleapis.com/Glossar" + + "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " + + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + + "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" + + "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" + + "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" + + "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" + + "\030\002 \001(\01629.google.cloud.translation.v3.Cre" + + "ateGlossaryMetadata.State\022/\n\013submit_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" + + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" + + "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" + + "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" + + "le.cloud.translation.v3.DeleteGlossaryMe" + + "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" + + "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" + + "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\"\n\024so" + + "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" + + "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" + + "figs\030\004 \003(\01325.google.cloud.translation.v3" + + ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" + + "t_config\030\005 \001(\01326.google.cloud.translatio" + + "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" + + "models\030\006 \003(\0132F.google.cloud.translation." + + "v3.BatchTranslateDocumentRequest.ModelsE" + + "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." + + "cloud.translation.v3.BatchTranslateDocum" + + "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" + + "at_conversions\030\010 \003(\0132Q.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" + + "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" + + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" + + "rce\030\001 \001(\0132&.google.cloud.translation.v3." + + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" + + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" + + "ogle.cloud.translation.v3.GcsDestination" + + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" + + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" + + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" + + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" + + "_characters\030\005 \001(\003\022\035\n\025translated_characte" + + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" + + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" + + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" + + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" + + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" + + "on.v3.BatchTranslateDocumentMetadata.Sta" + + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" + + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" + + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" + + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" + + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" + + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" + + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" + + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" + + "TranslateText\0221.google.cloud.translation" + + ".v3.TranslateTextRequest\0322.google.cloud." + + "translation.v3.TranslateTextResponse\"\333\001\332" + + "A$parent,target_language_code,contents\332A" + + "Iparent,model,mime_type,source_language_" + + "code,target_language_code,contents\202\323\344\223\002b" + + "\"1/v3/{parent=projects/*/locations/*}:tr" + + "anslateText:\001*Z*\"%/v3/{parent=projects/*" + + "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." + + "google.cloud.translation.v3.DetectLangua" + + "geRequest\0323.google.cloud.translation.v3." + + "DetectLanguageResponse\"\213\001\332A\036parent,model" + + ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" + + "ojects/*/locations/*}:detectLanguage:\001*Z" + + "+\"&/v3/{parent=projects/*}:detectLanguag" + + "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." + + "cloud.translation.v3.GetSupportedLanguag" + + "esRequest\032/.google.cloud.translation.v3." + + "SupportedLanguages\"\221\001\332A\"parent,model,dis" + + "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z,\022*/v3/{parent=projects/*}/supportedLan" + + "guages\022\304\001\n\021TranslateDocument\0225.google.cl" + + "oud.translation.v3.TranslateDocumentRequ" + + "est\0326.google.cloud.translation.v3.Transl" + + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" + + "=projects/*/locations/*}:translateDocume" + + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" + + "oud.translation.v3.BatchTranslateTextReq" + + "uest\032\035.google.longrunning.Operation\"t\312A0" + + "\n\026BatchTranslateResponse\022\026BatchTranslate" + + "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" + + "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" + + "tchTranslateDocument\022:.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" + + "atchTranslateDocumentResponse\022\036BatchTran" + + "slateDocumentMetadata\332AMparent,source_la" + + "nguage_code,target_language_codes,input_" + + "configs,output_config\202\323\344\223\002?\":/v3/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" + + "loud.translation.v3.CreateGlossaryReques" + + "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" + + "lossary\022\026CreateGlossaryMetadata\332A\017parent" + + ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" + + "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" + + "stGlossaries\0222.google.cloud.translation." + + "v3.ListGlossariesRequest\0323.google.cloud." + + "translation.v3.ListGlossariesResponse\"?\332" + + "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" + + "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" + + ".google.cloud.translation.v3.GetGlossary" + + "Request\032%.google.cloud.translation.v3.Gl" + + "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" + + "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" + + "Glossary\0222.google.cloud.translation.v3.D" + + "eleteGlossaryRequest\032\035.google.longrunnin" + + "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" + + "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" + + "v3/{name=projects/*/locations/*/glossari" + + "es/*}\032~\312A\030translate.googleapis.com\322A`htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-translationB\321\001\n\035com.google.cloud.trans" + + "late.v3B\027TranslationServiceProtoP\001Z;clou" + + "d.google.com/go/translate/apiv3/translat" + + "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" + + "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" + + "gle::Cloud::Translate::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { + "Glossary", "IgnoreCase", + }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, + new java.lang.String[] { + "Contents", + "MimeType", + "SourceLanguageCode", + "TargetLanguageCode", + "Parent", + "Model", + "GlossaryConfig", + "Labels", + }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, + new java.lang.String[] { + "Translations", "GlossaryTranslations", + }); + internal_static_google_cloud_translation_v3_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Translation_descriptor, + new java.lang.String[] { + "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, + new java.lang.String[] { + "Parent", "Model", "Content", "MimeType", "Labels", "Source", + }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayLanguageCode", "Model", + }); + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", + }); + internal_static_google_cloud_translation_v3_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsSource_descriptor, + new java.lang.String[] { + "InputUri", + }); + internal_static_google_cloud_translation_v3_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_InputConfig_descriptor, + new java.lang.String[] { + "MimeType", "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsDestination_descriptor, + new java.lang.String[] { + "OutputUriPrefix", + }); + internal_static_google_cloud_translation_v3_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, + new java.lang.String[] { + "Content", "GcsSource", "MimeType", "Source", + }); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "MimeType", "Destination", + }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCode", + "DocumentInputConfig", + "DocumentOutputConfig", + "Model", + "GlossaryConfig", + "Labels", + "CustomizedAttribution", + "IsTranslateNativePdfOnly", + "EnableShadowRemovalNativePdf", + }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, + new java.lang.String[] { + "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", + }); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, + new java.lang.String[] { + "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "Models", + "InputConfigs", + "OutputConfig", + "Glossaries", + "Labels", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, + new java.lang.String[] { + "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", + }); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, + new java.lang.String[] { + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_descriptor, + new java.lang.String[] { + "Name", + "LanguagePair", + "LanguageCodesSet", + "InputConfig", + "EntryCount", + "SubmitTime", + "EndTime", + "DisplayName", + "Languages", + }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { + "SourceLanguageCode", "TargetLanguageCode", + }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { + "LanguageCodes", + }); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, + new java.lang.String[] { + "Parent", "Glossary", + }); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, + new java.lang.String[] { + "Glossaries", "NextPageToken", + }); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { + "Name", "SubmitTime", "EndTime", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "InputConfigs", + "OutputConfig", + "Models", + "Glossaries", + "FormatConversions", + "CustomizedAttribution", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { + "State", + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto b/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto similarity index 100% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto rename to java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java similarity index 77% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java index 9b454d2bb90c..76528b7c481e 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentInputConfig() { - } + + private BatchDocumentInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -107,6 +133,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -114,6 +141,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -137,16 +166,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -174,12 +206,13 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -191,8 +224,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -206,8 +238,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,18 +250,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other =
+        (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -258,131 +291,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -417,8 +455,11 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = + new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -428,11 +469,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentInput int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -441,38 +482,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocument public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -480,15 +522,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -516,19 +561,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,12 +583,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -556,8 +601,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -581,6 +631,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -588,6 +639,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -611,6 +664,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -628,6 +682,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -666,6 +722,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -702,6 +760,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -728,10 +788,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -747,6 +810,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -788,6 +853,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -816,6 +883,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -852,6 +921,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -877,14 +948,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -894,9 +970,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -906,12 +982,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3beta1.BatchDocumentInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig();
   }
@@ -920,27 +996,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -955,6 +1031,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
index 3406b688b235..2f203da680ed 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentInputConfigOrBuilder extends
+public interface BatchDocumentInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -31,10 +49,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -58,10 +79,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
similarity index 84%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
index 514d7133b009..cab80a6095d9 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
@@ -1,56 +1,78 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentOutputConfig() { - } + + private BatchDocumentOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -133,6 +159,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -140,6 +167,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -189,16 +218,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -252,12 +284,13 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +302,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -284,8 +316,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -295,18 +328,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other =
+        (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -336,131 +369,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,13 +512,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance(); } @@ -495,22 +534,26 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = + new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -519,38 +562,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocument public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -558,15 +602,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -594,19 +642,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,12 +664,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -634,8 +682,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -685,6 +738,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -692,6 +746,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -741,6 +797,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -758,6 +815,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -822,6 +881,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -884,6 +945,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -936,10 +999,14 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_
+                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -955,6 +1022,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1022,6 +1091,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1076,6 +1147,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1138,6 +1211,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1189,14 +1264,19 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsDestination,
+            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsDestination,
+                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1206,9 +1286,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1218,12 +1298,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
-  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig();
   }
@@ -1232,27 +1313,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentOutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentOutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1267,6 +1348,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
similarity index 92%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
index 7f63ba313509..4efe695d3514 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentOutputConfigOrBuilder extends
+public interface BatchDocumentOutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -57,10 +75,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -110,10 +131,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
index 7f495e9b0317..8bf67fed5ae8 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +84,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +94,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -77,6 +104,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -85,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -94,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -107,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -115,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -123,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -131,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -139,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -148,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -158,7 +203,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -183,52 +227,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -248,38 +297,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -290,12 +353,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -306,12 +372,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -322,12 +391,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -338,11 +410,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -353,12 +428,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -369,12 +447,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -385,12 +466,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -401,11 +485,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -413,11 +500,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ @java.lang.Override @@ -425,6 +515,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -437,6 +529,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,9 +541,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -489,45 +583,37 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -537,34 +623,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() - != other.getTotalPages()) return false; - if (getTranslatedPages() - != other.getTranslatedPages()) return false; - if (getFailedPages() - != other.getFailedPages()) return false; - if (getTotalBillablePages() - != other.getTotalBillablePages()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() - != other.getTotalBillableCharacters()) return false; + if (getTotalPages() != other.getTotalPages()) return false; + if (getTranslatedPages() != other.getTranslatedPages()) return false; + if (getFailedPages() != other.getFailedPages()) return false; + if (getTotalBillablePages() != other.getTotalBillablePages()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -580,29 +658,21 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -613,131 +683,138 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } - // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -760,13 +837,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -781,13 +859,17 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = + new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -817,9 +899,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -827,46 +907,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { + if (other + == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -923,64 +1007,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -990,26 +1083,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1020,28 +1123,40 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { + public Builder setState( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1051,11 +1166,15 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateDocumen return this; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1065,14 +1184,17 @@ public Builder clearState() { return this; } - private long totalPages_ ; + private long totalPages_; /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -1080,12 +1202,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1097,12 +1222,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1112,14 +1240,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -1127,12 +1258,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1144,12 +1278,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1159,14 +1296,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -1174,12 +1314,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1191,12 +1334,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1206,14 +1352,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -1221,12 +1370,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1238,12 +1390,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1253,13 +1408,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -1267,11 +1425,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1283,11 +1444,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1297,14 +1461,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1312,12 +1479,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1329,12 +1499,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1344,14 +1517,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -1359,12 +1535,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1376,12 +1555,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1391,14 +1573,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1406,12 +1591,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1423,12 +1611,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1440,34 +1631,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1488,14 +1692,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1506,6 +1711,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1514,9 +1721,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1529,6 +1736,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1546,6 +1755,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1558,6 +1769,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1568,11 +1781,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1580,21 +1796,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1604,41 +1823,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1650,9 +1871,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java index d6562ae29804..ee61a8cc79bf 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,137 +1,191 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentMetadataOrBuilder extends +public interface BatchTranslateDocumentMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState(); /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java index 1376e05c8509..995377d556f9 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java @@ -1,48 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -51,22 +66,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -79,7 +99,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -88,14 +111,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -108,17 +132,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -127,9 +152,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -137,6 +165,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -145,14 +174,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -160,16 +190,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -178,41 +207,53 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -220,24 +261,30 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List inputConfigs_; /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -245,13 +292,18 @@ public java.lang.String getTargetLanguageCodes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -259,14 +311,19 @@ public java.util.List
    *
-   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
+   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>
       getInputConfigsOrBuilderList() {
     return inputConfigs_;
   }
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -274,13 +331,17 @@ public java.util.List
    *
-   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
+   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
    */
   @java.lang.Override
   public int getInputConfigsCount() {
     return inputConfigs_.size();
   }
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -288,13 +349,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -302,24 +367,31 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder + getInputConfigsOrBuilder(int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -327,60 +399,76 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -402,20 +490,21 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -441,6 +530,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -462,17 +553,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -494,11 +587,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -506,94 +599,126 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
+
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry =
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.translate.v3beta1.TranslationServiceProto
+                            .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
+                            .getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
-  private com.google.protobuf.MapField
-  internalGetGlossaries() {
+          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+      glossaries_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+      internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
+
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -601,32 +726,36 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; + private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -640,23 +769,26 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -670,13 +802,17 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -690,20 +826,24 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -717,14 +857,16 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -732,6 +874,7 @@ public java.lang.String getFormatConversionsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -743,8 +886,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -760,20 +902,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetModels(), - ModelsDefaultEntryHolder.defaultEntry, - 6); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetGlossaries(), - GlossariesDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -802,42 +935,43 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry - : internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry - models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, models__); - } - for (java.util.Map.Entry entry - : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry - glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry - : internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry - formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry : + internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry models__ = + ModelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + entry : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + GlossariesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry : + internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry formatConversions__ = + FormatConversionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -847,32 +981,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList() - .equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList() - .equals(other.getInputConfigsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals( - other.internalGetModels())) return false; - if (!internalGetGlossaries().equals( - other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals( - other.internalGetFormatConversions())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals(other.internalGetModels())) return false; + if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -918,116 +1045,121 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -1036,13 +1168,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1051,36 +1182,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1100,13 +1229,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance(); } @@ -1121,14 +1251,18 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = + new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1140,7 +1274,8 @@ private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.Batch } } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1153,9 +1288,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1175,46 +1309,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { + if (other + == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1253,9 +1391,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocume inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1264,14 +1403,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocume if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom( - other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1299,75 +1435,92 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - formatConversions__ = input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFormatConversions().getMutableMap().put( - formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry + formatConversions__ = + input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFormatConversions() + .getMutableMap() + .put(formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1377,10 +1530,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1393,14 +1549,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1409,6 +1567,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1421,16 +1581,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1438,6 +1599,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1450,19 +1613,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1475,7 +1644,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1485,6 +1657,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1497,13 +1671,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1513,6 +1691,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1520,13 +1700,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1535,6 +1715,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1542,15 +1724,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1558,6 +1739,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1565,18 +1748,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1584,6 +1771,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1593,6 +1781,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1600,12 +1790,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1615,6 +1807,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1622,38 +1815,49 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1661,33 +1865,41 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1695,18 +1907,23 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1714,53 +1931,64 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1769,19 +1997,27 @@ public Builder addTargetLanguageCodesBytes( return this; } - private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + inputConfigs_ = java.util.Collections.emptyList(); + private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = new java.util.ArrayList(inputConfigs_); + inputConfigs_ = + new java.util.ArrayList( + inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + inputConfigsBuilder_; /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1789,9 +2025,12 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -1799,6 +2038,8 @@ public java.util.List * Required. Input configurations. * The total number of files matched should be <= 100. @@ -1806,7 +2047,9 @@ public java.util.List * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -1816,6 +2059,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1823,7 +2068,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -1833,6 +2080,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1840,7 +2089,9 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -1857,6 +2108,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1864,10 +2117,13 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( - int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.set(index, builderForValue.build()); @@ -1878,6 +2134,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1885,9 +2143,12 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { + public Builder addInputConfigs( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1901,6 +2162,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentI return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1908,7 +2171,9 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentI
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -1925,6 +2190,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1932,7 +2199,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { @@ -1946,6 +2215,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1953,10 +2224,13 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( - int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.add(index, builderForValue.build()); @@ -1967,6 +2241,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1974,14 +2250,16 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -1989,6 +2267,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1996,7 +2276,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2009,6 +2291,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2016,7 +2300,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2029,6 +2315,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2036,13 +2324,17 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder getInputConfigsBuilder( - int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder + getInputConfigsBuilder(int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2050,16 +2342,21 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder getIn
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder + getInputConfigsOrBuilder(int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2067,10 +2364,13 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getI
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2078,6 +2378,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getI } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2085,13 +2387,19 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getI
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder + addInputConfigsBuilder() { + return getInputConfigsFieldBuilder() + .addBuilder( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2099,14 +2407,20 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addIn
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder( - int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder + addInputConfigsBuilder(int index) { + return getInputConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2114,22 +2428,27 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addIn
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2137,47 +2456,67 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addIn private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder setOutputConfig( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2191,13 +2530,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentO return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2211,19 +2554,26 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig + .getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2236,13 +2586,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumen return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2255,74 +2609,90 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder + getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2331,10 +2701,13 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder get onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2356,20 +2729,21 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2395,6 +2769,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2416,17 +2792,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2448,23 +2826,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2485,23 +2865,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2522,17 +2901,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2553,17 +2935,18 @@ public Builder putModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        glossaries_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -2571,11 +2954,13 @@ public Builder putAllModels(
       }
       return glossaries_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ = com.google.protobuf.MapField.newMapField(
-            GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ =
+            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2584,140 +2969,181 @@ public Builder putAllModels(
       onChanged();
       return glossaries_;
     }
+
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -2726,11 +3152,13 @@ public Builder putAllGlossaries( } return formatConversions_; } + private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = + com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -2739,10 +3167,13 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2756,23 +3187,26 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2786,13 +3220,17 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2806,20 +3244,25 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2833,12 +3276,15 @@ java.lang.String getFormatConversionsOrDefault(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -2846,13 +3292,15 @@ public java.lang.String getFormatConversionsOrThrow( } return map.get(key); } + public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap() - .clear(); + internalGetMutableFormatConversions().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2866,25 +3314,26 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableFormatConversions().getMutableMap() - .remove(key); + public Builder removeFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFormatConversions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableFormatConversions() { + public java.util.Map getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2898,19 +3347,24 @@ public Builder removeFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putFormatConversions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFormatConversions().getMutableMap() - .put(key, value); + public Builder putFormatConversions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFormatConversions().getMutableMap().put(key, value); bitField0_ |= 0x00000080; return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2924,18 +3378,19 @@ public Builder putFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap() - .putAll(values); + internalGetMutableFormatConversions().getMutableMap().putAll(values); bitField0_ |= 0x00000080; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2945,41 +3400,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2991,9 +3448,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java index fb24daa5c499..417f5d3bcc93 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentRequestOrBuilder extends +public interface BatchTranslateDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -37,13 +60,17 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -51,10 +78,13 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -62,57 +92,73 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -120,11 +166,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -132,10 +181,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -143,10 +196,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -154,11 +211,15 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,45 +227,63 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -227,6 +306,8 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -247,15 +328,13 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -276,9 +355,10 @@ boolean containsModels(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -300,11 +380,13 @@ boolean containsModels(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -325,64 +407,82 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -396,10 +496,14 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getFormatConversionsCount(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -413,17 +517,17 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsFormatConversions( - java.lang.String key); - /** - * Use {@link #getFormatConversionsMap()} instead. + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsFormatConversions(java.lang.String key); + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getFormatConversions(); + java.util.Map getFormatConversions(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -437,11 +541,14 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getFormatConversionsMap(); + java.util.Map getFormatConversionsMap(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -455,14 +562,18 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getFormatConversionsOrDefault( + java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -476,8 +587,9 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getFormatConversionsOrThrow( - java.lang.String key); + java.lang.String getFormatConversionsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java index 195df291224e..5719acca8c95 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,47 +30,52 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateDocumentResponse() {
-  }
+
+  private BatchTranslateDocumentResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
+            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -64,12 +86,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -80,12 +105,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -96,12 +124,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -112,11 +143,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -127,12 +161,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -143,12 +180,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -159,12 +199,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -175,11 +218,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -187,11 +233,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ @java.lang.Override @@ -199,6 +248,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -213,6 +264,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -220,6 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -227,6 +281,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -234,6 +290,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ @java.lang.Override @@ -241,6 +298,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -255,6 +314,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,8 +326,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -308,44 +367,34 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -355,38 +404,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages()
-        != other.getTotalPages()) return false;
-    if (getTranslatedPages()
-        != other.getTranslatedPages()) return false;
-    if (getFailedPages()
-        != other.getFailedPages()) return false;
-    if (getTotalBillablePages()
-        != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters()
-        != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other =
+        (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages() != other.getTotalPages()) return false;
+    if (getTranslatedPages() != other.getTranslatedPages()) return false;
+    if (getFailedPages() != other.getFailedPages()) return false;
+    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -400,29 +440,21 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -437,98 +469,105 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -538,33 +577,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
+              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -591,13 +630,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -612,13 +652,17 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse build()
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result =
+          new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(
+        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -645,14 +689,10 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -660,46 +700,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
+      if (other
+          == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance())
+        return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -756,66 +800,73 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalPages_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedPages_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedPages_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              totalBillablePages_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 48: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              totalBillableCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalPages_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedPages_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedPages_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                totalBillablePages_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 48:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                totalBillableCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,16 +876,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalPages_ ;
+    private long totalPages_;
     /**
+     *
+     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -842,12 +897,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -859,12 +917,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -874,14 +935,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -889,12 +953,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -906,12 +973,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -921,14 +991,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -936,12 +1009,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -953,12 +1029,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -968,14 +1047,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -983,12 +1065,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1000,12 +1085,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1015,13 +1103,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -1029,11 +1120,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1045,11 +1139,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1059,14 +1156,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1074,12 +1174,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1091,12 +1194,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1106,14 +1212,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -1121,12 +1230,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1138,12 +1250,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1153,14 +1268,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1168,12 +1286,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1185,12 +1306,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1202,34 +1326,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1250,14 +1387,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1268,6 +1406,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1276,9 +1416,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1291,6 +1431,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1308,6 +1450,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1320,6 +1464,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1330,11 +1476,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1342,14 +1491,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1357,8 +1509,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1366,12 +1523,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1379,6 +1539,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1389,6 +1550,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1411,6 +1574,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1419,8 +1584,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1431,6 +1595,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1441,9 +1607,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1456,6 +1622,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1475,6 +1643,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1489,6 +1659,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1501,11 +1673,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1515,21 +1688,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1539,41 +1715,43 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse();
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstance() {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateDocumentResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateDocumentResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1585,9 +1763,8 @@ public com.google.protobuf.Parser getParserForTy
   }
 
   @java.lang.Override
-  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
+  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
index 48ae35448d03..4806876f2ba6 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,118 +1,166 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateDocumentResponseOrBuilder extends
+public interface BatchTranslateDocumentResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -122,6 +170,8 @@ public interface BatchTranslateDocumentResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -129,10 +179,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,10 +193,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
index 66d3a6f7dc36..5288b093f430 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
@@ -1,58 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +83,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +93,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -78,6 +104,8 @@ public enum State
      */
     SUCCEEDED(2),
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -86,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -95,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -108,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -133,6 +171,8 @@ public enum State
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -141,6 +181,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -150,6 +192,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -160,7 +204,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -185,52 +228,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -250,37 +298,51 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -291,12 +353,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -307,6 +372,8 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -314,6 +381,7 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -324,11 +392,14 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -336,11 +407,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ @java.lang.Override @@ -348,6 +422,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -360,6 +436,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,9 +448,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -397,25 +475,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -425,24 +500,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = + (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -458,14 +530,11 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -476,131 +545,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.cloud.translate.v3beta1.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +692,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -639,8 +713,11 @@ public com.google.cloud.translate.v3beta1.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = + new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -660,9 +737,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -670,38 +745,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata) other); } else { super.mergeFrom(other); return this; @@ -709,7 +785,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -751,39 +828,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -793,26 +874,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -823,24 +912,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -854,11 +952,14 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateMetadat return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -868,13 +969,16 @@ public Builder clearState() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -882,11 +986,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -898,11 +1005,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -912,14 +1022,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -927,12 +1040,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -944,12 +1060,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -959,8 +1078,10 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -968,6 +1089,7 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -975,6 +1097,8 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -982,6 +1106,7 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -993,6 +1118,8 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1000,6 +1127,7 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1011,34 +1139,47 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1059,14 +1200,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1077,6 +1219,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1085,9 +1229,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1100,6 +1244,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1117,6 +1263,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1129,6 +1277,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1139,11 +1289,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1151,21 +1304,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1175,12 +1331,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) private static final com.google.cloud.translate.v3beta1.BatchTranslateMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(); } @@ -1189,27 +1345,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1224,6 +1380,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java index 24288b893c13..2911ae114fc0 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateMetadataOrBuilder extends +public interface BatchTranslateMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState(); /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -55,29 +85,38 @@ public interface BatchTranslateMetadataOrBuilder extends
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java index eb2e9d32ebce..f779d3c1d97e 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,46 +30,50 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateResponse() {
-  }
+
+  private BatchTranslateResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
+            com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -63,11 +84,14 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -78,11 +102,14 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -93,11 +120,14 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -105,11 +135,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ @java.lang.Override @@ -117,6 +150,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -131,6 +166,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -138,6 +175,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -145,6 +183,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -152,6 +192,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -159,6 +200,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,6 +216,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,8 +228,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -211,24 +254,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -238,28 +276,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3beta1.BatchTranslateResponse other =
+        (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -273,14 +307,11 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -295,98 +326,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -396,33 +433,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
+              com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.BatchTranslateResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +480,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -465,8 +501,11 @@ public com.google.cloud.translate.v3beta1.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse result =
+          new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -483,14 +522,10 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -498,38 +533,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +573,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance())
+        return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -579,41 +616,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -623,15 +662,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalCharacters_ ;
+    private long totalCharacters_;
     /**
+     *
+     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -639,11 +682,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -655,11 +701,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -669,13 +718,16 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -683,11 +735,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -699,11 +754,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -713,13 +771,16 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -727,11 +788,14 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -743,11 +807,14 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -759,34 +826,47 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -807,14 +887,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -825,6 +906,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -833,9 +916,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -848,6 +931,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -865,6 +950,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -877,6 +964,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -887,11 +976,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -899,14 +991,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -914,8 +1009,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -923,12 +1023,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -936,6 +1039,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -946,6 +1050,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -968,6 +1074,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -976,8 +1084,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -988,6 +1095,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -998,9 +1107,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1013,6 +1122,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1032,6 +1143,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1046,6 +1159,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1058,11 +1173,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1072,21 +1188,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1096,12 +1215,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3beta1.BatchTranslateResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateResponse();
   }
@@ -1110,27 +1229,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1145,6 +1264,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
index 3c63f05430e4..33739b257319 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
@@ -1,61 +1,94 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateResponseOrBuilder extends
+public interface BatchTranslateResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -65,6 +98,8 @@ public interface BatchTranslateResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -72,10 +107,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -83,10 +121,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
similarity index 65%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
index c952917b2f13..8cedb8afe7cd 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
@@ -1,48 +1,63 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -51,22 +66,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -79,7 +99,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -88,14 +111,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -108,17 +132,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -127,14 +152,18 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -143,29 +172,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -174,38 +203,50 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -213,46 +254,51 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,20 +320,21 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -313,6 +360,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -334,17 +383,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -366,11 +417,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -378,9 +429,12 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -388,13 +442,17 @@ public java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -402,14 +460,18 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -417,13 +479,17 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -431,13 +497,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -445,7 +515,9 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( @@ -456,13 +528,18 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -470,126 +547,171 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; + private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry = + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField( - GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -597,32 +719,34 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -637,20 +761,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -669,6 +794,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -683,17 +810,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -708,11 +837,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -720,6 +849,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -731,8 +861,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -742,30 +871,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetModels(),
-        ModelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetGlossaries(),
-        GlossariesDefaultEntryHolder.defaultEntry,
-        7);
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        9);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
     getUnknownFields().writeTo(output);
   }
 
@@ -789,43 +906,44 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry
-         : internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry :
+        internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry models__ =
+          ModelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry<
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        entry : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry<
+              java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+          glossaries__ =
+              GlossariesDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -835,32 +953,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
-
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList()
-        .equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(
-        other.internalGetModels())) return false;
-    if (!getInputConfigsList()
-        .equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other =
+        (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
+
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(other.internalGetModels())) return false;
+    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig()
-          .equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(
-        other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -906,116 +1017,121 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) com.google.cloud.translate.v3beta1.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -1024,13 +1140,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1039,36 +1154,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 9: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1088,13 +1201,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance(); } @@ -1109,14 +1223,18 @@ public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = + new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1128,7 +1246,8 @@ private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.Batch } } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1145,9 +1264,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateText result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1163,38 +1281,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateText public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1202,7 +1321,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1223,8 +1344,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe } onChanged(); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1244,9 +1364,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1255,11 +1376,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1287,75 +1406,90 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.cloud.translate.v3beta1.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.InputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.translate.v3beta1.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1365,10 +1499,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1381,14 +1518,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1397,6 +1536,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1409,16 +1550,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1426,6 +1568,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1438,19 +1582,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1463,7 +1613,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1473,6 +1626,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1485,13 +1640,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1501,18 +1660,20 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1521,20 +1682,21 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1542,28 +1704,35 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1573,17 +1742,21 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1593,6 +1766,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1600,35 +1774,46 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1636,31 +1821,39 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1668,17 +1861,22 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1686,50 +1884,61 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1738,21 +1947,19 @@ public Builder addTargetLanguageCodesBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1761,10 +1968,13 @@ public Builder addTargetLanguageCodesBytes( onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1786,20 +1996,21 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1825,6 +2036,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1846,17 +2059,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1878,23 +2093,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1915,23 +2132,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1952,17 +2168,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1983,27 +2202,32 @@ public Builder putModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ =
+            new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> inputConfigsBuilder_;
+            com.google.cloud.translate.v3beta1.InputConfig,
+            com.google.cloud.translate.v3beta1.InputConfig.Builder,
+            com.google.cloud.translate.v3beta1.InputConfigOrBuilder>
+        inputConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2011,7 +2235,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2021,6 +2247,8 @@ public java.util.List getInputCo } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2028,7 +2256,9 @@ public java.util.List getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2038,6 +2268,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2045,7 +2277,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2055,6 +2289,8 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2062,7 +2298,9 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2079,6 +2317,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2086,7 +2326,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2100,6 +2342,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2107,7 +2351,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2123,6 +2369,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2130,7 +2378,9 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2147,6 +2397,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2154,7 +2406,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2168,6 +2422,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2175,7 +2431,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2189,6 +2447,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2196,14 +2456,15 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2211,6 +2472,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2218,7 +2481,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2231,6 +2496,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2238,7 +2505,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2251,6 +2520,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2258,13 +2529,17 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2272,16 +2547,21 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2289,10 +2569,12 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2300,6 +2582,8 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2307,13 +2591,17 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2321,14 +2609,18 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2336,22 +2628,27 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> + com.google.cloud.translate.v3beta1.InputConfig, + com.google.cloud.translate.v3beta1.InputConfig.Builder, + com.google.cloud.translate.v3beta1.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.InputConfig, + com.google.cloud.translate.v3beta1.InputConfig.Builder, + com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2359,45 +2656,64 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3beta1.OutputConfig, + com.google.cloud.translate.v3beta1.OutputConfig.Builder, + com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2413,13 +2729,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig v return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.OutputConfig.Builder builderForValue) { @@ -2433,19 +2753,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2458,13 +2783,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2477,13 +2806,17 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2491,48 +2824,63 @@ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBu return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.OutputConfig, + com.google.cloud.translate.v3beta1.OutputConfig.Builder, + com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.OutputConfig, + com.google.cloud.translate.v3beta1.OutputConfig.Builder, + com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2540,11 +2888,13 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO } return glossaries_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = + com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2553,160 +2903,199 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO onChanged(); return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2715,10 +3104,13 @@ public Builder putAllGlossaries( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2733,20 +3125,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2765,6 +3158,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2779,17 +3174,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2804,23 +3201,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2834,23 +3233,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2864,17 +3262,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2888,16 +3289,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2907,12 +3306,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest();
   }
@@ -2921,27 +3321,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2956,6 +3356,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
index 4a36ace0b91d..910797b64825 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateTextRequestOrBuilder extends
+public interface BatchTranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -37,74 +60,97 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -127,6 +173,8 @@ public interface BatchTranslateTextRequestOrBuilder extends
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -147,15 +195,13 @@ public interface BatchTranslateTextRequestOrBuilder extends
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -176,9 +222,10 @@ boolean containsModels(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -200,11 +247,13 @@ boolean containsModels(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -225,10 +274,11 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -236,11 +286,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -248,10 +301,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -259,10 +316,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -270,11 +331,15 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -282,104 +347,138 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( - int index); + com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -395,6 +494,8 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -408,15 +509,13 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -430,9 +529,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -447,11 +547,13 @@ boolean containsLabels(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -465,6 +567,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
similarity index 70%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
index 3127085cac39..f7237dc2e115 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
+            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully created.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to create the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully created.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to create the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = + (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,104 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +624,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
       com.google.cloud.translate.v3beta1.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
+              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +665,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +686,11 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result =
+          new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +704,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +712,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +752,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +791,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +825,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +852,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +874,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +912,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +936,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +969,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1009,14 @@ public Builder setState(com.google.cloud.translate.v3beta1.CreateGlossaryMetadat return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1028,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1089,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1108,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1118,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1133,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1152,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1166,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1178,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1193,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.CreateGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(); } @@ -1090,27 +1234,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1269,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java index e5de66c9d72a..9408918bc8e2 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface CreateGlossaryMetadataOrBuilder extends +public interface CreateGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java similarity index 60% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java index 97c241454aee..a345727ae32f 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -93,11 +120,16 @@ public java.lang.String getParent() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.Glossary glossary_; /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ @java.lang.Override @@ -105,30 +137,44 @@ public boolean hasGlossary() { return glossary_ != null; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary getGlossary() { - return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -161,8 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,19 +216,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = + (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary() - .equals(other.getGlossary())) return false; + if (!getGlossary().equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,131 +252,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) com.google.cloud.translate.v3beta1.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -348,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -369,8 +417,11 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = + new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,9 +432,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null - ? glossary_ - : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); } } @@ -391,38 +440,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -430,7 +480,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -465,24 +516,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,22 +544,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -516,20 +573,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -537,28 +597,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -568,17 +639,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -588,39 +665,58 @@ public Builder setParentBytes( private com.google.cloud.translate.v3beta1.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossaryBuilder_; + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + glossaryBuilder_; /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ public com.google.cloud.translate.v3beta1.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { @@ -636,11 +732,15 @@ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGlossary( com.google.cloud.translate.v3beta1.Glossary.Builder builderForValue) { @@ -654,17 +754,21 @@ public Builder setGlossary( return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossary_ != null && - glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossary_ != null + && glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -677,11 +781,15 @@ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -694,11 +802,15 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -706,43 +818,55 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() return getGlossaryFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null ? - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - getGlossary(), - getParentForChildren(), - isClean()); + glossaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + getGlossary(), getParentForChildren(), isClean()); glossary_ = null; } return glossaryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -752,12 +876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) private static final com.google.cloud.translate.v3beta1.CreateGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(); } @@ -766,27 +890,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..b9810ef60902 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface CreateGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The glossary. + */ + com.google.cloud.translate.v3beta1.Glossary getGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java index 94664c7475ac..bb6208859ee1 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
+            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = + (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,104 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +624,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3beta1.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
+              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +665,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +686,11 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result =
+          new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +704,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +712,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +752,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +791,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +825,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +852,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +874,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +912,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +936,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +969,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1009,14 @@ public Builder setState(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadat return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1028,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1089,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1108,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1118,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1133,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1152,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1166,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1178,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1193,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(); } @@ -1090,27 +1234,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1269,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java index c5b1c95fbbcd..3ff86a529e4c 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DeleteGlossaryMetadataOrBuilder extends +public interface DeleteGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java index 62933e0cb9e8..b84dcc7a1214 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = + (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) com.google.cloud.translate.v3beta1.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +342,11 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = + new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +362,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +402,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +486,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +510,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +552,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(); } @@ -537,27 +601,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..153d3300edb2 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface DeleteGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java similarity index 71% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java index 7ce6185f0757..aac9812103e2 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -12,48 +29,54 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
+            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getName() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -107,11 +133,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ @java.lang.Override @@ -119,6 +148,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -133,6 +164,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,6 +173,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -147,6 +181,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -154,6 +190,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -161,6 +198,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,6 +214,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -186,8 +226,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -210,12 +249,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -225,24 +262,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other = (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other =
+        (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -271,98 +306,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -371,33 +412,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
       com.google.cloud.translate.v3beta1.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
+              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +457,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +478,11 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result =
+          new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -450,14 +493,10 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -465,38 +504,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -504,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -542,31 +583,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,22 +617,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -600,20 +644,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -621,28 +666,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -652,17 +704,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -672,34 +728,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -720,14 +789,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -738,6 +808,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -746,9 +818,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -761,6 +833,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -778,6 +852,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -790,6 +866,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -800,11 +878,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -812,14 +893,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -827,8 +911,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -836,12 +925,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -849,6 +941,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -859,6 +952,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -881,6 +976,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -889,8 +986,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -901,6 +997,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -911,9 +1009,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -926,6 +1024,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -945,6 +1045,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -959,6 +1061,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -971,11 +1075,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -985,21 +1090,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1009,12 +1117,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3beta1.DeleteGlossaryResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse();
   }
@@ -1023,27 +1131,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DeleteGlossaryResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DeleteGlossaryResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1058,6 +1166,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
similarity index 74%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
index 3f333cae33e7..d3c3e76f020d 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
@@ -1,51 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DeleteGlossaryResponseOrBuilder extends
+public interface DeleteGlossaryResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -55,6 +84,8 @@ public interface DeleteGlossaryResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -62,10 +93,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -73,10 +107,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
index 60e64a3a8567..48a14238139e 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) DetectLanguageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -27,45 +45,49 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -81,26 +103,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -115,7 +142,10 @@ public int getNumber() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -124,14 +154,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -146,17 +177,18 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -165,9 +197,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -181,6 +216,7 @@ public java.lang.String getParent() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -189,14 +225,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -210,16 +247,15 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -229,22 +265,28 @@ public java.lang.String getModel() { public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { @@ -255,8 +297,7 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -265,23 +306,24 @@ public java.lang.String getContent() { } } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -292,15 +334,19 @@ public java.lang.String getContent() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -309,30 +355,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -341,32 +387,34 @@ public java.lang.String getMimeType() { } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -381,20 +429,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -413,6 +462,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -427,17 +478,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -452,11 +505,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -464,6 +517,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -475,8 +529,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -489,12 +542,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        6);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
     getUnknownFields().writeTo(output);
   }
 
@@ -516,15 +565,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -534,26 +583,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageRequest other = (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageRequest other =
+        (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent()
-            .equals(other.getContent())) return false;
+        if (!getContent().equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -593,153 +638,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) com.google.cloud.translate.v3beta1.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -754,9 +802,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -775,8 +823,11 @@ public com.google.cloud.translate.v3beta1.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageRequest result = new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DetectLanguageRequest result = + new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -799,7 +850,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageRequ } } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; } @@ -808,38 +860,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DetectLanguag public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest) other); } else { super.mergeFrom(other); return this; @@ -847,7 +900,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -863,19 +917,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageReques bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -903,42 +958,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -948,12 +1011,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -967,6 +1030,8 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -981,14 +1046,16 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -997,6 +1064,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1011,16 +1080,17 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1028,6 +1098,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1042,19 +1114,25 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1069,7 +1147,10 @@ public Builder setParent(
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1079,6 +1160,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1093,13 +1176,17 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1109,6 +1196,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1122,13 +1211,13 @@ public Builder setParentBytes(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1137,6 +1226,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1150,15 +1241,14 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1166,6 +1256,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1179,18 +1271,22 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1204,6 +1300,7 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1213,6 +1310,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1226,12 +1325,14 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1240,11 +1341,14 @@ public Builder setModelBytes( } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -1252,11 +1356,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -1266,8 +1373,7 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1278,24 +1384,25 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1305,28 +1412,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1338,17 +1452,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1358,19 +1476,21 @@ public Builder setContentBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1379,21 +1499,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1401,30 +1522,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1434,18 +1562,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1453,21 +1585,19 @@ public Builder setMimeTypeBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1476,10 +1606,13 @@ public Builder setMimeTypeBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1494,20 +1627,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1526,6 +1660,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1540,17 +1676,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1565,23 +1703,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1595,23 +1735,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1625,17 +1764,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1649,16 +1791,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1668,12 +1808,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageRequest();
   }
@@ -1682,27 +1822,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1717,6 +1857,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
index 203bc5697745..775b7874f4f5 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageRequestOrBuilder extends
+public interface DetectLanguageRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -22,11 +40,16 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -41,13 +64,17 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -61,10 +88,13 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -78,63 +108,78 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -150,6 +195,8 @@ public interface DetectLanguageRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -163,15 +210,13 @@ public interface DetectLanguageRequestOrBuilder extends
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -185,9 +230,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -202,11 +248,13 @@ boolean containsLabels(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -220,8 +268,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   com.google.cloud.translate.v3beta1.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
index a62e0d3ed065..564f1d3b3d84 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
@@ -1,52 +1,74 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) DetectLanguageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -59,6 +81,8 @@ public java.util.List getLa
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -67,11 +91,13 @@ public java.util.List getLa
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -110,6 +140,7 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +152,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +166,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +176,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageResponse other = (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageResponse other =
+        (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -177,131 +206,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) com.google.cloud.translate.v3beta1.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -338,14 +372,18 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageResponse result = new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); + com.google.cloud.translate.v3beta1.DetectLanguageResponse result = + new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +403,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse) other); } else { super.mergeFrom(other); return this; @@ -404,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +463,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRespon languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +498,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3beta1.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +528,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList( + languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3beta1.DetectedLanguage, + com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, + com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -515,6 +567,8 @@ public java.util.List getLa
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -530,6 +584,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -545,6 +601,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -567,6 +625,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -586,6 +646,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -607,6 +669,8 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.DetectedLanguage
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -629,6 +693,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -648,6 +714,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -667,6 +735,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -678,8 +748,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +756,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -705,6 +776,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -723,6 +796,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -735,6 +810,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -745,11 +822,14 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
     public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -757,8 +837,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +846,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -774,10 +856,12 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -787,10 +871,13 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -798,27 +885,30 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> 
+            com.google.cloud.translate.v3beta1.DetectedLanguage,
+            com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
+            com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.DetectedLanguage,
+                com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
+                com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageResponse();
   }
@@ -842,27 +932,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
index efeecfb6a1aa..7de0a0538e17 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageResponseOrBuilder extends
+public interface DetectLanguageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -15,9 +33,10 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -27,6 +46,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -36,6 +57,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -43,9 +66,11 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -53,6 +78,5 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
similarity index 68%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
index 09a9eb377ea0..d021195a01f0 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ -public final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectedLanguage) DetectedLanguageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, + com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -61,30 +84,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -108,6 +134,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +146,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -140,8 +166,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,18 +176,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DetectedLanguage other = (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; + com.google.cloud.translate.v3beta1.DetectedLanguage other = + (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,139 +201,142 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectedLanguage) com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, + com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectedLanguage.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override @@ -341,8 +368,11 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3beta1.DetectedLanguage result = new com.google.cloud.translate.v3beta1.DetectedLanguage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DetectedLanguage result = + new com.google.cloud.translate.v3beta1.DetectedLanguage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -361,38 +391,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectedLanguage r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage) other); } else { super.mergeFrom(other); return this; @@ -400,7 +431,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectedLanguage other) { - if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000001; @@ -435,22 +467,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,23 +495,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object languageCode_ = ""; /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -485,21 +523,22 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -507,30 +546,37 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -540,18 +586,22 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -559,13 +609,16 @@ public Builder setLanguageCodeBytes( return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -573,11 +626,14 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ @@ -589,11 +645,14 @@ public Builder setConfidence(float value) { return this; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -602,9 +661,9 @@ public Builder clearConfidence() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +673,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectedLanguage) private static final com.google.cloud.translate.v3beta1.DetectedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectedLanguage(); } @@ -628,27 +687,27 @@ public static com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,6 +722,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java similarity index 56% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java index 18315afd3353..cf19cfed0cc0 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DetectedLanguageOrBuilder extends +public interface DetectedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java similarity index 73% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java index 914665d42172..153fd3fc46ef 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ -public final class DocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentInputConfig) DocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -68,30 +91,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -99,11 +128,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -116,12 +148,15 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -129,22 +164,27 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -155,15 +195,18 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -178,6 +221,7 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
    * 
* * string mime_type = 4; + * * @return The mimeType. */ @java.lang.Override @@ -186,14 +230,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -208,16 +253,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -226,6 +270,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,11 +282,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) source_); + output.writeBytes(1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); @@ -259,13 +302,14 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.translate.v3beta1.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -278,24 +322,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentInputConfig other = (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentInputConfig other = + (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 2: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -331,131 +373,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +517,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override @@ -491,8 +538,11 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentInputConfig result = new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DocumentInputConfig result = + new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -508,8 +558,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -518,38 +567,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInput public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -557,24 +607,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -602,29 +656,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,12 +690,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -652,22 +708,28 @@ public Builder clearSource() { private int bitField0_; /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -677,27 +739,35 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -710,14 +780,20 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -725,12 +801,15 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -748,6 +827,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -769,6 +850,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -788,6 +871,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -797,10 +882,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -816,6 +904,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -840,6 +930,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -851,6 +943,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -870,6 +964,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -878,14 +974,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -898,6 +999,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
 
     private java.lang.Object mimeType_ = "";
     /**
+     *
+     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -912,13 +1015,13 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * 
* * string mime_type = 4; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -927,6 +1030,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -941,15 +1046,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -957,6 +1061,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -971,18 +1077,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -997,6 +1107,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 4; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1006,6 +1117,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -1020,21 +1133,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1044,12 +1159,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentInputConfig) private static final com.google.cloud.translate.v3beta1.DocumentInputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentInputConfig(); } @@ -1058,27 +1173,27 @@ public static com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1093,6 +1208,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java index 06e08725269c..11b3263e5212 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentInputConfigOrBuilder extends +public interface DocumentInputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -57,6 +87,8 @@ public interface DocumentInputConfigOrBuilder extends
   com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -71,10 +103,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -89,10 +124,10 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java similarity index 81% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java index 9f0503508260..ecdf6ea09af0 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) DocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -67,24 +90,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -131,7 +158,10 @@ public int getNumber() {
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -139,6 +169,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -185,17 +217,22 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -242,20 +279,25 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -269,6 +311,7 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -277,14 +320,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -298,16 +342,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -316,6 +359,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } @@ -345,8 +388,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -359,20 +403,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentOutputConfig other = (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentOutputConfig other = + (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -404,131 +447,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +591,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -564,8 +612,11 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentOutputConfig result = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DocumentOutputConfig result = + new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -578,11 +629,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentOutputConf } } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -591,38 +642,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentOutpu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -630,20 +682,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -671,24 +726,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -698,12 +754,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -716,8 +772,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -764,7 +825,10 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -772,6 +836,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -818,7 +884,10 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override @@ -836,6 +905,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -882,7 +953,9 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -898,6 +971,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -944,7 +1019,9 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination( com.google.cloud.translate.v3beta1.GcsDestination.Builder builderForValue) { @@ -958,6 +1035,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1004,14 +1083,20 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.translate.v3beta1.GcsDestination.newBuilder( + (com.google.cloud.translate.v3beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -1027,6 +1112,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1073,7 +1160,9 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1092,6 +1181,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1138,12 +1229,16 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1190,7 +1285,9 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1204,6 +1301,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1250,17 +1349,24 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3beta1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1273,6 +1379,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1286,13 +1394,13 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1301,6 +1409,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1314,15 +1424,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1330,6 +1439,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1343,18 +1454,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1368,6 +1483,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1377,6 +1493,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1390,21 +1508,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1414,12 +1534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) private static final com.google.cloud.translate.v3beta1.DocumentOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(); } @@ -1428,27 +1548,27 @@ public static com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1463,6 +1583,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java similarity index 87% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java index 17316468ae28..463254c21d21 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentOutputConfigOrBuilder extends +public interface DocumentOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -54,11 +72,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -105,11 +128,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -156,11 +184,15 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -174,10 +206,13 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -191,10 +226,10 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java index 89708b96024f..8ea93fed3c5a 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ -public final class DocumentTranslation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentTranslation) DocumentTranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -27,28 +45,32 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -56,14 +78,16 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List - getByteStreamOutputsList() { + public java.util.List getByteStreamOutputsList() { return byteStreamOutputs_; } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -71,12 +95,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -84,6 +111,7 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -92,14 +120,18 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -139,9 +171,12 @@ public java.lang.String getMimeType() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -151,6 +186,7 @@ public java.lang.String getMimeType() {
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -159,14 +195,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -176,16 +213,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -194,6 +230,7 @@ public java.lang.String getDetectedLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -228,8 +264,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -248,19 +284,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentTranslation other = (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; + com.google.cloud.translate.v3beta1.DocumentTranslation other = + (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; - if (!getByteStreamOutputsList() - .equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,131 +320,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentTranslation) com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override @@ -443,14 +482,18 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3beta1.DocumentTranslation result = new com.google.cloud.translate.v3beta1.DocumentTranslation(this); + com.google.cloud.translate.v3beta1.DocumentTranslation result = + new com.google.cloud.translate.v3beta1.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DocumentTranslation result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -472,38 +515,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentTranslatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation) other); } else { super.mergeFrom(other); return this; @@ -511,7 +555,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) + return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -558,28 +603,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,16 +638,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); + private java.util.List byteStreamOutputs_ = + java.util.Collections.emptyList(); + private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = + new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -606,14 +661,17 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ - public java.util.List - getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; + public java.util.List getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(byteStreamOutputs_) + : byteStreamOutputs_; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -621,12 +679,15 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -634,6 +695,7 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -641,6 +703,8 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -648,19 +712,23 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -668,17 +736,22 @@ public Builder setByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -686,18 +759,20 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -705,6 +780,7 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -716,18 +792,20 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -736,20 +814,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -757,28 +836,35 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -788,17 +874,21 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -808,6 +898,8 @@ public Builder setMimeTypeBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -817,13 +909,13 @@ public Builder setMimeTypeBytes(
      * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -832,6 +924,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -841,15 +935,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -857,6 +950,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -866,18 +961,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -887,6 +986,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 3; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -896,6 +996,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -905,21 +1007,23 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -929,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentTranslation) private static final com.google.cloud.translate.v3beta1.DocumentTranslation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentTranslation(); } @@ -943,27 +1047,27 @@ public static com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -978,6 +1082,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java similarity index 76% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java index 8dc2ef1084d3..542dcda58c23 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentTranslationOrBuilder extends +public interface DocumentTranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -15,10 +33,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -26,10 +47,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -37,32 +61,40 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -72,10 +104,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -85,8 +120,8 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java similarity index 69% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java index f3eba776ada7..fbafb7e18b90 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, + com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -62,14 +85,15 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -77,16 +101,15 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -95,6 +118,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -131,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsDestination other = (com.google.cloud.translate.v3beta1.GcsDestination) obj; + com.google.cloud.translate.v3beta1.GcsDestination other = + (com.google.cloud.translate.v3beta1.GcsDestination) obj; - if (!getOutputUriPrefix() - .equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +182,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsDestination) com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, + com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsDestination.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override @@ -314,8 +341,11 @@ public com.google.cloud.translate.v3beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination buildPartial() { - com.google.cloud.translate.v3beta1.GcsDestination result = new com.google.cloud.translate.v3beta1.GcsDestination(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GcsDestination result = + new com.google.cloud.translate.v3beta1.GcsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +361,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsDestination res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -370,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GcsDestination other) { - if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) + return this; if (!other.getOutputUriPrefix().isEmpty()) { outputUriPrefix_ = other.outputUriPrefix_; bitField0_ |= 0x00000001; @@ -402,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,10 +456,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -433,13 +470,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -448,6 +485,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -455,15 +494,14 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -471,6 +509,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -478,18 +518,22 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -497,6 +541,7 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -506,6 +551,8 @@ public Builder clearOutputUriPrefix() { return this; } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -513,21 +560,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsDestination) private static final com.google.cloud.translate.v3beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsDestination(); } @@ -551,27 +600,27 @@ public static com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java similarity index 59% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java index 7b92ba408335..f9f1a7cb3a5c 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -15,10 +33,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -26,8 +47,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString - getOutputUriPrefixBytes(); + com.google.protobuf.ByteString getOutputUriPrefixBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java similarity index 67% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java index bf6227f61875..e7120cf316d9 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, + com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ @java.lang.Override @@ -60,29 +83,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -91,6 +114,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -127,15 +150,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsSource other = (com.google.cloud.translate.v3beta1.GcsSource) obj; + com.google.cloud.translate.v3beta1.GcsSource other = + (com.google.cloud.translate.v3beta1.GcsSource) obj; - if (!getInputUri() - .equals(other.getInputUri())) return false; + if (!getInputUri().equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +177,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsSource) com.google.cloud.translate.v3beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, + com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsSource.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override @@ -310,8 +337,11 @@ public com.google.cloud.translate.v3beta1.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource buildPartial() { - com.google.cloud.translate.v3beta1.GcsSource result = new com.google.cloud.translate.v3beta1.GcsSource(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GcsSource result = + new com.google.cloud.translate.v3beta1.GcsSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +357,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsSource result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -398,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +451,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputUri_ = ""; /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -442,20 +478,21 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -463,28 +500,35 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -494,26 +538,30 @@ public Builder clearInputUri() { return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsSource) private static final com.google.cloud.translate.v3beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsSource(); } @@ -537,27 +585,27 @@ public static com.google.cloud.translate.v3beta1.GcsSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java index 317cdff9cb9a..f38f9d999c8b 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ java.lang.String getInputUri(); /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString - getInputUriBytes(); + com.google.protobuf.ByteString getInputUriBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java similarity index 62% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java index ee785a9bf764..79a98bca6ee3 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) GetGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetGlossaryRequest other = (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.GetGlossaryRequest other = + (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) com.google.cloud.translate.v3beta1.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +342,11 @@ public com.google.cloud.translate.v3beta1.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetGlossaryRequest result = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GetGlossaryRequest result = + new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +362,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GetGlossaryRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +402,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +486,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +510,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +552,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) private static final com.google.cloud.translate.v3beta1.GetGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(); } @@ -537,27 +601,27 @@ public static com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..fda4692c0f60 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface GetGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java index 44ea1950af9a..6a2ca76cb00a 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -27,28 +45,32 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -65,7 +87,10 @@ protected java.lang.Object newInstance(
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -74,14 +99,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -98,17 +124,18 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -117,9 +144,12 @@ public java.lang.String getParent() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -127,6 +157,7 @@ public java.lang.String getParent() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ @java.lang.Override @@ -135,14 +166,15 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -150,16 +182,15 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -168,9 +199,12 @@ public java.lang.String getDisplayLanguageCode() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -188,6 +222,7 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -221,16 +257,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -239,6 +274,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -287,19 +322,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getDisplayLanguageCode() - .equals(other.getDisplayLanguageCode())) return false; - if (!getModel() - .equals(other.getModel())) return false; + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = + (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; + if (!getModel().equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,131 +356,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -459,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance(); } @@ -480,13 +519,17 @@ public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = + new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -503,46 +546,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GetSupportedLangua public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { - if (other == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { + if (other + == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -584,27 +631,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,10 +665,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -634,14 +688,16 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -650,6 +706,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -666,16 +724,17 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -683,6 +742,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -699,19 +760,25 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -728,7 +795,10 @@ public Builder setParent(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -738,6 +808,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -754,13 +826,17 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -770,6 +846,8 @@ public Builder setParentBytes( private java.lang.Object displayLanguageCode_ = ""; /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -777,13 +855,13 @@ public Builder setParentBytes(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -792,6 +870,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -799,15 +879,14 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -815,6 +894,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -822,18 +903,22 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -841,6 +926,7 @@ public Builder setDisplayLanguageCode(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -850,6 +936,8 @@ public Builder clearDisplayLanguageCode() { return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -857,12 +945,14 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -872,6 +962,8 @@ public Builder setDisplayLanguageCodeBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -889,13 +981,13 @@ public Builder setDisplayLanguageCodeBytes(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -904,6 +996,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -921,15 +1015,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -937,6 +1030,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -954,18 +1049,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -983,6 +1082,7 @@ public Builder setModel(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -992,6 +1092,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -1009,21 +1111,23 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,41 +1137,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) - private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,9 +1185,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java index 05467be3d1ae..35383185f638 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GetSupportedLanguagesRequestOrBuilder extends +public interface GetSupportedLanguagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -24,11 +42,16 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -45,13 +68,17 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -59,10 +86,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -70,12 +100,14 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString - getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -93,10 +125,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -114,8 +149,8 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java similarity index 71% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java index c664292ae449..9d415396e551 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java @@ -1,112 +1,145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Represents a glossary built from user provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ -public final class Glossary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Glossary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary) GlossaryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Glossary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, + com.google.cloud.translate.v3beta1.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder extends + public interface LanguageCodePairOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -114,34 +147,39 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -150,30 +188,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -182,15 +220,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -199,30 +241,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -231,6 +273,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +285,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -273,17 +315,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -305,89 +346,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -397,39 +443,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,13 +488,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } @@ -461,13 +510,17 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = + new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sourceLanguageCode_ = sourceLanguageCode_; @@ -481,38 +534,41 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) other); } else { super.mergeFrom(other); return this; @@ -520,7 +576,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other) { - if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) + return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -557,22 +615,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,23 +643,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -607,21 +671,22 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -629,30 +694,37 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -662,18 +734,22 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -683,19 +759,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -704,21 +782,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -726,30 +805,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -759,24 +845,29 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -789,41 +880,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,17 +929,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface LanguageCodesSetOrBuilder extends + public interface LanguageCodesSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -853,11 +950,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -865,10 +964,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -876,11 +978,14 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -888,58 +993,64 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString - getLanguageCodesBytes(int index); + com.google.protobuf.ByteString getLanguageCodesBytes(int index); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodesSet() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -947,13 +1058,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_; } /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -961,12 +1074,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -974,6 +1090,7 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -981,6 +1098,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -988,15 +1107,16 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1008,8 +1128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1038,15 +1157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1068,89 +1187,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1160,56 +1284,58 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1224,13 +1350,17 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = + new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { languageCodes_.makeImmutable(); @@ -1242,38 +1372,41 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) other); } else { super.mergeFrom(other); return this; @@ -1281,7 +1414,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other) { - if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) + return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1318,18 +1453,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1339,10 +1476,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1350,6 +1489,8 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1357,14 +1498,16 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1372,12 +1515,15 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1385,6 +1531,7 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1392,6 +1539,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1399,14 +1548,16 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1414,13 +1565,15 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1428,6 +1581,8 @@ public Builder setLanguageCodes( return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1435,12 +1590,14 @@ public Builder setLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1448,6 +1605,8 @@ public Builder addLanguageCodes( return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1455,19 +1614,20 @@ public Builder addLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes( - java.lang.Iterable values) { + public Builder addAllLanguageCodes(java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1475,16 +1635,19 @@ public Builder addAllLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1492,12 +1655,14 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; + * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1505,6 +1670,7 @@ public Builder addLanguageCodesBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1517,41 +1683,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1563,22 +1732,26 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int languagesCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object languages_; + public enum LanguagesCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; + private LanguagesCase(int value) { this.value = value; } @@ -1594,33 +1767,40 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: return LANGUAGE_PAIR; - case 4: return LANGUAGE_CODES_SET; - case 0: return LANGUAGES_NOT_SET; - default: return null; + case 3: + return LANGUAGE_PAIR; + case 4: + return LANGUAGE_CODES_SET; + case 0: + return LANGUAGES_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -1629,30 +1809,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1662,11 +1842,14 @@ public java.lang.String getName() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1674,21 +1857,26 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -1696,20 +1884,25 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1717,31 +1910,39 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1749,12 +1950,15 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder get public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1762,19 +1966,26 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1784,17 +1995,22 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+    return inputConfig_ == null
+        ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
+        : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -1805,11 +2021,15 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -1817,11 +2037,15 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ @java.lang.Override @@ -1829,11 +2053,14 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -1843,11 +2070,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1855,11 +2086,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1867,11 +2102,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1879,6 +2117,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1890,16 +2129,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (languagesCase_ == 3) { - output.writeMessage(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + output.writeMessage( + 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - output.writeMessage(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + output.writeMessage( + 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { output.writeMessage(5, getInputConfig()); @@ -1926,28 +2166,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1957,41 +2195,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary other = (com.google.cloud.translate.v3beta1.Glossary) obj; + com.google.cloud.translate.v3beta1.Glossary other = + (com.google.cloud.translate.v3beta1.Glossary) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (getEntryCount() - != other.getEntryCount()) return false; + if (getEntryCount() != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair() - .equals(other.getLanguagePair())) return false; + if (!getLanguagePair().equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet() - .equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2040,132 +2272,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a glossary built from user provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary) com.google.cloud.translate.v3beta1.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, + com.google.cloud.translate.v3beta1.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2199,9 +2435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override @@ -2220,8 +2456,11 @@ public com.google.cloud.translate.v3beta1.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary buildPartial() { - com.google.cloud.translate.v3beta1.Glossary result = new com.google.cloud.translate.v3beta1.Glossary(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Glossary result = + new com.google.cloud.translate.v3beta1.Glossary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2233,34 +2472,27 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = inputConfigBuilder_ == null - ? inputConfig_ - : inputConfigBuilder_.build(); + result.inputConfig_ = + inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && - languagePairBuilder_ != null) { + if (languagesCase_ == 3 && languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && - languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2269,38 +2501,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary) other); } else { super.mergeFrom(other); return this; @@ -2327,17 +2560,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary other) { mergeEndTime(other.getEndTime()); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: { - break; - } + case LANGUAGE_PAIR: + { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: + { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2365,57 +2601,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - input.readMessage( - getLanguagePairFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2425,12 +2660,12 @@ public Builder mergeFrom( } // finally return this; } + private int languagesCase_ = 0; private java.lang.Object languages_; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public Builder clearLanguages() { @@ -2444,19 +2679,21 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2465,21 +2702,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2487,30 +2725,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2520,18 +2765,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2540,13 +2789,19 @@ public Builder setNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> + languagePairBuilder_; /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2554,11 +2809,14 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override @@ -2576,13 +2834,16 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder setLanguagePair( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2596,6 +2857,8 @@ public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.Langu return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2614,18 +2877,26 @@ public Builder setLanguagePair( return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 && - languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 3 + && languages_ + != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + .getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder( + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2641,6 +2912,8 @@ public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.Lan return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2664,16 +2937,21 @@ public Builder clearLanguagePair() { return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder + getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2681,7 +2959,8 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder getL * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -2692,6 +2971,8 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder get } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2699,14 +2980,20 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder get * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -2718,13 +3005,20 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder get } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> + languageCodesSetBuilder_; /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -2732,11 +3026,15 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return The languageCodesSet. */ @java.lang.Override @@ -2754,13 +3052,17 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - public Builder setLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2774,11 +3076,14 @@ public Builder setLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.L return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ public Builder setLanguageCodesSet( com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder builderForValue) { @@ -2792,18 +3097,27 @@ public Builder setLanguageCodesSet( return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 && - languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 4 + && languages_ + != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + .getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder( + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2819,11 +3133,14 @@ public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ public Builder clearLanguageCodesSet() { if (languageCodesSetBuilder_ == null) { @@ -2842,24 +3159,32 @@ public Builder clearLanguageCodesSet() { return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder + getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -2870,21 +3195,30 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder get } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -2897,36 +3231,49 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder get private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.translate.v3beta1.GlossaryInputConfig, + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, + com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -2948,6 +3295,8 @@ public Builder setInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputCo
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -2967,6 +3316,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -2976,9 +3327,10 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          inputConfig_ != null &&
-          inputConfig_ != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && inputConfig_ != null
+            && inputConfig_
+                != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -2991,6 +3343,8 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInput
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3009,6 +3363,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3022,6 +3378,8 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3029,15 +3387,19 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      *
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
-    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
+    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder
+        getInputConfigOrBuilder() {
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null ?
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+        return inputConfig_ == null
+            ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
+            : inputConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3046,26 +3408,32 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputC
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> 
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig,
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
+            com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
-                getInputConfig(),
-                getParentForChildren(),
-                isClean());
+        inputConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GlossaryInputConfig,
+                com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
+                com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
+                getInputConfig(), getParentForChildren(), isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_ ;
+    private int entryCount_;
     /**
+     *
+     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -3073,11 +3441,14 @@ public int getEntryCount() { return entryCount_; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3089,11 +3460,14 @@ public Builder setEntryCount(int value) { return this; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3105,39 +3479,58 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3153,14 +3546,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3171,17 +3567,21 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3194,11 +3594,15 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3211,11 +3615,15 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3223,36 +3631,48 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3260,24 +3680,35 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3288,11 +3719,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3308,14 +3742,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3326,17 +3762,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3349,11 +3788,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3366,11 +3808,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3378,43 +3823,51 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3424,12 +3877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary) private static final com.google.cloud.translate.v3beta1.Glossary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary(); } @@ -3438,27 +3891,27 @@ public static com.google.cloud.translate.v3beta1.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3473,6 +3926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java similarity index 78% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java index d5d80ac45297..6db570106ae1 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) GlossaryInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GlossaryInputConfig() { - } + + private GlossaryInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -110,6 +136,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -117,6 +144,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -143,16 +172,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -183,12 +215,13 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -200,8 +233,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -215,8 +247,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -226,18 +259,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.GlossaryInputConfig other = (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3beta1.GlossaryInputConfig other =
+        (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -267,131 +300,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -426,8 +464,11 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.GlossaryInputConfig result = new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GlossaryInputConfig result = + new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -440,8 +481,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GlossaryInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -450,38 +490,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInput public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig) other); } else { super.mergeFrom(other); return this; @@ -489,15 +530,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -525,19 +569,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -547,12 +591,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -565,8 +609,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -593,6 +642,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -600,6 +650,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -626,6 +678,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -643,6 +696,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -684,6 +739,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -723,6 +780,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -752,10 +811,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -771,6 +833,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -815,6 +879,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -846,6 +912,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -885,6 +953,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -913,14 +983,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -930,9 +1005,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -942,12 +1017,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3beta1.GlossaryInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GlossaryInputConfig();
   }
@@ -956,27 +1031,27 @@ public static com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GlossaryInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GlossaryInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -991,6 +1066,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
similarity index 85%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
index cac321359c9f..02eb6c051740 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryInputConfigOrBuilder extends
+public interface GlossaryInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -34,10 +52,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -64,10 +85,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
similarity index 100%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
similarity index 79%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
index bb8954758e80..f81f9ca76e95 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
@@ -1,53 +1,82 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryOrBuilder extends
+public interface GlossaryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -57,53 +86,73 @@ public interface GlossaryOrBuilder extends com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return The languageCodesSet. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -114,66 +163,91 @@ public interface GlossaryOrBuilder extends
   com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ int getEntryCount(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java index 47d8b92b8df0..508d508c7c7d 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, + com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -67,26 +90,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -95,6 +123,7 @@ public int getNumber() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -103,14 +132,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -119,16 +149,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -138,6 +167,8 @@ public java.lang.String getMimeType() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -160,6 +191,7 @@ public java.lang.String getMimeType() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -167,6 +199,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -189,16 +223,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -225,12 +262,13 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -242,8 +280,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -263,8 +300,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,20 +312,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.InputConfig other = (com.google.cloud.translate.v3beta1.InputConfig) obj;
+    com.google.cloud.translate.v3beta1.InputConfig other =
+        (com.google.cloud.translate.v3beta1.InputConfig) obj;
 
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -318,132 +355,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3beta1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.InputConfig) com.google.cloud.translate.v3beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, + com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.InputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override @@ -479,8 +520,11 @@ public com.google.cloud.translate.v3beta1.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig buildPartial() { - com.google.cloud.translate.v3beta1.InputConfig result = new com.google.cloud.translate.v3beta1.InputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.InputConfig result = + new com.google.cloud.translate.v3beta1.InputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -496,8 +540,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.InputConfig result private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -506,38 +549,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -552,13 +596,15 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -586,24 +632,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,12 +660,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -632,6 +679,8 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -640,13 +689,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -655,6 +704,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -663,15 +714,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -679,6 +729,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -687,18 +739,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -707,6 +763,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -716,6 +773,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -724,12 +783,14 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -738,8 +799,13 @@ public Builder setMimeTypeBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -762,6 +828,7 @@ public Builder setMimeTypeBytes(
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -769,6 +836,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -791,6 +860,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -808,6 +878,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -845,6 +917,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -880,6 +954,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -905,10 +981,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -924,6 +1003,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -964,6 +1045,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -991,6 +1074,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1026,6 +1111,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1050,14 +1137,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1067,9 +1159,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1079,12 +1171,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.InputConfig)
   private static final com.google.cloud.translate.v3beta1.InputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.InputConfig();
   }
@@ -1093,27 +1185,27 @@ public static com.google.cloud.translate.v3beta1.InputConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public InputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public InputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1128,6 +1220,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
similarity index 86%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
index 327cbca77222..76cde0ffa5ee 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface InputConfigOrBuilder extends
+public interface InputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -16,10 +34,13 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -28,12 +49,14 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -56,10 +79,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -82,10 +108,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
similarity index 75%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
index be23ee907b9d..2f4b0893b854 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) ListGlossariesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,33 +45,40 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,12 +122,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -109,9 +139,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -144,16 +179,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -162,9 +196,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -185,6 +222,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -193,14 +231,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -221,16 +260,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -239,6 +277,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -277,8 +315,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -294,21 +331,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesRequest other = (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.translate.v3beta1.ListGlossariesRequest other = + (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,131 +368,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.cloud.translate.v3beta1.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -492,8 +531,11 @@ public com.google.cloud.translate.v3beta1.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesRequest result = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.ListGlossariesRequest result = + new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -518,38 +560,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest) other); } else { super.mergeFrom(other); return this; @@ -557,7 +600,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -602,32 +646,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,22 +686,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -661,20 +715,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -682,28 +739,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -713,17 +781,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -731,14 +805,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -746,12 +823,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -763,12 +843,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -780,6 +863,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -788,13 +873,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -803,6 +888,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -811,15 +898,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -827,6 +913,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -835,18 +923,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -855,6 +947,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -864,6 +957,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -872,12 +967,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -887,6 +984,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -907,13 +1006,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -922,6 +1021,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -942,15 +1043,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -958,6 +1058,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -978,18 +1080,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1010,6 +1116,7 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1019,6 +1126,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1039,21 +1148,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1063,12 +1174,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) private static final com.google.cloud.translate.v3beta1.ListGlossariesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(); } @@ -1077,27 +1188,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1223,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java index 2e12d3cd5f33..be11c428891c 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java @@ -1,44 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesRequestOrBuilder extends +public interface ListGlossariesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -47,10 +77,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -59,12 +92,14 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -85,10 +120,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -109,8 +147,8 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java index 860706a571b6..7c1f6a877695 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) ListGlossariesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List glossaries_; /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -59,6 +81,8 @@ public java.util.List getGlossaries return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -66,11 +90,13 @@ public java.util.List getGlossaries * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -82,6 +108,8 @@ public int getGlossariesCount() { return glossaries_.size(); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -100,15 +130,17 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -116,6 +148,7 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -186,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesResponse other = (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; + com.google.cloud.translate.v3beta1.ListGlossariesResponse other = + (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; - if (!getGlossariesList() - .equals(other.getGlossariesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getGlossariesList().equals(other.getGlossariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,131 +265,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.cloud.translate.v3beta1.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -396,14 +432,18 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesResponse result = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); + com.google.cloud.translate.v3beta1.ListGlossariesResponse result = + new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse)other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) + return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -484,9 +526,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRespon glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGlossariesFieldBuilder() : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGlossariesFieldBuilder() + : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -523,30 +566,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.Glossary m = - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.parser(), - extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3beta1.Glossary m = + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +601,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - glossaries_ = new java.util.ArrayList(glossaries_); + glossaries_ = + new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossariesBuilder_; + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + glossariesBuilder_; /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -585,6 +638,8 @@ public java.util.List getGlossaries } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -599,6 +654,8 @@ public int getGlossariesCount() { } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -613,14 +670,15 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder setGlossaries( - int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +692,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -652,6 +712,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -672,14 +734,15 @@ public Builder addGlossaries(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder addGlossaries( - int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,6 +756,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -711,6 +776,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -729,6 +796,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -739,8 +808,7 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -748,6 +816,8 @@ public Builder addAllGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -765,6 +835,8 @@ public Builder clearGlossaries() { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -782,39 +854,44 @@ public Builder removeGlossaries(int index) { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder( - int index) { + public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder(int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); } else { + return glossaries_.get(index); + } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +899,8 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -829,42 +908,48 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder() + .addBuilder(com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( - int index) { - return getGlossariesFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(int index) { + return getGlossariesFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - glossaries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + glossariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -872,6 +957,8 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -879,13 +966,13 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +981,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -901,15 +990,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1005,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -924,18 +1014,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -943,6 +1037,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1047,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -959,21 +1056,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1082,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) private static final com.google.cloud.translate.v3beta1.ListGlossariesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(); } @@ -997,27 +1096,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java index 4642bd830907..eba0cb31b8ad 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesResponseOrBuilder extends +public interface ListGlossariesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List - getGlossariesList(); + java.util.List getGlossariesList(); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -25,6 +44,8 @@ public interface ListGlossariesResponseOrBuilder extends */ com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -33,25 +54,30 @@ public interface ListGlossariesResponseOrBuilder extends */ int getGlossariesCount(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( - int index); + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -59,10 +85,13 @@ com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -70,8 +99,8 @@ com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java similarity index 88% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java index cf4bf3fa1c41..d50960132abc 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, + com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -159,6 +185,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -166,6 +193,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -241,16 +270,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -330,12 +362,13 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -347,8 +380,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -362,8 +394,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -373,18 +406,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.OutputConfig other = (com.google.cloud.translate.v3beta1.OutputConfig) obj;
+    com.google.cloud.translate.v3beta1.OutputConfig other =
+        (com.google.cloud.translate.v3beta1.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -413,132 +446,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3beta1.OutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.OutputConfig) com.google.cloud.translate.v3beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, + com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.OutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override @@ -573,8 +610,11 @@ public com.google.cloud.translate.v3beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.OutputConfig result = new com.google.cloud.translate.v3beta1.OutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.OutputConfig result = + new com.google.cloud.translate.v3beta1.OutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -587,8 +627,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.OutputConfig resul private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -597,38 +636,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -636,15 +676,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.OutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -672,19 +715,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -694,12 +737,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -712,8 +755,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -789,6 +837,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -796,6 +845,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -871,6 +922,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -888,6 +940,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -978,6 +1032,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1066,6 +1122,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1144,10 +1202,14 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_
+                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -1163,6 +1225,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1256,6 +1320,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1336,6 +1402,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1424,6 +1492,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1501,14 +1571,19 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsDestination,
+            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsDestination,
+                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1518,9 +1593,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1530,12 +1605,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.OutputConfig)
   private static final com.google.cloud.translate.v3beta1.OutputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.OutputConfig();
   }
@@ -1544,27 +1619,27 @@ public static com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public OutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public OutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1579,6 +1654,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
similarity index 94%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
index 3c96e59668b6..f52b193db66f 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface OutputConfigOrBuilder extends
+public interface OutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -83,10 +101,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -162,10 +183,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
index 94104c7b5560..bb7e028c6a16 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
  */
-public final class SupportedLanguage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguage)
     SupportedLanguageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -27,28 +45,32 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3beta1.SupportedLanguage.class,
+            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
+   *
+   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -81,16 +105,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -99,15 +122,19 @@ public java.lang.String getLanguageCode() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -116,30 +143,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -150,11 +177,14 @@ public java.lang.String getDisplayName() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** + * + * *
    * Can be used as source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -165,11 +195,14 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** + * + * *
    * Can be used as target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -178,6 +211,7 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +223,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -219,12 +252,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +265,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.SupportedLanguage other = (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; + com.google.cloud.translate.v3beta1.SupportedLanguage other = + (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getSupportSource() - != other.getSupportSource()) return false; - if (getSupportTarget() - != other.getSupportTarget()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getSupportSource() != other.getSupportSource()) return false; + if (getSupportTarget() != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,109 +293,112 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -375,33 +406,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguage)
       com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3beta1.SupportedLanguage.class,
+              com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.SupportedLanguage.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -435,8 +465,11 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3beta1.SupportedLanguage result = new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.SupportedLanguage result =
+          new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -461,38 +494,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguage
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -500,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance())
+        return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -543,32 +578,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              supportSource_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              supportTarget_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                supportSource_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                supportTarget_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -578,10 +618,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
+     *
+     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -590,13 +633,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -605,6 +648,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -613,15 +658,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -629,6 +673,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -637,18 +683,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -657,6 +707,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -666,6 +717,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -674,12 +727,14 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -689,19 +744,21 @@ public Builder setLanguageCodeBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -710,21 +767,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -732,30 +790,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -765,18 +830,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -784,13 +853,16 @@ public Builder setDisplayNameBytes( return this; } - private boolean supportSource_ ; + private boolean supportSource_; /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -798,11 +870,14 @@ public boolean getSupportSource() { return supportSource_; } /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -814,11 +889,14 @@ public Builder setSupportSource(boolean value) { return this; } /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -828,13 +906,16 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_ ; + private boolean supportTarget_; /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -842,11 +923,14 @@ public boolean getSupportTarget() { return supportTarget_; } /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -858,11 +942,14 @@ public Builder setSupportTarget(boolean value) { return this; } /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -871,9 +958,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguage) private static final com.google.cloud.translate.v3beta1.SupportedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguage(); } @@ -897,27 +984,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,6 +1019,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java index 58290ccfb950..f514bf7fb8b8 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface SupportedLanguageOrBuilder extends +public interface SupportedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -16,10 +34,13 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -28,49 +49,60 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Can be used as source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ boolean getSupportSource(); /** + * + * *
    * Can be used as target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java similarity index 74% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java index 2b25540df510..458b7e8bbb64 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ -public final class SupportedLanguages extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguages) SupportedLanguagesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, + com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -59,6 +81,8 @@ public java.util.List getL
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -67,11 +91,13 @@ public java.util.List getL
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -110,6 +140,7 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +152,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +166,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +176,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.SupportedLanguages other = (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
+    com.google.cloud.translate.v3beta1.SupportedLanguages other =
+        (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -177,131 +206,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguages) com.google.cloud.translate.v3beta1.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, + com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.SupportedLanguages.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override @@ -338,14 +372,18 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3beta1.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3beta1.SupportedLanguages result = new com.google.cloud.translate.v3beta1.SupportedLanguages(this); + com.google.cloud.translate.v3beta1.SupportedLanguages result = + new com.google.cloud.translate.v3beta1.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.SupportedLanguages result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +403,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguages public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages)other); + return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages) other); } else { super.mergeFrom(other); return this; @@ -404,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +463,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages o languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +498,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3beta1.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +528,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList( + languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3beta1.SupportedLanguage, + com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, + com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -515,6 +567,8 @@ public java.util.List getL
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -530,6 +584,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -545,6 +601,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -567,6 +625,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -586,6 +646,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -607,6 +669,8 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.SupportedLanguage
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -629,6 +693,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -648,6 +714,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -667,6 +735,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -678,8 +748,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +756,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -705,6 +776,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -723,6 +796,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -735,6 +810,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -745,11 +822,14 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
     public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -757,8 +837,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +846,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -774,10 +856,12 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -787,10 +871,13 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -798,27 +885,30 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> 
+            com.google.cloud.translate.v3beta1.SupportedLanguage,
+            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
+            com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.SupportedLanguage,
+                com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
+                com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   private static final com.google.cloud.translate.v3beta1.SupportedLanguages DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguages();
   }
@@ -842,27 +932,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SupportedLanguages parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SupportedLanguages parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
index e457d1adcc8a..c3e2f4007068 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface SupportedLanguagesOrBuilder extends
+public interface SupportedLanguagesOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -15,9 +33,10 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -27,6 +46,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -36,6 +57,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -43,9 +66,11 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -53,6 +78,5 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
similarity index 69%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
index 046270e794d9..e1d973149b45 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -28,40 +46,43 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -77,6 +98,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -85,14 +107,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -108,16 +131,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -126,9 +148,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -139,6 +164,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -147,14 +173,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -165,16 +192,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -183,15 +209,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -200,30 +230,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -234,11 +264,16 @@ public java.lang.String getTargetLanguageCode() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -246,32 +281,48 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -280,7 +331,10 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocume
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -288,6 +342,8 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -296,14 +352,21 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -312,17 +375,25 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -340,6 +411,7 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -348,14 +420,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -373,16 +446,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -393,13 +465,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -407,60 +484,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -476,20 +569,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -509,6 +603,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -524,17 +620,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -550,11 +648,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -562,6 +660,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -573,8 +672,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -596,12 +694,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        8);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8);
     getUnknownFields().writeTo(output);
   }
 
@@ -621,29 +715,27 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getDocumentInputConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig());
     }
     if (documentOutputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getDocumentOutputConfig());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getGlossaryConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(8, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -653,38 +745,31 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
+    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other =
+        (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode()
-        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
     if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false;
     if (hasDocumentInputConfig()) {
-      if (!getDocumentInputConfig()
-          .equals(other.getDocumentInputConfig())) return false;
+      if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false;
     }
     if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false;
     if (hasDocumentOutputConfig()) {
-      if (!getDocumentOutputConfig()
-          .equals(other.getDocumentOutputConfig())) return false;
+      if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false;
     }
-    if (!getModel()
-        .equals(other.getModel())) return false;
+    if (!getModel().equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig()
-          .equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -726,153 +811,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) com.google.cloud.translate.v3beta1.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -901,9 +989,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -922,8 +1010,11 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = + new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -940,22 +1031,23 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = + documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = + documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -967,38 +1059,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -1006,7 +1099,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1036,8 +1130,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentReq if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1065,62 +1158,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1130,10 +1230,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1149,13 +1252,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1164,6 +1267,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1179,15 +1284,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1195,6 +1299,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1210,18 +1316,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1237,6 +1347,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1246,6 +1357,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1261,12 +1374,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1276,6 +1391,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1286,13 +1403,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1301,6 +1418,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1311,15 +1430,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1327,6 +1445,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1337,18 +1457,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1359,6 +1483,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1368,6 +1493,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1378,12 +1505,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1393,19 +1522,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1414,21 +1545,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1436,30 +1568,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1469,18 +1608,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1490,41 +1633,61 @@ public Builder setTargetLanguageCodeBytes( private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentInputConfig, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> + documentInputConfigBuilder_; /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder setDocumentInputConfig( + com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1538,11 +1701,15 @@ public Builder setDocumentInputConfig(com.google.cloud.translate.v3beta1.Documen return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder builderForValue) { @@ -1556,17 +1723,23 @@ public Builder setDocumentInputConfig( return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig( + com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - documentInputConfig_ != null && - documentInputConfig_ != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && documentInputConfig_ != null + && documentInputConfig_ + != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1579,11 +1752,15 @@ public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3beta1.Docum return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1596,48 +1773,66 @@ public Builder clearDocumentInputConfig() { return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder + getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null ? - com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentInputConfig, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), - getParentForChildren(), - isClean()); + documentInputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentInputConfig, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), getParentForChildren(), isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1645,8 +1840,13 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocume private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentOutputConfig, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> + documentOutputConfigBuilder_; /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1655,13 +1855,18 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocume
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1670,17 +1875,24 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1689,9 +1901,12 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig( + com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1705,6 +1920,8 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docume return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1713,7 +1930,9 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docume
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder builderForValue) { @@ -1727,6 +1946,8 @@ public Builder setDocumentOutputConfig( return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1735,13 +1956,17 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig( + com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - documentOutputConfig_ != null && - documentOutputConfig_ != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && documentOutputConfig_ != null + && documentOutputConfig_ + != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -1754,6 +1979,8 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docu return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1762,7 +1989,9 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docu
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1775,6 +2004,8 @@ public Builder clearDocumentOutputConfig() { return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1783,14 +2014,19 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder + getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1799,17 +2035,23 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder getDocume
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null ? - com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1818,17 +2060,22 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentOutputConfig, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), - getParentForChildren(), - isClean()); + documentOutputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentOutputConfig, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), getParentForChildren(), isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -1836,6 +2083,8 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1853,13 +2102,13 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1868,6 +2117,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1885,15 +2136,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1901,6 +2151,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1918,18 +2170,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1947,6 +2203,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1956,6 +2213,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1973,12 +2232,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -1988,47 +2249,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2042,13 +2323,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2062,19 +2347,26 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2087,13 +2379,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2106,74 +2402,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2182,10 +2494,13 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder g onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2201,20 +2516,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2234,6 +2550,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2249,17 +2567,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2275,23 +2595,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2306,23 +2628,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2337,17 +2658,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2362,16 +2686,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2381,12 +2703,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateDocumentRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest();
   }
@@ -2395,27 +2717,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateDocumentRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateDocumentRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2430,6 +2752,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
index 6e25f8caa4f9..0d7adac307e9 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateDocumentRequestOrBuilder extends
+public interface TranslateDocumentRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Location to make a regional call.
    *
@@ -23,10 +41,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -42,12 +63,14 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -58,10 +81,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -72,61 +98,82 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -135,11 +182,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -148,11 +200,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -161,11 +218,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -183,10 +245,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -204,45 +269,62 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -259,6 +341,8 @@ public interface TranslateDocumentRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -273,15 +357,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -296,9 +378,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -314,11 +397,13 @@ boolean containsLabels(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -333,6 +418,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
similarity index 67%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
index e7e13e27cd26..08635eb4923a 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
@@ -1,56 +1,78 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -58,18 +80,25 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } /** + * + * *
    * Translated document.
    * 
@@ -77,20 +106,27 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTransla * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { - return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -98,37 +134,52 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -141,6 +192,7 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossa
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -149,14 +201,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -169,16 +222,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -189,11 +241,14 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -201,18 +256,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -220,11 +282,15 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,8 +302,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -260,19 +325,18 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossaryDocumentTranslation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,29 +346,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = + (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation() - .equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation() - .equals(other.getGlossaryDocumentTranslation())) return false; + if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) + return false; } - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -337,131 +399,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.cloud.translate.v3beta1.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -486,13 +553,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance(); } @@ -507,31 +575,36 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = + new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = + documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = + glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +612,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse)other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse) other); } else { super.mergeFrom(other); return this; @@ -578,7 +652,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentResponse other) { - if (other == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) + return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -619,38 +695,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,45 +737,60 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> documentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + documentTranslationBuilder_; /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,6 +804,8 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.Documen return this; } /** + * + * *
      * Translated document.
      * 
@@ -730,17 +824,21 @@ public Builder setDocumentTranslation( return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - documentTranslation_ != null && - documentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && documentTranslation_ != null + && documentTranslation_ + != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -753,6 +851,8 @@ public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.Docum return this; } /** + * + * *
      * Translated document.
      * 
@@ -770,33 +870,42 @@ public Builder clearDocumentTranslation() { return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder + getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null ? - com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } } /** + * + * *
      * Translated document.
      * 
@@ -804,14 +913,17 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocume * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getDocumentTranslation(), - getParentForChildren(), - isClean()); + documentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getDocumentTranslation(), getParentForChildren(), isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -819,47 +931,67 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocume private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + glossaryDocumentTranslationBuilder_; /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -873,13 +1005,17 @@ public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1 return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3beta1.DocumentTranslation.Builder builderForValue) { @@ -893,19 +1029,25 @@ public Builder setGlossaryDocumentTranslation( return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossaryDocumentTranslation_ != null && - glossaryDocumentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossaryDocumentTranslation_ != null + && glossaryDocumentTranslation_ + != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -918,13 +1060,17 @@ public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3bet return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -937,54 +1083,72 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder + getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null ? - com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), - getParentForChildren(), - isClean()); + glossaryDocumentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -992,6 +1156,8 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossa private java.lang.Object model_ = ""; /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1004,13 +1170,13 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossa
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1019,6 +1185,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1031,15 +1199,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1047,6 +1214,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1059,18 +1228,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1083,6 +1256,7 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1092,6 +1266,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1104,12 +1280,14 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1119,41 +1297,58 @@ public Builder setModelBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1167,11 +1362,14 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1185,17 +1383,23 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1208,11 +1412,14 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1225,55 +1432,70 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,12 +1505,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) - private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(); } @@ -1297,27 +1520,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,6 +1555,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java index a4631438ec4c..f107a6051686 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateDocumentResponseOrBuilder extends +public interface TranslateDocumentResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
@@ -35,39 +59,53 @@ public interface TranslateDocumentResponseOrBuilder extends com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -80,10 +118,13 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -96,35 +137,44 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java similarity index 67% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java index a99f5402f33e..78be4e17b6f2 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -11,49 +28,55 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
+            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
+   *
+   *
    * 
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ @java.lang.Override @@ -62,30 +85,30 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** + * + * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -96,12 +119,15 @@ public java.lang.String getGlossary() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** + * + * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -110,6 +136,7 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -142,8 +168,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -153,17 +178,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = + (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; - if (!getGlossary() - .equals(other.getGlossary())) return false; - if (getIgnoreCase() - != other.getIgnoreCase()) return false; + if (!getGlossary().equals(other.getGlossary())) return false; + if (getIgnoreCase() != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,106 +202,111 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -285,33 +314,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
+              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -322,13 +350,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance();
     }
 
@@ -343,13 +372,17 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result =
+          new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
+    private void buildPartial0(
+        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.glossary_ = glossary_;
@@ -363,38 +396,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextGloss
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -402,7 +436,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other) {
-      if (other == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance())
+        return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -437,22 +473,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              glossary_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              ignoreCase_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                glossary_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                ignoreCase_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -462,23 +501,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
+     *
+     *
      * 
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -487,21 +529,22 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -509,30 +552,37 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -542,18 +592,22 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -561,14 +615,17 @@ public Builder setGlossaryBytes( return this; } - private boolean ignoreCase_ ; + private boolean ignoreCase_; /** + * + * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -576,12 +633,15 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** + * + * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -593,12 +653,15 @@ public Builder setIgnoreCase(boolean value) { return this; } /** + * + * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -607,9 +670,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,41 +682,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) - private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,9 +730,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java index e89e78055fa2..25b7f1dab52b 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java @@ -1,41 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextGlossaryConfigOrBuilder extends +public interface TranslateTextGlossaryConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ java.lang.String getGlossary(); /** + * + * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - com.google.protobuf.ByteString - getGlossaryBytes(); + com.google.protobuf.ByteString getGlossaryBytes(); /** + * + * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java similarity index 73% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java index 910b2c66cff2..9202f20107c6 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java @@ -1,27 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ -public final class TranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextRequest) TranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateTextRequest() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -31,41 +48,44 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -74,13 +94,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { return contents_; } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -89,12 +111,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -103,6 +128,7 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -110,6 +136,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -118,24 +146,28 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -144,30 +176,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -176,9 +208,12 @@ public java.lang.String getMimeType() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -188,6 +223,7 @@ public java.lang.String getMimeType() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -196,14 +232,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -213,16 +250,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -231,15 +267,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -248,30 +288,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -280,9 +320,12 @@ public java.lang.String getTargetLanguageCode() { } public static final int PARENT_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -300,7 +343,10 @@ public java.lang.String getTargetLanguageCode() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -309,14 +355,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -334,17 +381,18 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -353,9 +401,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -376,6 +427,7 @@ public java.lang.String getParent() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -384,14 +436,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -412,16 +465,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -432,13 +484,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -446,60 +503,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -514,20 +587,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -546,6 +620,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -560,17 +636,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -585,11 +663,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -597,6 +675,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -608,8 +687,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -631,12 +709,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        10);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
     getUnknownFields().writeTo(output);
   }
 
@@ -667,21 +741,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -691,32 +764,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextRequest other = (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
-
-    if (!getContentsList()
-        .equals(other.getContentsList())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode()
-        .equals(other.getTargetLanguageCode())) return false;
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
+    com.google.cloud.translate.v3beta1.TranslateTextRequest other =
+        (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
+
+    if (!getContentsList().equals(other.getContentsList())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig()
-          .equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -756,159 +822,161 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextRequest) com.google.cloud.translate.v3beta1.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateTextRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -924,9 +992,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @java.lang.Override @@ -945,8 +1013,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateTextRequest result = new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.TranslateTextRequest result = + new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -973,9 +1044,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -987,38 +1057,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1026,7 +1097,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) + return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1065,8 +1137,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1094,59 +1165,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1156,10 +1236,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1167,6 +1249,8 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1175,14 +1259,16 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { contents_.makeImmutable(); return contents_; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1191,12 +1277,15 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1205,6 +1294,7 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1212,6 +1302,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1220,14 +1312,16 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1236,13 +1330,15 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1250,6 +1346,8 @@ public Builder setContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1258,12 +1356,14 @@ public Builder setContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1271,6 +1371,8 @@ public Builder addContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1279,19 +1381,20 @@ public Builder addContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents( - java.lang.Iterable values) { + public Builder addAllContents(java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1300,16 +1403,19 @@ public Builder addAllContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1318,12 +1424,14 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1334,19 +1442,21 @@ public Builder addContentsBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1355,21 +1465,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1377,30 +1488,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1410,18 +1528,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1431,6 +1553,8 @@ public Builder setMimeTypeBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1440,13 +1564,13 @@ public Builder setMimeTypeBytes(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1455,6 +1579,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1464,15 +1590,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1480,6 +1605,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1489,18 +1616,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1510,6 +1641,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1519,6 +1651,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1528,12 +1662,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1543,19 +1679,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1564,21 +1702,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1586,30 +1725,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1619,18 +1765,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1640,6 +1790,8 @@ public Builder setTargetLanguageCodeBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1657,14 +1809,16 @@ public Builder setTargetLanguageCodeBytes(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1673,6 +1827,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1690,16 +1846,17 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1707,6 +1864,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1724,19 +1883,25 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1754,7 +1919,10 @@ public Builder setParent(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1764,6 +1932,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1781,13 +1951,17 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1797,6 +1971,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1817,13 +1993,13 @@ public Builder setParentBytes(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1832,6 +2008,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1852,15 +2030,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1868,6 +2045,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1888,18 +2067,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1920,6 +2103,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1929,6 +2113,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1949,12 +2135,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -1964,47 +2152,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2018,13 +2226,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2038,19 +2250,26 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2063,13 +2282,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2082,74 +2305,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2158,10 +2397,13 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder g onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2176,20 +2418,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2208,6 +2451,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2222,17 +2467,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2247,23 +2494,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2277,23 +2526,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2307,17 +2555,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2331,16 +2582,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2350,12 +2599,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateTextRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextRequest();
   }
@@ -2364,27 +2613,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2399,6 +2648,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
similarity index 81%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
index 8c4f854d1c1f..a2b67beb8821 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateTextRequestOrBuilder extends
+public interface TranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -16,11 +34,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - java.util.List - getContentsList(); + java.util.List getContentsList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -29,10 +49,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ int getContentsCount(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -41,11 +64,14 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -54,35 +80,42 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString - getContentsBytes(int index); + com.google.protobuf.ByteString getContentsBytes(int index); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -92,10 +125,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -105,34 +141,41 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -150,11 +193,16 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -172,13 +220,17 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -199,10 +251,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -223,45 +278,62 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -277,6 +349,8 @@ public interface TranslateTextRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -290,15 +364,13 @@ public interface TranslateTextRequestOrBuilder extends
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -312,9 +384,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -329,11 +402,13 @@ boolean containsLabels(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -347,6 +422,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
similarity index 78%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
index b4ef91e7dab4..133b0fc1347a 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
@@ -1,20 +1,34 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-/**
- * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
- */
-public final class TranslateTextResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
+public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -22,28 +36,32 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
+            com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -57,6 +75,8 @@ public java.util.List getTransla
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -66,11 +86,13 @@ public java.util.List getTransla
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -84,6 +106,8 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -97,6 +121,8 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
     return translations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -112,9 +138,12 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -126,10 +155,13 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List getGlossaryTranslationsList() {
+  public java.util.List
+      getGlossaryTranslationsList() {
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -141,11 +173,13 @@ public java.util.List getGlossar
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -161,6 +195,8 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -176,6 +212,8 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
     return glossaryTranslations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -193,6 +231,7 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -204,8 +243,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -222,12 +260,11 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, glossaryTranslations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -237,17 +274,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextResponse other = (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3beta1.TranslateTextResponse other =
+        (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
 
-    if (!getTranslationsList()
-        .equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList()
-        .equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,127 +309,128 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
       com.google.cloud.translate.v3beta1.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
+              com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +453,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -437,14 +474,18 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextResponse result = new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
+      com.google.cloud.translate.v3beta1.TranslateTextResponse result =
+          new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -473,38 +514,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextRespo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())
+        return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -531,9 +574,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTranslationsFieldBuilder() : null;
+            translationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTranslationsFieldBuilder()
+                    : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -557,9 +601,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getGlossaryTranslationsFieldBuilder() : null;
+            glossaryTranslationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getGlossaryTranslationsFieldBuilder()
+                    : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -591,38 +636,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.translate.v3beta1.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3beta1.Translation.parser(),
-                      extensionRegistry);
-              if (translationsBuilder_ == null) {
-                ensureTranslationsIsMutable();
-                translations_.add(m);
-              } else {
-                translationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 26: {
-              com.google.cloud.translate.v3beta1.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3beta1.Translation.parser(),
-                      extensionRegistry);
-              if (glossaryTranslationsBuilder_ == null) {
-                ensureGlossaryTranslationsIsMutable();
-                glossaryTranslations_.add(m);
-              } else {
-                glossaryTranslationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.translate.v3beta1.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
+                if (translationsBuilder_ == null) {
+                  ensureTranslationsIsMutable();
+                  translations_.add(m);
+                } else {
+                  translationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 26:
+              {
+                com.google.cloud.translate.v3beta1.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
+                if (glossaryTranslationsBuilder_ == null) {
+                  ensureGlossaryTranslationsIsMutable();
+                  glossaryTranslations_.add(m);
+                } else {
+                  glossaryTranslationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -632,21 +678,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List translations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ = new java.util.ArrayList(translations_);
+        translations_ =
+            new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> translationsBuilder_;
+            com.google.cloud.translate.v3beta1.Translation,
+            com.google.cloud.translate.v3beta1.Translation.Builder,
+            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
+        translationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -663,6 +717,8 @@ public java.util.List getTransla
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -679,6 +735,8 @@ public int getTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -695,6 +753,8 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -718,6 +778,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -738,6 +800,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -760,6 +824,8 @@ public Builder addTranslations(com.google.cloud.translate.v3beta1.Translation va
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -783,6 +849,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -803,6 +871,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -823,6 +893,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -835,8 +907,7 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -844,6 +915,8 @@ public Builder addAllTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -863,6 +936,8 @@ public Builder clearTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -882,6 +957,8 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -895,6 +972,8 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -906,11 +985,14 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
     public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
         int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);  } else {
+        return translations_.get(index);
+      } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -919,8 +1001,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsOrBuilderList() {
+    public java.util.List
+        getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -928,6 +1010,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -937,10 +1021,12 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -951,10 +1037,12 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder(
         int index) {
-      return getTranslationsFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -963,38 +1051,49 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsBuilderList() {
+    public java.util.List
+        getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> 
+            com.google.cloud.translate.v3beta1.Translation,
+            com.google.cloud.translate.v3beta1.Translation.Builder,
+            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
-                translations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        translationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.Translation,
+                com.google.cloud.translate.v3beta1.Translation.Builder,
+                com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
+                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
+        glossaryTranslations_ =
+            new java.util.ArrayList(
+                glossaryTranslations_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> glossaryTranslationsBuilder_;
+            com.google.cloud.translate.v3beta1.Translation,
+            com.google.cloud.translate.v3beta1.Translation.Builder,
+            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
+        glossaryTranslationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1003,9 +1102,11 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ - public java.util.List getGlossaryTranslationsList() { + public java.util.List + getGlossaryTranslationsList() { if (glossaryTranslationsBuilder_ == null) { return java.util.Collections.unmodifiableList(glossaryTranslations_); } else { @@ -1013,6 +1114,8 @@ public java.util.List getGlossar } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1021,7 +1124,8 @@ public java.util.List getGlossar
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public int getGlossaryTranslationsCount() { if (glossaryTranslationsBuilder_ == null) { @@ -1031,6 +1135,8 @@ public int getGlossaryTranslationsCount() { } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1039,7 +1145,8 @@ public int getGlossaryTranslationsCount() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1049,6 +1156,8 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1057,7 +1166,8 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1074,6 +1184,8 @@ public Builder setGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1082,7 +1194,8 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1096,6 +1209,8 @@ public Builder setGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1104,7 +1219,8 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Translation value) { if (glossaryTranslationsBuilder_ == null) { @@ -1120,6 +1236,8 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1128,7 +1246,8 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1145,6 +1264,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1153,7 +1274,8 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations( com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1167,6 +1289,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1175,7 +1299,8 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1189,6 +1314,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1197,14 +1324,14 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addAllGlossaryTranslations( java.lang.Iterable values) { if (glossaryTranslationsBuilder_ == null) { ensureGlossaryTranslationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, glossaryTranslations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_); onChanged(); } else { glossaryTranslationsBuilder_.addAllMessages(values); @@ -1212,6 +1339,8 @@ public Builder addAllGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1220,7 +1349,8 @@ public Builder addAllGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder clearGlossaryTranslations() { if (glossaryTranslationsBuilder_ == null) { @@ -1233,6 +1363,8 @@ public Builder clearGlossaryTranslations() { return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1241,7 +1373,8 @@ public Builder clearGlossaryTranslations() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder removeGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1254,6 +1387,8 @@ public Builder removeGlossaryTranslations(int index) { return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1262,13 +1397,16 @@ public Builder removeGlossaryTranslations(int index) {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTranslationsBuilder( int index) { return getGlossaryTranslationsFieldBuilder().getBuilder(index); } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1277,16 +1415,20 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTranslationsOrBuilder( int index) { if (glossaryTranslationsBuilder_ == null) { - return glossaryTranslations_.get(index); } else { + return glossaryTranslations_.get(index); + } else { return glossaryTranslationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1295,10 +1437,11 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ - public java.util.List - getGlossaryTranslationsOrBuilderList() { + public java.util.List + getGlossaryTranslationsOrBuilderList() { if (glossaryTranslationsBuilder_ != null) { return glossaryTranslationsBuilder_.getMessageOrBuilderList(); } else { @@ -1306,6 +1449,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1314,13 +1459,16 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder() { - return getGlossaryTranslationsFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1329,14 +1477,17 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder( int index) { - return getGlossaryTranslationsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1345,18 +1496,25 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ - public java.util.List - getGlossaryTranslationsBuilderList() { + public java.util.List + getGlossaryTranslationsBuilderList() { return getGlossaryTranslationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> + com.google.cloud.translate.v3beta1.Translation, + com.google.cloud.translate.v3beta1.Translation.Builder, + com.google.cloud.translate.v3beta1.TranslationOrBuilder> getGlossaryTranslationsFieldBuilder() { if (glossaryTranslationsBuilder_ == null) { - glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>( + glossaryTranslationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Translation, + com.google.cloud.translate.v3beta1.Translation.Builder, + com.google.cloud.translate.v3beta1.TranslationOrBuilder>( glossaryTranslations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1365,9 +1523,9 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla } return glossaryTranslationsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1377,12 +1535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextResponse) private static final com.google.cloud.translate.v3beta1.TranslateTextResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextResponse(); } @@ -1391,27 +1549,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1426,6 +1584,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java similarity index 85% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java index 3fb798bbb0fa..c887d44f9b2a 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextResponseOrBuilder extends +public interface TranslateTextResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -16,9 +34,10 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List 
-      getTranslationsList();
+  java.util.List getTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -29,6 +48,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   com.google.cloud.translate.v3beta1.Translation getTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -39,6 +60,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   int getTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -47,9 +70,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List 
+  java.util.List
       getTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -58,10 +83,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
-      int index);
+  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -72,9 +98,10 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List 
-      getGlossaryTranslationsList();
+  java.util.List getGlossaryTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -87,6 +114,8 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -99,6 +128,8 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -109,9 +140,11 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List 
+  java.util.List
       getGlossaryTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
index 5ad5286246b5..7731461b8598 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ -public final class Translation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Translation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Translation) TranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Translation() { translatedText_ = ""; model_ = ""; @@ -27,28 +45,32 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, + com.google.cloud.translate.v3beta1.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string translated_text = 1; + * * @return The translatedText. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -79,16 +103,15 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTranslatedText() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -112,6 +138,7 @@ public java.lang.String getTranslatedText() {
    * 
* * string model = 2; + * * @return The model. */ @java.lang.Override @@ -120,14 +147,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -140,16 +168,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -158,9 +185,12 @@ public java.lang.String getModel() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -169,6 +199,7 @@ public java.lang.String getModel() {
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -177,14 +208,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -193,16 +225,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -213,11 +244,14 @@ public java.lang.String getDetectedLanguageCode() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -225,18 +259,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -244,11 +285,15 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -290,8 +334,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -304,23 +347,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Translation other = (com.google.cloud.translate.v3beta1.Translation) obj; + com.google.cloud.translate.v3beta1.Translation other = + (com.google.cloud.translate.v3beta1.Translation) obj; - if (!getTranslatedText() - .equals(other.getTranslatedText())) return false; - if (!getModel() - .equals(other.getModel())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText().equals(other.getTranslatedText())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -348,132 +388,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Translation) com.google.cloud.translate.v3beta1.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, + com.google.cloud.translate.v3beta1.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Translation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override @@ -511,8 +555,11 @@ public com.google.cloud.translate.v3beta1.Translation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Translation buildPartial() { - com.google.cloud.translate.v3beta1.Translation result = new com.google.cloud.translate.v3beta1.Translation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Translation result = + new com.google.cloud.translate.v3beta1.Translation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -529,9 +576,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +585,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Translation) { - return mergeFrom((com.google.cloud.translate.v3beta1.Translation)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Translation) other); } else { super.mergeFrom(other); return this; @@ -623,34 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,10 +710,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object translatedText_ = ""; /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -671,13 +724,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; + * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -686,6 +739,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -693,15 +748,14 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -709,6 +763,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -716,18 +772,22 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -735,6 +795,7 @@ public Builder setTranslatedText(
      * 
* * string translated_text = 1; + * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -744,6 +805,8 @@ public Builder clearTranslatedText() { return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -751,12 +814,14 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -766,6 +831,8 @@ public Builder setTranslatedTextBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -778,13 +845,13 @@ public Builder setTranslatedTextBytes(
      * 
* * string model = 2; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -793,6 +860,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -805,15 +874,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -821,6 +889,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -833,18 +903,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -857,6 +931,7 @@ public Builder setModel(
      * 
* * string model = 2; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -866,6 +941,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -878,12 +955,14 @@ public Builder clearModel() {
      * 
* * string model = 2; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -893,6 +972,8 @@ public Builder setModelBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -901,13 +982,13 @@ public Builder setModelBytes(
      * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -916,6 +997,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -924,15 +1007,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -940,6 +1022,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -948,18 +1032,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -968,6 +1056,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 4; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -977,6 +1066,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -985,12 +1076,14 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1000,41 +1093,58 @@ public Builder setDetectedLanguageCodeBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,11 +1158,14 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1066,17 +1179,23 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1089,11 +1208,14 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1106,55 +1228,70 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,12 +1301,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Translation) private static final com.google.cloud.translate.v3beta1.Translation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Translation(); } @@ -1178,27 +1315,27 @@ public static com.google.cloud.translate.v3beta1.Translation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1350,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java similarity index 78% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java index ed3732dfbd34..0708e2df6059 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslationOrBuilder extends +public interface TranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Translation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -15,10 +33,13 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The translatedText. */ java.lang.String getTranslatedText(); /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -26,12 +47,14 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString - getTranslatedTextBytes(); + com.google.protobuf.ByteString getTranslatedTextBytes(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -44,10 +67,13 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -60,12 +86,14 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -74,10 +102,13 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -86,35 +117,44 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java new file mode 100644 index 000000000000..d5ebbba25ba0 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/translate/v3beta1/transla" + + "tion_service.proto\022 google.cloud.transla" + + "tion.v3beta1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032#google/longrunning/operations.p" + + "roto\032\037google/protobuf/timestamp.proto\"P\n" + + "\033TranslateTextGlossaryConfig\022\026\n\010glossary" + + "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" + + "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" + + "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" + + "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" + + "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" + + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" + + "onfig\030\007 \001(\0132=.google.cloud.translation.v" + + "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" + + "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" + + "ion.v3beta1.TranslateTextRequest.LabelsE" + + "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" + + "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" + + ".translation.v3beta1.Translation\022L\n\025glos" + + "sary_translations\030\003 \003(\0132-.google.cloud.t" + + "ranslation.v3beta1.Translation\"\255\001\n\013Trans" + + "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" + + "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" + + "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" + + "ranslation.v3beta1.TranslateTextGlossary" + + "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" + + "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." + + "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" + + "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" + + "\006labels\030\006 \003(\0132C.google.cloud.translation" + + ".v3beta1.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" + + "nguages\030\001 \003(\01322.google.cloud.translation" + + ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" + + "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" + + "\372A#\n!locations.googleapis.com/Location\022#" + + "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" + + "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" + + "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" + + "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" + + "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" + + "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" + + "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" + + "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" + + "(\0132+.google.cloud.translation.v3beta1.Gc" + + "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" + + "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" + + "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" + + ".cloud.translation.v3beta1.GcsDestinatio" + + "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" + + "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" + + "\0132+.google.cloud.translation.v3beta1.Gcs" + + "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" + + "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" + + "n\030\001 \001(\01320.google.cloud.translation.v3bet" + + "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" + + " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" + + "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" + + "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" + + "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" + + "_input_config\030\004 \001(\01325.google.cloud.trans" + + "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" + + "\022\\\n\026document_output_config\030\005 \001(\01326.googl" + + "e.cloud.translation.v3beta1.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" + + "lossary_config\030\007 \001(\0132=.google.cloud.tran" + + "slation.v3beta1.TranslateTextGlossaryCon" + + "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" + + ".translation.v3beta1.TranslateDocumentRe" + + "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" + + "nse\022S\n\024document_translation\030\001 \001(\01325.goog" + + "le.cloud.translation.v3beta1.DocumentTra" + + "nslation\022\\\n\035glossary_document_translatio" + + "n\030\002 \001(\01325.google.cloud.translation.v3bet" + + "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" + + "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" + + "anslation.v3beta1.TranslateTextGlossaryC" + + "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022\"\n\024source_language_code\030" + + "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" + + "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." + + "translation.v3beta1.BatchTranslateTextRe" + + "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" + + "\030\005 \003(\0132-.google.cloud.translation.v3beta" + + "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" + + "(\0132..google.cloud.translation.v3beta1.Ou" + + "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" + + "oogle.cloud.translation.v3beta1.BatchTra" + + "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" + + "]\n\006labels\030\t \003(\0132G.google.cloud.translati" + + "on.v3beta1.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" + + "oud.translation.v3beta1.TranslateTextGlo" + + "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" + + "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." + + "translation.v3beta1.BatchTranslateMetada" + + "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" + + "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" + + "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" + + "_characters\030\001 \001(\003\022\035\n\025translated_characte" + + "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" + + "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" + + "_source\030\001 \001(\0132+.google.cloud.translation" + + ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" + + "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" + + "\030\003 \001(\0132;.google.cloud.translation.v3beta" + + "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" + + "e_codes_set\030\004 \001(\0132;.google.cloud.transla" + + "tion.v3beta1.Glossary.LanguageCodesSetH\000" + + "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" + + "anslation.v3beta1.GlossaryInputConfig\022\031\n" + + "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" + + "e_language_code\030\001 \001(\t\022\034\n\024target_language" + + "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" + + "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" + + "is.com/Glossary\022=projects/{project}/loca" + + "tions/{location}/glossaries/{glossary}B\013" + + "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" + + "ogle.cloud.translation.v3beta1.GlossaryB" + + "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" + + "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" + + "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" + + " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" + + "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" + + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + + "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" + + "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" + + "ssaries\030\001 \003(\0132*.google.cloud.translation" + + ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " + + "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" + + "ation.v3beta1.CreateGlossaryMetadata.Sta" + + "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" + + "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" + + "tate\030\002 \001(\0162>.google.cloud.translation.v3" + + "beta1.DeleteGlossaryMetadata.State\022/\n\013su" + + "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" + + "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" + + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" + + "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + + "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" + + "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" + + "pis.com/Location\022\"\n\024source_language_code" + + "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " + + "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" + + "e.cloud.translation.v3beta1.BatchDocumen" + + "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" + + "\0132;.google.cloud.translation.v3beta1.Bat" + + "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" + + " \003(\0132K.google.cloud.translation.v3beta1." + + "BatchTranslateDocumentRequest.ModelsEntr" + + "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" + + "ud.translation.v3beta1.BatchTranslateDoc" + + "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" + + "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" + + "anslation.v3beta1.BatchTranslateDocument" + + "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" + + "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" + + "alue\030\002 \001(\0132=.google.cloud.translation.v3" + + "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + + "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" + + "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" + + "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" + + "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" + + "tination\030\001 \001(\01320.google.cloud.translatio" + + "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" + + "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" + + "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " + + "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" + + "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" + + "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" + + "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" + + "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" + + "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" + + "F.google.cloud.translation.v3beta1.Batch" + + "TranslateDocumentMetadata.State\022\023\n\013total" + + "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" + + "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" + + "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" + + "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" + + "aracters\030\010 \001(\003\022!\n\031total_billable_charact" + + "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." + + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + + "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" + + "xt\0226.google.cloud.translation.v3beta1.Tr" + + "anslateTextRequest\0327.google.cloud.transl" + + "ation.v3beta1.TranslateTextResponse\"r\202\323\344" + + "\223\002l\"6/v3beta1/{parent=projects/*/locatio" + + "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" + + "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" + + "ctLanguage\0227.google.cloud.translation.v3" + + "beta1.DetectLanguageRequest\0328.google.clo" + + "ud.translation.v3beta1.DetectLanguageRes" + + "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" + + "7/v3beta1/{parent=projects/*/locations/*" + + "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" + + "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" + + "portedLanguages\022>.google.cloud.translati" + + "on.v3beta1.GetSupportedLanguagesRequest\032" + + "4.google.cloud.translation.v3beta1.Suppo" + + "rtedLanguages\"\233\001\332A\"parent,display_langua" + + "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z1\022//v3beta1/{parent=projects/*}/support" + + "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" + + "le.cloud.translation.v3beta1.TranslateDo" + + "cumentRequest\032;.google.cloud.translation" + + ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" + + "\002?\":/v3beta1/{parent=projects/*/location" + + "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" + + "lateText\022;.google.cloud.translation.v3be" + + "ta1.BatchTranslateTextRequest\032\035.google.l" + + "ongrunning.Operation\"y\312A0\n\026BatchTranslat" + + "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" + + ";/v3beta1/{parent=projects/*/locations/*" + + "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" + + "teDocument\022?.google.cloud.translation.v3" + + "beta1.BatchTranslateDocumentRequest\032\035.go" + + "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" + + "ranslateDocumentResponse\022\036BatchTranslate" + + "DocumentMetadata\332AMparent,source_languag" + + "e_code,target_language_codes,input_confi" + + "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" + + "loud.translation.v3beta1.CreateGlossaryR" + + "equest\032\035.google.longrunning.Operation\"|\312" + + "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" + + "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" + + "rojects/*/locations/*}/glossaries:\010gloss" + + "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" + + "anslation.v3beta1.ListGlossariesRequest\032" + + "8.google.cloud.translation.v3beta1.ListG" + + "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" + + "5\0223/v3beta1/{parent=projects/*/locations" + + "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." + + "cloud.translation.v3beta1.GetGlossaryReq" + + "uest\032*.google.cloud.translation.v3beta1." + + "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" + + "projects/*/locations/*/glossaries/*}\022\337\001\n" + + "\016DeleteGlossary\0227.google.cloud.translati" + + "on.v3beta1.DeleteGlossaryRequest\032\035.googl" + + "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" + + "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" + + "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" + + "ations/*/glossaries/*}\032~\312A\030translate.goo" + + "gleapis.com\322A`https://www.googleapis.com" + + "/auth/cloud-platform,https://www.googlea" + + "pis.com/auth/cloud-translationB\360\001\n\"com.g" + + "oogle.cloud.translate.v3beta1B\027Translati" + + "onServiceProtoP\001ZFcloud.google.com/go/tr" + + "anslation/apiv3beta1/translationpb;trans" + + "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" + + "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" + + "Google::Cloud::Translate::V3beta1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { + "Glossary", "IgnoreCase", + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, + new java.lang.String[] { + "Contents", + "MimeType", + "SourceLanguageCode", + "TargetLanguageCode", + "Parent", + "Model", + "GlossaryConfig", + "Labels", + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, + new java.lang.String[] { + "Translations", "GlossaryTranslations", + }); + internal_static_google_cloud_translation_v3beta1_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Translation_descriptor, + new java.lang.String[] { + "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, + new java.lang.String[] { + "Parent", "Model", "Content", "MimeType", "Labels", "Source", + }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayLanguageCode", "Model", + }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", + }); + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, + new java.lang.String[] { + "InputUri", + }); + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, + new java.lang.String[] { + "MimeType", "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, + new java.lang.String[] { + "OutputUriPrefix", + }); + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, + new java.lang.String[] { + "Content", "GcsSource", "MimeType", "Source", + }); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "MimeType", "Destination", + }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCode", + "DocumentInputConfig", + "DocumentOutputConfig", + "Model", + "GlossaryConfig", + "Labels", + }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, + new java.lang.String[] { + "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", + }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, + new java.lang.String[] { + "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "Models", + "InputConfigs", + "OutputConfig", + "Glossaries", + "Labels", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, + new java.lang.String[] { + "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, + new java.lang.String[] { + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, + new java.lang.String[] { + "Name", + "LanguagePair", + "LanguageCodesSet", + "InputConfig", + "EntryCount", + "SubmitTime", + "EndTime", + "Languages", + }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { + "SourceLanguageCode", "TargetLanguageCode", + }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { + "LanguageCodes", + }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, + new java.lang.String[] { + "Parent", "Glossary", + }); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, + new java.lang.String[] { + "Glossaries", "NextPageToken", + }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { + "Name", "SubmitTime", "EndTime", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "InputConfigs", + "OutputConfig", + "Models", + "Glossaries", + "FormatConversions", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { + "State", + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java deleted file mode 100644 index 2be31aa95c39..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java +++ /dev/null @@ -1,2010 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.stub.TranslationServiceStub; -import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Provides natural language translation operations. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String targetLanguageCode = "targetLanguageCode-106414698";
- *   List contents = new ArrayList<>();
- *   TranslateTextResponse response =
- *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
- * }
- * }
- * - *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources - * such as threads. In the example above, try-with-resources is used, which automatically calls - * close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of TranslationServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newHttpJsonBuilder().build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class TranslationServiceClient implements BackgroundResource { - private final TranslationServiceSettings settings; - private final TranslationServiceStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of TranslationServiceClient with default settings. */ - public static final TranslationServiceClient create() throws IOException { - return create(TranslationServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final TranslationServiceClient create(TranslationServiceSettings settings) - throws IOException { - return new TranslationServiceClient(settings); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(TranslationServiceSettings). - */ - public static final TranslationServiceClient create(TranslationServiceStub stub) { - return new TranslationServiceClient(stub); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected TranslationServiceClient(TranslationServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final TranslationServiceSettings getSettings() { - return settings; - } - - public TranslationServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - LocationName parent, String targetLanguageCode, List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - String parent, String targetLanguageCode, List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(
-   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The `model` type requested for this translation. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

For global (non-regionalized) requests, use `location-id` `global`. For example, - * `projects/{project-number-or-id}/locations/global/models/general/nmt`. - *

If not provided, the default Google model (NMT) will be used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for - * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If - * the source language isn't specified, the API attempts to identify the source language - * automatically and returns the source language within the response. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - LocationName parent, - String model, - String mimeType, - String sourceLanguageCode, - String targetLanguageCode, - List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setMimeType(mimeType) - .setSourceLanguageCode(sourceLanguageCode) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(
-   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The `model` type requested for this translation. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

For global (non-regionalized) requests, use `location-id` `global`. For example, - * `projects/{project-number-or-id}/locations/global/models/general/nmt`. - *

If not provided, the default Google model (NMT) will be used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for - * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If - * the source language isn't specified, the API attempts to identify the source language - * automatically and returns the source language within the response. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - String parent, - String model, - String mimeType, - String sourceLanguageCode, - String targetLanguageCode, - List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setMimeType(mimeType) - .setSourceLanguageCode(sourceLanguageCode) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   TranslateTextResponse response = translationServiceClient.translateText(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText(TranslateTextRequest request) { - return translateTextCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateTextCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateTextResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable translateTextCallable() { - return stub.translateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String content = "content951530617";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param content The content of the input stored as a string. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage( - LocationName parent, String model, String mimeType, String content) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setMimeType(mimeType) - .setContent(content) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String content = "content951530617";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param content The content of the input stored as a string. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage( - String parent, String model, String mimeType, String content) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setMimeType(mimeType) - .setContent(content) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { - return detectLanguageCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.detectLanguageCallable().futureCall(request);
-   *   // Do something.
-   *   DetectLanguageResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - detectLanguageCallable() { - return stub.detectLanguageCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - LocationName parent, String model, String displayLanguageCode) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setDisplayLanguageCode(displayLanguageCode) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - String parent, String model, String displayLanguageCode) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setDisplayLanguageCode(displayLanguageCode) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { - return getSupportedLanguagesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
-   *   // Do something.
-   *   SupportedLanguages response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getSupportedLanguagesCallable() { - return stub.getSupportedLanguagesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .setIsTranslateNativePdfOnly(true)
-   *           .setEnableShadowRemovalNativePdf(true)
-   *           .build();
-   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { - return translateDocumentCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .setIsTranslateNativePdfOnly(true)
-   *           .setEnableShadowRemovalNativePdf(true)
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - translateDocumentCallable() { - return stub.translateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   BatchTranslateResponse response =
-   *       translationServiceClient.batchTranslateTextAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateTextAsync(BatchTranslateTextRequest request) { - return batchTranslateTextOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return stub.batchTranslateTextOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable batchTranslateTextCallable() { - return stub.batchTranslateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - LocationName parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - String parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { - return batchTranslateDocumentOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return stub.batchTranslateDocumentOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchTranslateDocumentCallable() { - return stub.batchTranslateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - LocationName parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setGlossary(glossary) - .build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - String parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - CreateGlossaryRequest request) { - return createGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createGlossaryOperationCallable() { - return stub.createGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.createGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createGlossaryCallable() { - return stub.createGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(LocationName parent) { - ListGlossariesRequest request = - ListGlossariesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(String parent) { - ListGlossariesRequest request = ListGlossariesRequest.newBuilder().setParent(parent).build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { - return listGlossariesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Glossary element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesPagedCallable() { - return stub.listGlossariesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListGlossariesResponse response =
-   *         translationServiceClient.listGlossariesCallable().call(request);
-   *     for (Glossary element : response.getGlossariesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesCallable() { - return stub.listGlossariesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GlossaryName name) { - GetGlossaryRequest request = - GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(String name) { - GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   Glossary response = translationServiceClient.getGlossary(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GetGlossaryRequest request) { - return getGlossaryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getGlossaryCallable() { - return stub.getGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - GlossaryName name) { - DeleteGlossaryRequest request = - DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - String name) { - DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - DeleteGlossaryRequest request) { - return deleteGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   DeleteGlossaryResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable() { - return stub.deleteGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteGlossaryCallable() { - return stub.deleteGlossaryCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListGlossariesPagedResponse - extends AbstractPagedListResponse< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListGlossariesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListGlossariesPagedResponse(ListGlossariesPage page) { - super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGlossariesPage - extends AbstractPage< - ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { - - private ListGlossariesPage( - PageContext context, - ListGlossariesResponse response) { - super(context, response); - } - - private static ListGlossariesPage createEmptyPage() { - return new ListGlossariesPage(null, null); - } - - @Override - protected ListGlossariesPage createPage( - PageContext context, - ListGlossariesResponse response) { - return new ListGlossariesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGlossariesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGlossariesFixedSizeCollection createEmptyCollection() { - return new ListGlossariesFixedSizeCollection(null, 0); - } - - @Override - protected ListGlossariesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGlossariesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java deleted file mode 100644 index 7bd9560be9eb..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java +++ /dev/null @@ -1,375 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class TranslationServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateTextOperationSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateDocumentOperationSettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); - } - - public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) - throws IOException { - return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return TranslationServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return TranslationServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return TranslationServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for TranslationServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(TranslationServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(TranslationServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(TranslationServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(TranslationServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); - } - - public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { - return ((TranslationServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return getStubSettingsBuilder().translateTextSettings(); - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return getStubSettingsBuilder().detectLanguageSettings(); - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getStubSettingsBuilder().getSupportedLanguagesSettings(); - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return getStubSettingsBuilder().translateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return getStubSettingsBuilder().batchTranslateTextSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return getStubSettingsBuilder().batchTranslateTextOperationSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return getStubSettingsBuilder().batchTranslateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return getStubSettingsBuilder().createGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return getStubSettingsBuilder().createGlossaryOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return getStubSettingsBuilder().listGlossariesSettings(); - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getStubSettingsBuilder().getGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return getStubSettingsBuilder().deleteGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return getStubSettingsBuilder().deleteGlossaryOperationSettings(); - } - - @Override - public TranslationServiceSettings build() throws IOException { - return new TranslationServiceSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json deleted file mode 100644 index b5190737c2ce..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.translation.v3", - "libraryPackage": "com.google.cloud.translate.v3", - "services": { - "TranslationService": { - "clients": { - "grpc": { - "libraryClient": "TranslationServiceClient", - "rpcs": { - "BatchTranslateDocument": { - "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] - }, - "BatchTranslateText": { - "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] - }, - "CreateGlossary": { - "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] - }, - "DeleteGlossary": { - "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] - }, - "DetectLanguage": { - "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] - }, - "GetGlossary": { - "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] - }, - "GetSupportedLanguages": { - "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] - }, - "ListGlossaries": { - "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] - }, - "TranslateDocument": { - "methods": ["translateDocument", "translateDocumentCallable"] - }, - "TranslateText": { - "methods": ["translateText", "translateText", "translateText", "translateText", "translateText", "translateTextCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java deleted file mode 100644 index cefd0d9f7223..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Cloud Translation API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= TranslationServiceClient ======================= - * - *

Service Description: Provides natural language translation operations. - * - *

Sample for TranslationServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String targetLanguageCode = "targetLanguageCode-106414698";
- *   List contents = new ArrayList<>();
- *   TranslateTextResponse response =
- *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.translate.v3; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java deleted file mode 100644 index 9bf80365681a..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java deleted file mode 100644 index 248781dac1b5..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceStub extends TranslationServiceStub { - private static final MethodDescriptor - translateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - detectLanguageMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") - .setRequestMarshaller( - ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getSupportedLanguagesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") - .setRequestMarshaller( - ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - translateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listGlossariesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") - .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcTranslationServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings translateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - detectLanguageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getSupportedLanguagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - translateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings batchTranslateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchTranslateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listGlossariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - operationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - operationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - operationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java deleted file mode 100644 index 97038ade44c6..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonTranslationServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java deleted file mode 100644 index 18d3e72b5280..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java +++ /dev/null @@ -1,910 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.HttpRule; -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonTranslationServiceStub extends TranslationServiceStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(DeleteGlossaryMetadata.getDescriptor()) - .add(BatchTranslateResponse.getDescriptor()) - .add(BatchTranslateMetadata.getDescriptor()) - .add(Glossary.getDescriptor()) - .add(CreateGlossaryMetadata.getDescriptor()) - .add(BatchTranslateDocumentResponse.getDescriptor()) - .add(DeleteGlossaryResponse.getDescriptor()) - .add(BatchTranslateDocumentMetadata.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - translateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:translateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3/{parent=projects/*}:translateText") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - detectLanguageMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:detectLanguage", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3/{parent=projects/*}:detectLanguage") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getSupportedLanguagesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}/supportedLanguages", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3/{parent=projects/*}/supportedLanguages") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "displayLanguageCode", request.getDisplayLanguageCode()); - serializer.putQueryParam(fields, "model", request.getModel()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SupportedLanguages.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - translateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:translateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - batchTranslateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:batchTranslateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateTextRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - batchTranslateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:batchTranslateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateDocumentRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - createGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("glossary", request.getGlossary(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listGlossariesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Glossary.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonTranslationServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create( - clientContext, - callableFactory, - typeRegistry, - ImmutableMap.builder() - .put( - "google.longrunning.Operations.CancelOperation", - HttpRule.newBuilder() - .setPost("/v3/{name=projects/*/locations/*/operations/*}:cancel") - .build()) - .put( - "google.longrunning.Operations.DeleteOperation", - HttpRule.newBuilder() - .setDelete("/v3/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.GetOperation", - HttpRule.newBuilder() - .setGet("/v3/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.ListOperations", - HttpRule.newBuilder() - .setGet("/v3/{name=projects/*/locations/*}/operations") - .build()) - .put( - "google.longrunning.Operations.WaitOperation", - HttpRule.newBuilder() - .setPost("/v3/{name=projects/*/locations/*/operations/*}:wait") - .build()) - .build()); - - HttpJsonCallSettings - translateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - detectLanguageTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - getSupportedLanguagesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - translateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings batchTranslateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - batchTranslateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings createGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listGlossariesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(translateTextMethodDescriptor); - methodDescriptors.add(detectLanguageMethodDescriptor); - methodDescriptors.add(getSupportedLanguagesMethodDescriptor); - methodDescriptors.add(translateDocumentMethodDescriptor); - methodDescriptors.add(batchTranslateTextMethodDescriptor); - methodDescriptors.add(batchTranslateDocumentMethodDescriptor); - methodDescriptors.add(createGlossaryMethodDescriptor); - methodDescriptors.add(listGlossariesMethodDescriptor); - methodDescriptors.add(getGlossaryMethodDescriptor); - methodDescriptors.add(deleteGlossaryMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java deleted file mode 100644 index 9b277a5ca6a4..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class TranslationServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable translateTextCallable() { - throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); - } - - public UnaryCallable detectLanguageCallable() { - throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); - } - - public UnaryCallable - getSupportedLanguagesCallable() { - throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); - } - - public UnaryCallable - translateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); - } - - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateTextOperationCallable()"); - } - - public UnaryCallable batchTranslateTextCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); - } - - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateDocumentOperationCallable()"); - } - - public UnaryCallable batchTranslateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); - } - - public OperationCallable - createGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); - } - - public UnaryCallable createGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); - } - - public UnaryCallable - listGlossariesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); - } - - public UnaryCallable listGlossariesCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); - } - - public UnaryCallable getGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); - } - - public OperationCallable - deleteGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); - } - - public UnaryCallable deleteGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java deleted file mode 100644 index 96107b428481..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java +++ /dev/null @@ -1,868 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceStubSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceStubSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class TranslationServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-translation") - .build(); - - private final UnaryCallSettings - translateTextSettings; - private final UnaryCallSettings - detectLanguageSettings; - private final UnaryCallSettings - getSupportedLanguagesSettings; - private final UnaryCallSettings - translateDocumentSettings; - private final UnaryCallSettings batchTranslateTextSettings; - private final OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings - batchTranslateDocumentSettings; - private final OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings createGlossarySettings; - private final OperationCallSettings - createGlossaryOperationSettings; - private final PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings getGlossarySettings; - private final UnaryCallSettings deleteGlossarySettings; - private final OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - - private static final PagedListDescriptor - LIST_GLOSSARIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { - return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListGlossariesRequest injectPageSize( - ListGlossariesRequest payload, int pageSize) { - return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListGlossariesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGlossariesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListGlossariesResponse payload) { - return payload.getGlossariesList() == null - ? ImmutableList.of() - : payload.getGlossariesList(); - } - }; - - private static final PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - LIST_GLOSSARIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListGlossariesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); - return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return translateTextSettings; - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - public TranslationServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcTranslationServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonTranslationServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "translate.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "translate.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - translateTextSettings = settingsBuilder.translateTextSettings().build(); - detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); - getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); - translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); - batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); - batchTranslateTextOperationSettings = - settingsBuilder.batchTranslateTextOperationSettings().build(); - batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); - batchTranslateDocumentOperationSettings = - settingsBuilder.batchTranslateDocumentOperationSettings().build(); - createGlossarySettings = settingsBuilder.createGlossarySettings().build(); - createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); - listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); - getGlossarySettings = settingsBuilder.getGlossarySettings().build(); - deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); - deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); - } - - /** Builder for TranslationServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - translateTextSettings; - private final UnaryCallSettings.Builder - detectLanguageSettings; - private final UnaryCallSettings.Builder - getSupportedLanguagesSettings; - private final UnaryCallSettings.Builder - translateDocumentSettings; - private final UnaryCallSettings.Builder - batchTranslateTextSettings; - private final OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings.Builder - batchTranslateDocumentSettings; - private final OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings.Builder - createGlossarySettings; - private final OperationCallSettings.Builder< - CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> - createGlossaryOperationSettings; - private final PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings.Builder getGlossarySettings; - private final UnaryCallSettings.Builder - deleteGlossarySettings; - private final OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("no_retry_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); - batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); - createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createGlossaryOperationSettings = OperationCallSettings.newBuilder(); - listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); - getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - initDefaults(this); - } - - protected Builder(TranslationServiceStubSettings settings) { - super(settings); - - translateTextSettings = settings.translateTextSettings.toBuilder(); - detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); - getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); - translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); - batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); - batchTranslateTextOperationSettings = - settings.batchTranslateTextOperationSettings.toBuilder(); - batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); - batchTranslateDocumentOperationSettings = - settings.batchTranslateDocumentOperationSettings.toBuilder(); - createGlossarySettings = settings.createGlossarySettings.toBuilder(); - createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); - listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); - getGlossarySettings = settings.getGlossarySettings.toBuilder(); - deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); - deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .translateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .detectLanguageSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getSupportedLanguagesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .translateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchTranslateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchTranslateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listGlossariesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .batchTranslateTextOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .batchTranslateDocumentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - BatchTranslateDocumentResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create( - BatchTranslateDocumentMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return translateTextSettings; - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - @Override - public TranslationServiceStubSettings build() throws IOException { - return new TranslationServiceStubSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json deleted file mode 100644 index 50a0b6fd1797..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json +++ /dev/null @@ -1,1946 +0,0 @@ -[ - { - "name": "com.google.api.ClientLibraryDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryOrganization", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.FieldBehavior", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LaunchStage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$History", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Style", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentTranslation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentTranslation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsDestination$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GlossaryInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GlossaryInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.InputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.InputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.OutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.OutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguages", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguages$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Translation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Translation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - } -] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java deleted file mode 100644 index 2dbe7ffafa73..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationService implements MockGrpcService { - private final MockTranslationServiceImpl serviceImpl; - - public MockTranslationService() { - serviceImpl = new MockTranslationServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java deleted file mode 100644 index f5d5d4f8e4af..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import com.google.api.core.BetaApi; -import com.google.cloud.translate.v3.TranslationServiceGrpc.TranslationServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationServiceImpl extends TranslationServiceImplBase { - private List requests; - private Queue responses; - - public MockTranslationServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void translateText( - TranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateTextResponse) { - requests.add(request); - responseObserver.onNext(((TranslateTextResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateTextResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void detectLanguage( - DetectLanguageRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DetectLanguageResponse) { - requests.add(request); - responseObserver.onNext(((DetectLanguageResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DetectLanguage, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DetectLanguageResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getSupportedLanguages( - GetSupportedLanguagesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SupportedLanguages) { - requests.add(request); - responseObserver.onNext(((SupportedLanguages) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SupportedLanguages.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void translateDocument( - TranslateDocumentRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateDocumentResponse) { - requests.add(request); - responseObserver.onNext(((TranslateDocumentResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateDocumentResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateText( - BatchTranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateDocument( - BatchTranslateDocumentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createGlossary( - CreateGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listGlossaries( - ListGlossariesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListGlossariesResponse) { - requests.add(request); - responseObserver.onNext(((ListGlossariesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListGlossaries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListGlossariesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Glossary) { - requests.add(request); - responseObserver.onNext(((Glossary) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Glossary.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteGlossary( - DeleteGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java deleted file mode 100644 index 1a414ea7557d..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java +++ /dev/null @@ -1,1197 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.translate.v3.stub.HttpJsonTranslationServiceStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonTranslationServiceStub.getMethodDescriptors(), - TranslationServiceSettings.getDefaultEndpoint()); - TranslationServiceSettings settings = - TranslationServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest2() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest3() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest4() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest4() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java deleted file mode 100644 index 9293f056bd67..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java +++ /dev/null @@ -1,1161 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTranslationService mockTranslationService; - private LocalChannelProvider channelProvider; - private TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTranslationService = new MockTranslationService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TranslationServiceSettings settings = - TranslationServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest2() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest3() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest4() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(content, actualRequest.getContent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(content, actualRequest.getContent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); - Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); - Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); - Assert.assertEquals(request.getModel(), actualRequest.getModel()); - Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertEquals( - request.getCustomizedAttribution(), actualRequest.getCustomizedAttribution()); - Assert.assertEquals( - request.getIsTranslateNativePdfOnly(), actualRequest.getIsTranslateNativePdfOnly()); - Assert.assertEquals( - request.getEnableShadowRemovalNativePdf(), actualRequest.getEnableShadowRemovalNativePdf()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals( - request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); - Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); - Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); - Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockTranslationService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockTranslationService.addResponse(expectedResponse); - - String name = "name3373707"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String name = "name3373707"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java deleted file mode 100644 index f773156a3adf..000000000000 --- a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java +++ /dev/null @@ -1,1157 +0,0 @@ -package com.google.cloud.translate.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateTextMethod() { - io.grpc.MethodDescriptor getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDetectLanguageMethod() { - io.grpc.MethodDescriptor getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { - io.grpc.MethodDescriptor getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { - io.grpc.MethodDescriptor getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListGlossariesMethod() { - io.grpc.MethodDescriptor getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGlossaryMethod() { - io.grpc.MethodDescriptor getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.Glossary.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TranslationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static abstract class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateTextResponse translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.Glossary getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateText( - com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText((com.google.cloud.translate.v3.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage((com.google.cloud.translate.v3.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument((com.google.cloud.translate.v3.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText((com.google.cloud.translate.v3.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary((com.google.cloud.translate.v3.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries((com.google.cloud.translate.v3.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary((com.google.cloud.translate.v3.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary((com.google.cloud.translate.v3.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.CreateGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary>( - service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DeleteGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private static abstract class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index cf8b52647f65..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface CreateGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The glossary. - */ - com.google.cloud.translate.v3.Glossary getGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index a062efef4d30..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface DeleteGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 741637e2de6f..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface GetGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java deleted file mode 100644 index ff6ad57a5288..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java +++ /dev/null @@ -1,879 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Translation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/translate/v3/translation_" + - "service.proto\022\033google.cloud.translation." + - "v3\032\034google/api/annotations.proto\032\027google" + - "/api/client.proto\032\037google/api/field_beha" + - "vior.proto\032\031google/api/resource.proto\032#g" + - "oogle/longrunning/operations.proto\032\037goog" + - "le/protobuf/timestamp.proto\"P\n\033Translate" + - "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" + - "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" + - "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" + - "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" + - "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" + - "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" + - "\n!locations.googleapis.com/Location\022\023\n\005m" + - "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" + - "\01328.google.cloud.translation.v3.Translat" + - "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" + - "\0132=.google.cloud.translation.v3.Translat" + - "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" + - "\n\025TranslateTextResponse\022>\n\014translations\030" + - "\001 \003(\0132(.google.cloud.translation.v3.Tran" + - "slation\022G\n\025glossary_translations\030\003 \003(\0132(" + - ".google.cloud.translation.v3.Translation" + - "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" + - "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" + - "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" + - "le.cloud.translation.v3.TranslateTextGlo" + - "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" + - "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" + - "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" + - "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" + - "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" + - "ation.v3.DetectLanguageRequest.LabelsEnt" + - "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + - "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + - "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" + - "nguages\030\001 \003(\0132-.google.cloud.translation" + - ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" + - "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" + - "locations.googleapis.com/Location\022#\n\025dis" + - "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" + - "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" + - "guages\030\001 \003(\0132..google.cloud.translation." + - "v3.SupportedLanguage\"p\n\021SupportedLanguag" + - "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" + - "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" + - "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" + - "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" + - "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" + - "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" + - "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" + - "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" + - "estination\030\001 \001(\0132+.google.cloud.translat" + - "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" + - "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" + - "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" + - "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" + - "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" + - "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" + - "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" + - "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" + - "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" + - "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" + - "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" + - "\n\025document_input_config\030\004 \001(\01320.google.c" + - "loud.translation.v3.DocumentInputConfigB" + - "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." + - "google.cloud.translation.v3.DocumentOutp" + - "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" + - "lossary_config\030\007 \001(\01328.google.cloud.tran" + - "slation.v3.TranslateTextGlossaryConfigB\004" + - "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" + - "slation.v3.TranslateDocumentRequest.Labe" + - "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" + - "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" + - "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" + - "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + - "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + - "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + - "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" + - "nse\022N\n\024document_translation\030\001 \001(\01320.goog" + - "le.cloud.translation.v3.DocumentTranslat" + - "ion\022W\n\035glossary_document_translation\030\002 \001" + - "(\01320.google.cloud.translation.v3.Documen" + - "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" + - "config\030\004 \001(\01328.google.cloud.translation." + - "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" + - "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" + - "\001\002\372A#\n!locations.googleapis.com/Location" + - "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" + - "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" + - "els\030\004 \003(\0132B.google.cloud.translation.v3." + - "BatchTranslateTextRequest.ModelsEntryB\004\342" + - "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" + - "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" + - "tput_config\030\006 \001(\0132).google.cloud.transla" + - "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" + - "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" + - "chTranslateTextRequest.GlossariesEntryB\004" + - "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" + - "slation.v3.BatchTranslateTextRequest.Lab" + - "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" + - "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" + - "oud.translation.v3.TranslateTextGlossary" + - "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" + - "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" + - "lation.v3.BatchTranslateMetadata.State\022\035" + - "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" + - "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" + - "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" + - "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + - "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + - "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" + - "atchTranslateResponse\022\030\n\020total_character" + - "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" + - "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" + - "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" + - "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + - "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " + - "\001(\0132&.google.cloud.translation.v3.GcsSou" + - "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" + - "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" + - ".cloud.translation.v3.Glossary.LanguageC" + - "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." + - "google.cloud.translation.v3.Glossary.Lan" + - "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." + - "google.cloud.translation.v3.GlossaryInpu" + - "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" + - "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" + - "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " + - "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" + - "language_code\030\001 \001(\t\022\034\n\024target_language_c" + - "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" + - "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" + - ".com/Glossary\022=projects/{project}/locati" + - "ons/{location}/glossaries/{glossary}B\013\n\t" + - "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" + - "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + - "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" + - "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" + - "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + - "\372A#\n!translate.googleapis.com/Glossary\"Q" + - "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" + - "A\001\002\372A#\n!translate.googleapis.com/Glossar" + - "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " + - "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" + - "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + - "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + - "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" + - "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" + - "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" + - "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" + - "\030\002 \001(\01629.google.cloud.translation.v3.Cre" + - "ateGlossaryMetadata.State\022/\n\013submit_time" + - "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" + - "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" + - "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" + - "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" + - "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" + - "le.cloud.translation.v3.DeleteGlossaryMe" + - "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" + - "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + - "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + - "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + - "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" + - "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" + - "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" + - "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" + - "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + - "!locations.googleapis.com/Location\022\"\n\024so" + - "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" + - "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" + - "figs\030\004 \003(\01325.google.cloud.translation.v3" + - ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" + - "t_config\030\005 \001(\01326.google.cloud.translatio" + - "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" + - "models\030\006 \003(\0132F.google.cloud.translation." + - "v3.BatchTranslateDocumentRequest.ModelsE" + - "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." + - "cloud.translation.v3.BatchTranslateDocum" + - "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" + - "at_conversions\030\010 \003(\0132Q.google.cloud.tran" + - "slation.v3.BatchTranslateDocumentRequest" + - ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" + - "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" + - "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" + - "\01328.google.cloud.translation.v3.Translat" + - "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" + - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" + - "rce\030\001 \001(\0132&.google.cloud.translation.v3." + - "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" + - "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" + - "ogle.cloud.translation.v3.GcsDestination" + - "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" + - "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" + - "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" + - "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" + - "_characters\030\005 \001(\003\022\035\n\025translated_characte" + - "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" + - "otal_billable_characters\030\010 \001(\003\022/\n\013submit" + - "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + - ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" + - "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" + - "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" + - "on.v3.BatchTranslateDocumentMetadata.Sta" + - "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" + - "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" + - "_billable_pages\030\005 \001(\003\022\030\n\020total_character" + - "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" + - "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" + - "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" + - "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" + - "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" + - "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" + - "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" + - "TranslateText\0221.google.cloud.translation" + - ".v3.TranslateTextRequest\0322.google.cloud." + - "translation.v3.TranslateTextResponse\"\333\001\332" + - "A$parent,target_language_code,contents\332A" + - "Iparent,model,mime_type,source_language_" + - "code,target_language_code,contents\202\323\344\223\002b" + - "\"1/v3/{parent=projects/*/locations/*}:tr" + - "anslateText:\001*Z*\"%/v3/{parent=projects/*" + - "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." + - "google.cloud.translation.v3.DetectLangua" + - "geRequest\0323.google.cloud.translation.v3." + - "DetectLanguageResponse\"\213\001\332A\036parent,model" + - ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" + - "ojects/*/locations/*}:detectLanguage:\001*Z" + - "+\"&/v3/{parent=projects/*}:detectLanguag" + - "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." + - "cloud.translation.v3.GetSupportedLanguag" + - "esRequest\032/.google.cloud.translation.v3." + - "SupportedLanguages\"\221\001\332A\"parent,model,dis" + - "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" + - "ojects/*/locations/*}/supportedLanguages" + - "Z,\022*/v3/{parent=projects/*}/supportedLan" + - "guages\022\304\001\n\021TranslateDocument\0225.google.cl" + - "oud.translation.v3.TranslateDocumentRequ" + - "est\0326.google.cloud.translation.v3.Transl" + - "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" + - "=projects/*/locations/*}:translateDocume" + - "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" + - "oud.translation.v3.BatchTranslateTextReq" + - "uest\032\035.google.longrunning.Operation\"t\312A0" + - "\n\026BatchTranslateResponse\022\026BatchTranslate" + - "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" + - "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" + - "tchTranslateDocument\022:.google.cloud.tran" + - "slation.v3.BatchTranslateDocumentRequest" + - "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" + - "atchTranslateDocumentResponse\022\036BatchTran" + - "slateDocumentMetadata\332AMparent,source_la" + - "nguage_code,target_language_codes,input_" + - "configs,output_config\202\323\344\223\002?\":/v3/{parent" + - "=projects/*/locations/*}:batchTranslateD" + - "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" + - "loud.translation.v3.CreateGlossaryReques" + - "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" + - "lossary\022\026CreateGlossaryMetadata\332A\017parent" + - ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" + - "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" + - "stGlossaries\0222.google.cloud.translation." + - "v3.ListGlossariesRequest\0323.google.cloud." + - "translation.v3.ListGlossariesResponse\"?\332" + - "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" + - "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" + - ".google.cloud.translation.v3.GetGlossary" + - "Request\032%.google.cloud.translation.v3.Gl" + - "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" + - "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" + - "Glossary\0222.google.cloud.translation.v3.D" + - "eleteGlossaryRequest\032\035.google.longrunnin" + - "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" + - "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" + - "v3/{name=projects/*/locations/*/glossari" + - "es/*}\032~\312A\030translate.googleapis.com\322A`htt" + - "ps://www.googleapis.com/auth/cloud-platf" + - "orm,https://www.googleapis.com/auth/clou" + - "d-translationB\321\001\n\035com.google.cloud.trans" + - "late.v3B\027TranslationServiceProtoP\001Z;clou" + - "d.google.com/go/translate/apiv3/translat" + - "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" + - "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" + - "gle::Cloud::Translate::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { "Glossary", "IgnoreCase", }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, - new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, - new java.lang.String[] { "Translations", "GlossaryTranslations", }); - internal_static_google_cloud_translation_v3_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Translation_descriptor, - new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, - new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); - internal_static_google_cloud_translation_v3_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsSource_descriptor, - new java.lang.String[] { "InputUri", }); - internal_static_google_cloud_translation_v3_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_InputConfig_descriptor, - new java.lang.String[] { "MimeType", "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsDestination_descriptor, - new java.lang.String[] { "OutputUriPrefix", }); - internal_static_google_cloud_translation_v3_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, - new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", "CustomizedAttribution", "IsTranslateNativePdfOnly", "EnableShadowRemovalNativePdf", }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, - new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, - new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, - new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, - new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_descriptor, - new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "DisplayName", "Languages", }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { "LanguageCodes", }); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, - new java.lang.String[] { "Parent", "Glossary", }); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, - new java.lang.String[] { "Glossaries", "NextPageToken", }); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", "CustomizedAttribution", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java deleted file mode 100644 index 44ac257f47c2..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ /dev/null @@ -1,1790 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.stub.TranslationServiceStub; -import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Provides natural language translation operations. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   TranslateTextRequest request =
- *       TranslateTextRequest.newBuilder()
- *           .addAllContents(new ArrayList())
- *           .setMimeType("mimeType-1392120434")
- *           .setSourceLanguageCode("sourceLanguageCode1645917472")
- *           .setTargetLanguageCode("targetLanguageCode-106414698")
- *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- *           .setModel("model104069929")
- *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
- *           .putAllLabels(new HashMap())
- *           .build();
- *   TranslateTextResponse response = translationServiceClient.translateText(request);
- * }
- * }
- * - *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources - * such as threads. In the example above, try-with-resources is used, which automatically calls - * close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of TranslationServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newHttpJsonBuilder().build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class TranslationServiceClient implements BackgroundResource { - private final TranslationServiceSettings settings; - private final TranslationServiceStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of TranslationServiceClient with default settings. */ - public static final TranslationServiceClient create() throws IOException { - return create(TranslationServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final TranslationServiceClient create(TranslationServiceSettings settings) - throws IOException { - return new TranslationServiceClient(settings); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(TranslationServiceSettings). - */ - public static final TranslationServiceClient create(TranslationServiceStub stub) { - return new TranslationServiceClient(stub); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected TranslationServiceClient(TranslationServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final TranslationServiceSettings getSettings() { - return settings; - } - - public TranslationServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   TranslateTextResponse response = translationServiceClient.translateText(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText(TranslateTextRequest request) { - return translateTextCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateTextCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateTextResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable translateTextCallable() { - return stub.translateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage( - LocationName parent, String model, String mimeType) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setMimeType(mimeType) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage(String parent, String model, String mimeType) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setMimeType(mimeType) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { - return detectLanguageCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.detectLanguageCallable().futureCall(request);
-   *   // Do something.
-   *   DetectLanguageResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - detectLanguageCallable() { - return stub.detectLanguageCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   String model = "model104069929";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - LocationName parent, String displayLanguageCode, String model) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDisplayLanguageCode(displayLanguageCode) - .setModel(model) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   String model = "model104069929";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - String parent, String displayLanguageCode, String model) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent) - .setDisplayLanguageCode(displayLanguageCode) - .setModel(model) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { - return getSupportedLanguagesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
-   *   // Do something.
-   *   SupportedLanguages response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getSupportedLanguagesCallable() { - return stub.getSupportedLanguagesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { - return translateDocumentCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - translateDocumentCallable() { - return stub.translateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   BatchTranslateResponse response =
-   *       translationServiceClient.batchTranslateTextAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateTextAsync(BatchTranslateTextRequest request) { - return batchTranslateTextOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return stub.batchTranslateTextOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable batchTranslateTextCallable() { - return stub.batchTranslateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - LocationName parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - String parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { - return batchTranslateDocumentOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return stub.batchTranslateDocumentOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchTranslateDocumentCallable() { - return stub.batchTranslateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - LocationName parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setGlossary(glossary) - .build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - String parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - CreateGlossaryRequest request) { - return createGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createGlossaryOperationCallable() { - return stub.createGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.createGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createGlossaryCallable() { - return stub.createGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String filter = "filter-1274492040";
-   *   for (Glossary element :
-   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @param filter Optional. Filter specifying constraints of a list operation. Specify the - * constraint by the format of "key=value", where key must be "src" or "tgt", and the value - * must be a valid language code. For multiple restrictions, concatenate them by "AND" - * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used - * here, which means using 'en-US' and 'en' can lead to different results, which depends on - * the language code you used when you create the glossary. For the unidirectional glossaries, - * the "src" and "tgt" add restrictions on the source and target language code separately. For - * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term - * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries - * which exactly match the source language code as "en-US" and the target language code - * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their - * language set will be picked. If missing, no filtering is performed. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(LocationName parent, String filter) { - ListGlossariesRequest request = - ListGlossariesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setFilter(filter) - .build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String filter = "filter-1274492040";
-   *   for (Glossary element :
-   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @param filter Optional. Filter specifying constraints of a list operation. Specify the - * constraint by the format of "key=value", where key must be "src" or "tgt", and the value - * must be a valid language code. For multiple restrictions, concatenate them by "AND" - * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used - * here, which means using 'en-US' and 'en' can lead to different results, which depends on - * the language code you used when you create the glossary. For the unidirectional glossaries, - * the "src" and "tgt" add restrictions on the source and target language code separately. For - * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term - * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries - * which exactly match the source language code as "en-US" and the target language code - * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their - * language set will be picked. If missing, no filtering is performed. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) { - ListGlossariesRequest request = - ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { - return listGlossariesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Glossary element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesPagedCallable() { - return stub.listGlossariesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListGlossariesResponse response =
-   *         translationServiceClient.listGlossariesCallable().call(request);
-   *     for (Glossary element : response.getGlossariesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesCallable() { - return stub.listGlossariesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GlossaryName name) { - GetGlossaryRequest request = - GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(String name) { - GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   Glossary response = translationServiceClient.getGlossary(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GetGlossaryRequest request) { - return getGlossaryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getGlossaryCallable() { - return stub.getGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - GlossaryName name) { - DeleteGlossaryRequest request = - DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - String name) { - DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - DeleteGlossaryRequest request) { - return deleteGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   DeleteGlossaryResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable() { - return stub.deleteGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteGlossaryCallable() { - return stub.deleteGlossaryCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListGlossariesPagedResponse - extends AbstractPagedListResponse< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListGlossariesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListGlossariesPagedResponse(ListGlossariesPage page) { - super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGlossariesPage - extends AbstractPage< - ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { - - private ListGlossariesPage( - PageContext context, - ListGlossariesResponse response) { - super(context, response); - } - - private static ListGlossariesPage createEmptyPage() { - return new ListGlossariesPage(null, null); - } - - @Override - protected ListGlossariesPage createPage( - PageContext context, - ListGlossariesResponse response) { - return new ListGlossariesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGlossariesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGlossariesFixedSizeCollection createEmptyCollection() { - return new ListGlossariesFixedSizeCollection(null, 0); - } - - @Override - protected ListGlossariesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGlossariesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java deleted file mode 100644 index 33915307ad62..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class TranslationServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateTextOperationSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateDocumentOperationSettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); - } - - public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) - throws IOException { - return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return TranslationServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return TranslationServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return TranslationServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for TranslationServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(TranslationServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(TranslationServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(TranslationServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(TranslationServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); - } - - public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { - return ((TranslationServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return getStubSettingsBuilder().translateTextSettings(); - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return getStubSettingsBuilder().detectLanguageSettings(); - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getStubSettingsBuilder().getSupportedLanguagesSettings(); - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return getStubSettingsBuilder().translateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return getStubSettingsBuilder().batchTranslateTextSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return getStubSettingsBuilder().batchTranslateTextOperationSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return getStubSettingsBuilder().batchTranslateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return getStubSettingsBuilder().createGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return getStubSettingsBuilder().createGlossaryOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return getStubSettingsBuilder().listGlossariesSettings(); - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getStubSettingsBuilder().getGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return getStubSettingsBuilder().deleteGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return getStubSettingsBuilder().deleteGlossaryOperationSettings(); - } - - @Override - public TranslationServiceSettings build() throws IOException { - return new TranslationServiceSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json deleted file mode 100644 index 5cf5bb9020d7..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.translation.v3beta1", - "libraryPackage": "com.google.cloud.translate.v3beta1", - "services": { - "TranslationService": { - "clients": { - "grpc": { - "libraryClient": "TranslationServiceClient", - "rpcs": { - "BatchTranslateDocument": { - "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] - }, - "BatchTranslateText": { - "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] - }, - "CreateGlossary": { - "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] - }, - "DeleteGlossary": { - "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] - }, - "DetectLanguage": { - "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] - }, - "GetGlossary": { - "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] - }, - "GetSupportedLanguages": { - "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] - }, - "ListGlossaries": { - "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] - }, - "TranslateDocument": { - "methods": ["translateDocument", "translateDocumentCallable"] - }, - "TranslateText": { - "methods": ["translateText", "translateTextCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java deleted file mode 100644 index 46b58825f0fb..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Cloud Translation API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= TranslationServiceClient ======================= - * - *

Service Description: Provides natural language translation operations. - * - *

Sample for TranslationServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   TranslateTextRequest request =
- *       TranslateTextRequest.newBuilder()
- *           .addAllContents(new ArrayList())
- *           .setMimeType("mimeType-1392120434")
- *           .setSourceLanguageCode("sourceLanguageCode1645917472")
- *           .setTargetLanguageCode("targetLanguageCode-106414698")
- *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- *           .setModel("model104069929")
- *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
- *           .putAllLabels(new HashMap())
- *           .build();
- *   TranslateTextResponse response = translationServiceClient.translateText(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.translate.v3beta1; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java deleted file mode 100644 index f623f52746f8..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java deleted file mode 100644 index d77b266c740e..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java +++ /dev/null @@ -1,556 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceStub extends TranslationServiceStub { - private static final MethodDescriptor - translateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - detectLanguageMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") - .setRequestMarshaller( - ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getSupportedLanguagesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") - .setRequestMarshaller( - ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - translateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listGlossariesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") - .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcTranslationServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings translateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - detectLanguageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getSupportedLanguagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - translateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings batchTranslateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchTranslateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listGlossariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - operationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - operationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - operationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java deleted file mode 100644 index 0e01b94ccf16..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonTranslationServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java deleted file mode 100644 index df047db06e10..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java +++ /dev/null @@ -1,916 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.HttpRule; -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonTranslationServiceStub extends TranslationServiceStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(BatchTranslateDocumentResponse.getDescriptor()) - .add(Glossary.getDescriptor()) - .add(DeleteGlossaryMetadata.getDescriptor()) - .add(CreateGlossaryMetadata.getDescriptor()) - .add(BatchTranslateMetadata.getDescriptor()) - .add(BatchTranslateDocumentMetadata.getDescriptor()) - .add(DeleteGlossaryResponse.getDescriptor()) - .add(BatchTranslateResponse.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - translateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:translateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3beta1/{parent=projects/*}:translateText") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - detectLanguageMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:detectLanguage", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3beta1/{parent=projects/*}:detectLanguage") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getSupportedLanguagesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}/supportedLanguages", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3beta1/{parent=projects/*}/supportedLanguages") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "displayLanguageCode", request.getDisplayLanguageCode()); - serializer.putQueryParam(fields, "model", request.getModel()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SupportedLanguages.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - translateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:translateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - batchTranslateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:batchTranslateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateTextRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - batchTranslateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:batchTranslateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateDocumentRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - createGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("glossary", request.getGlossary(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listGlossariesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Glossary.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonTranslationServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create( - clientContext, - callableFactory, - typeRegistry, - ImmutableMap.builder() - .put( - "google.longrunning.Operations.CancelOperation", - HttpRule.newBuilder() - .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:cancel") - .build()) - .put( - "google.longrunning.Operations.DeleteOperation", - HttpRule.newBuilder() - .setDelete("/v3beta1/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.GetOperation", - HttpRule.newBuilder() - .setGet("/v3beta1/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.ListOperations", - HttpRule.newBuilder() - .setGet("/v3beta1/{name=projects/*/locations/*}/operations") - .build()) - .put( - "google.longrunning.Operations.WaitOperation", - HttpRule.newBuilder() - .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:wait") - .build()) - .build()); - - HttpJsonCallSettings - translateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - detectLanguageTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - getSupportedLanguagesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - translateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings batchTranslateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - batchTranslateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings createGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listGlossariesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(translateTextMethodDescriptor); - methodDescriptors.add(detectLanguageMethodDescriptor); - methodDescriptors.add(getSupportedLanguagesMethodDescriptor); - methodDescriptors.add(translateDocumentMethodDescriptor); - methodDescriptors.add(batchTranslateTextMethodDescriptor); - methodDescriptors.add(batchTranslateDocumentMethodDescriptor); - methodDescriptors.add(createGlossaryMethodDescriptor); - methodDescriptors.add(listGlossariesMethodDescriptor); - methodDescriptors.add(getGlossaryMethodDescriptor); - methodDescriptors.add(deleteGlossaryMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java deleted file mode 100644 index 7c8a11caf086..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class TranslationServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable translateTextCallable() { - throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); - } - - public UnaryCallable detectLanguageCallable() { - throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); - } - - public UnaryCallable - getSupportedLanguagesCallable() { - throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); - } - - public UnaryCallable - translateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); - } - - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateTextOperationCallable()"); - } - - public UnaryCallable batchTranslateTextCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); - } - - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateDocumentOperationCallable()"); - } - - public UnaryCallable batchTranslateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); - } - - public OperationCallable - createGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); - } - - public UnaryCallable createGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); - } - - public UnaryCallable - listGlossariesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); - } - - public UnaryCallable listGlossariesCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); - } - - public UnaryCallable getGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); - } - - public OperationCallable - deleteGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); - } - - public UnaryCallable deleteGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java deleted file mode 100644 index 8db1ff5aae6d..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java +++ /dev/null @@ -1,869 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceStubSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceStubSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class TranslationServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-translation") - .build(); - - private final UnaryCallSettings - translateTextSettings; - private final UnaryCallSettings - detectLanguageSettings; - private final UnaryCallSettings - getSupportedLanguagesSettings; - private final UnaryCallSettings - translateDocumentSettings; - private final UnaryCallSettings batchTranslateTextSettings; - private final OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings - batchTranslateDocumentSettings; - private final OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings createGlossarySettings; - private final OperationCallSettings - createGlossaryOperationSettings; - private final PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings getGlossarySettings; - private final UnaryCallSettings deleteGlossarySettings; - private final OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - - private static final PagedListDescriptor - LIST_GLOSSARIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { - return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListGlossariesRequest injectPageSize( - ListGlossariesRequest payload, int pageSize) { - return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListGlossariesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGlossariesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListGlossariesResponse payload) { - return payload.getGlossariesList() == null - ? ImmutableList.of() - : payload.getGlossariesList(); - } - }; - - private static final PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - LIST_GLOSSARIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListGlossariesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); - return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return translateTextSettings; - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - public TranslationServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcTranslationServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonTranslationServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "translate.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "translate.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - translateTextSettings = settingsBuilder.translateTextSettings().build(); - detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); - getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); - translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); - batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); - batchTranslateTextOperationSettings = - settingsBuilder.batchTranslateTextOperationSettings().build(); - batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); - batchTranslateDocumentOperationSettings = - settingsBuilder.batchTranslateDocumentOperationSettings().build(); - createGlossarySettings = settingsBuilder.createGlossarySettings().build(); - createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); - listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); - getGlossarySettings = settingsBuilder.getGlossarySettings().build(); - deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); - deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); - } - - /** Builder for TranslationServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - translateTextSettings; - private final UnaryCallSettings.Builder - detectLanguageSettings; - private final UnaryCallSettings.Builder - getSupportedLanguagesSettings; - private final UnaryCallSettings.Builder - translateDocumentSettings; - private final UnaryCallSettings.Builder - batchTranslateTextSettings; - private final OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings.Builder - batchTranslateDocumentSettings; - private final OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings.Builder - createGlossarySettings; - private final OperationCallSettings.Builder< - CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> - createGlossaryOperationSettings; - private final PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings.Builder getGlossarySettings; - private final UnaryCallSettings.Builder - deleteGlossarySettings; - private final OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("no_retry_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); - batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); - createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createGlossaryOperationSettings = OperationCallSettings.newBuilder(); - listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); - getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - initDefaults(this); - } - - protected Builder(TranslationServiceStubSettings settings) { - super(settings); - - translateTextSettings = settings.translateTextSettings.toBuilder(); - detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); - getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); - translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); - batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); - batchTranslateTextOperationSettings = - settings.batchTranslateTextOperationSettings.toBuilder(); - batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); - batchTranslateDocumentOperationSettings = - settings.batchTranslateDocumentOperationSettings.toBuilder(); - createGlossarySettings = settings.createGlossarySettings.toBuilder(); - createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); - listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); - getGlossarySettings = settings.getGlossarySettings.toBuilder(); - deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); - deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .translateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .detectLanguageSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .getSupportedLanguagesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .translateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .batchTranslateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .batchTranslateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .createGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .listGlossariesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .deleteGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .batchTranslateTextOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .batchTranslateDocumentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - BatchTranslateDocumentResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create( - BatchTranslateDocumentMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return translateTextSettings; - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - @Override - public TranslationServiceStubSettings build() throws IOException { - return new TranslationServiceStubSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json deleted file mode 100644 index d3385a0a400e..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json +++ /dev/null @@ -1,1946 +0,0 @@ -[ - { - "name": "com.google.api.ClientLibraryDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryOrganization", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.FieldBehavior", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LaunchStage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$History", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Style", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentTranslation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentTranslation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsDestination$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.InputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.InputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.OutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.OutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguages", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguages$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Translation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Translation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - } -] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java deleted file mode 100644 index 6a2b27a48654..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationService implements MockGrpcService { - private final MockTranslationServiceImpl serviceImpl; - - public MockTranslationService() { - serviceImpl = new MockTranslationServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java deleted file mode 100644 index fa60bcd84b2f..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.translate.v3beta1.TranslationServiceGrpc.TranslationServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationServiceImpl extends TranslationServiceImplBase { - private List requests; - private Queue responses; - - public MockTranslationServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void translateText( - TranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateTextResponse) { - requests.add(request); - responseObserver.onNext(((TranslateTextResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateTextResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void detectLanguage( - DetectLanguageRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DetectLanguageResponse) { - requests.add(request); - responseObserver.onNext(((DetectLanguageResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DetectLanguage, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DetectLanguageResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getSupportedLanguages( - GetSupportedLanguagesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SupportedLanguages) { - requests.add(request); - responseObserver.onNext(((SupportedLanguages) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SupportedLanguages.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void translateDocument( - TranslateDocumentRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateDocumentResponse) { - requests.add(request); - responseObserver.onNext(((TranslateDocumentResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateDocumentResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateText( - BatchTranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateDocument( - BatchTranslateDocumentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createGlossary( - CreateGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listGlossaries( - ListGlossariesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListGlossariesResponse) { - requests.add(request); - responseObserver.onNext(((ListGlossariesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListGlossaries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListGlossariesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Glossary) { - requests.add(request); - responseObserver.onNext(((Glossary) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Glossary.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteGlossary( - DeleteGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java deleted file mode 100644 index 833b24cd2ee2..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java +++ /dev/null @@ -1,1036 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.translate.v3beta1.stub.HttpJsonTranslationServiceStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonTranslationServiceStub.getMethodDescriptors(), - TranslationServiceSettings.getDefaultEndpoint()); - TranslationServiceSettings settings = - TranslationServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateTextResponse actualResponse = client.translateText(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateText(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java deleted file mode 100644 index 49f53b41e820..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java +++ /dev/null @@ -1,1005 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTranslationService mockTranslationService; - private LocalChannelProvider channelProvider; - private TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTranslationService = new MockTranslationService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TranslationServiceSettings settings = - TranslationServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateTextResponse actualResponse = client.translateText(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList()); - Assert.assertEquals(request.getMimeType(), actualRequest.getMimeType()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getModel(), actualRequest.getModel()); - Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateText(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); - Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); - Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); - Assert.assertEquals(request.getModel(), actualRequest.getModel()); - Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals( - request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); - Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); - Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); - Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String name = "name3373707"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String name = "name3373707"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java deleted file mode 100644 index c48a6cfe3d9c..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java +++ /dev/null @@ -1,1157 +0,0 @@ -package com.google.cloud.translate.v3beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateTextMethod() { - io.grpc.MethodDescriptor getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDetectLanguageMethod() { - io.grpc.MethodDescriptor getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { - io.grpc.MethodDescriptor getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { - io.grpc.MethodDescriptor getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListGlossariesMethod() { - io.grpc.MethodDescriptor getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3beta1.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGlossaryMethod() { - io.grpc.MethodDescriptor getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TranslationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static abstract class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.Glossary getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText((com.google.cloud.translate.v3beta1.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage((com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries((com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary((com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary>( - service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private static abstract class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index 148408b6d92a..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface CreateGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The glossary. - */ - com.google.cloud.translate.v3beta1.Glossary getGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 0285761073ae..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface DeleteGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 28d83bb94b87..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface GetGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java deleted file mode 100644 index 47f86e7725fd..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java +++ /dev/null @@ -1,882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Translation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/translate/v3beta1/transla" + - "tion_service.proto\022 google.cloud.transla" + - "tion.v3beta1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032#google/longrunning/operations.p" + - "roto\032\037google/protobuf/timestamp.proto\"P\n" + - "\033TranslateTextGlossaryConfig\022\026\n\010glossary" + - "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" + - "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" + - "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" + - "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" + - "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" + - "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + - "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" + - "onfig\030\007 \001(\0132=.google.cloud.translation.v" + - "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" + - "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" + - "ion.v3beta1.TranslateTextRequest.LabelsE" + - "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" + - "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" + - ".translation.v3beta1.Translation\022L\n\025glos" + - "sary_translations\030\003 \003(\0132-.google.cloud.t" + - "ranslation.v3beta1.Translation\"\255\001\n\013Trans" + - "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" + - "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" + - "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" + - "ranslation.v3beta1.TranslateTextGlossary" + - "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" + - "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." + - "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" + - "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" + - "\006labels\030\006 \003(\0132C.google.cloud.translation" + - ".v3beta1.DetectLanguageRequest.LabelsEnt" + - "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + - "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + - "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" + - "nguages\030\001 \003(\01322.google.cloud.translation" + - ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" + - "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" + - "\372A#\n!locations.googleapis.com/Location\022#" + - "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" + - "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" + - "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" + - "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" + - "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" + - "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" + - "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" + - "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" + - "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" + - "(\0132+.google.cloud.translation.v3beta1.Gc" + - "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" + - "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" + - "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" + - ".cloud.translation.v3beta1.GcsDestinatio" + - "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" + - "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" + - "\0132+.google.cloud.translation.v3beta1.Gcs" + - "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" + - "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" + - "n\030\001 \001(\01320.google.cloud.translation.v3bet" + - "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" + - " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" + - "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" + - "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" + - "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" + - "_input_config\030\004 \001(\01325.google.cloud.trans" + - "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" + - "\022\\\n\026document_output_config\030\005 \001(\01326.googl" + - "e.cloud.translation.v3beta1.DocumentOutp" + - "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" + - "lossary_config\030\007 \001(\0132=.google.cloud.tran" + - "slation.v3beta1.TranslateTextGlossaryCon" + - "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" + - ".translation.v3beta1.TranslateDocumentRe" + - "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + - "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + - "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + - "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" + - "nse\022S\n\024document_translation\030\001 \001(\01325.goog" + - "le.cloud.translation.v3beta1.DocumentTra" + - "nslation\022\\\n\035glossary_document_translatio" + - "n\030\002 \001(\01325.google.cloud.translation.v3bet" + - "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" + - "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" + - "anslation.v3beta1.TranslateTextGlossaryC" + - "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" + - "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + - "is.com/Location\022\"\n\024source_language_code\030" + - "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" + - "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." + - "translation.v3beta1.BatchTranslateTextRe" + - "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" + - "\030\005 \003(\0132-.google.cloud.translation.v3beta" + - "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" + - "(\0132..google.cloud.translation.v3beta1.Ou" + - "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" + - "oogle.cloud.translation.v3beta1.BatchTra" + - "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" + - "]\n\006labels\030\t \003(\0132G.google.cloud.translati" + - "on.v3beta1.BatchTranslateTextRequest.Lab" + - "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" + - "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" + - "oud.translation.v3beta1.TranslateTextGlo" + - "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" + - "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." + - "translation.v3beta1.BatchTranslateMetada" + - "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" + - "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" + - "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" + - "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + - "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + - "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + - "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" + - "_characters\030\001 \001(\003\022\035\n\025translated_characte" + - "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" + - "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" + - "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" + - ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" + - "_source\030\001 \001(\0132+.google.cloud.translation" + - ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" + - "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" + - "\030\003 \001(\0132;.google.cloud.translation.v3beta" + - "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" + - "e_codes_set\030\004 \001(\0132;.google.cloud.transla" + - "tion.v3beta1.Glossary.LanguageCodesSetH\000" + - "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" + - "anslation.v3beta1.GlossaryInputConfig\022\031\n" + - "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" + - "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + - "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" + - "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" + - "e_language_code\030\001 \001(\t\022\034\n\024target_language" + - "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" + - "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" + - "is.com/Glossary\022=projects/{project}/loca" + - "tions/{location}/glossaries/{glossary}B\013" + - "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" + - "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" + - "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" + - "ogle.cloud.translation.v3beta1.GlossaryB" + - "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" + - "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" + - "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" + - " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" + - "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" + - "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + - "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + - "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" + - "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" + - "ssaries\030\001 \003(\0132*.google.cloud.translation" + - ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" + - "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " + - "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" + - "ation.v3beta1.CreateGlossaryMetadata.Sta" + - "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" + - "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + - "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + - "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" + - "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" + - "tate\030\002 \001(\0162>.google.cloud.translation.v3" + - "beta1.DeleteGlossaryMetadata.State\022/\n\013su" + - "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" + - "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" + - "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" + - "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" + - "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + - "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" + - "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" + - "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" + - "pis.com/Location\022\"\n\024source_language_code" + - "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " + - "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" + - "e.cloud.translation.v3beta1.BatchDocumen" + - "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" + - "\0132;.google.cloud.translation.v3beta1.Bat" + - "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" + - " \003(\0132K.google.cloud.translation.v3beta1." + - "BatchTranslateDocumentRequest.ModelsEntr" + - "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" + - "ud.translation.v3beta1.BatchTranslateDoc" + - "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" + - "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" + - "anslation.v3beta1.BatchTranslateDocument" + - "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" + - "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" + - "alue\030\002 \001(\0132=.google.cloud.translation.v3" + - "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + - "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" + - "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" + - "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" + - "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" + - "tination\030\001 \001(\01320.google.cloud.translatio" + - "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" + - "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" + - "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " + - "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" + - "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" + - "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" + - "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" + - "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" + - "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" + - "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" + - "F.google.cloud.translation.v3beta1.Batch" + - "TranslateDocumentMetadata.State\022\023\n\013total" + - "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" + - "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" + - "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" + - "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" + - "aracters\030\010 \001(\003\022!\n\031total_billable_charact" + - "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." + - "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" + - "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + - "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + - "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" + - "xt\0226.google.cloud.translation.v3beta1.Tr" + - "anslateTextRequest\0327.google.cloud.transl" + - "ation.v3beta1.TranslateTextResponse\"r\202\323\344" + - "\223\002l\"6/v3beta1/{parent=projects/*/locatio" + - "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" + - "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" + - "ctLanguage\0227.google.cloud.translation.v3" + - "beta1.DetectLanguageRequest\0328.google.clo" + - "ud.translation.v3beta1.DetectLanguageRes" + - "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" + - "7/v3beta1/{parent=projects/*/locations/*" + - "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" + - "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" + - "portedLanguages\022>.google.cloud.translati" + - "on.v3beta1.GetSupportedLanguagesRequest\032" + - "4.google.cloud.translation.v3beta1.Suppo" + - "rtedLanguages\"\233\001\332A\"parent,display_langua" + - "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" + - "ojects/*/locations/*}/supportedLanguages" + - "Z1\022//v3beta1/{parent=projects/*}/support" + - "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" + - "le.cloud.translation.v3beta1.TranslateDo" + - "cumentRequest\032;.google.cloud.translation" + - ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" + - "\002?\":/v3beta1/{parent=projects/*/location" + - "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" + - "lateText\022;.google.cloud.translation.v3be" + - "ta1.BatchTranslateTextRequest\032\035.google.l" + - "ongrunning.Operation\"y\312A0\n\026BatchTranslat" + - "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" + - ";/v3beta1/{parent=projects/*/locations/*" + - "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" + - "teDocument\022?.google.cloud.translation.v3" + - "beta1.BatchTranslateDocumentRequest\032\035.go" + - "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" + - "ranslateDocumentResponse\022\036BatchTranslate" + - "DocumentMetadata\332AMparent,source_languag" + - "e_code,target_language_codes,input_confi" + - "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" + - "=projects/*/locations/*}:batchTranslateD" + - "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" + - "loud.translation.v3beta1.CreateGlossaryR" + - "equest\032\035.google.longrunning.Operation\"|\312" + - "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" + - "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" + - "rojects/*/locations/*}/glossaries:\010gloss" + - "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" + - "anslation.v3beta1.ListGlossariesRequest\032" + - "8.google.cloud.translation.v3beta1.ListG" + - "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" + - "5\0223/v3beta1/{parent=projects/*/locations" + - "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." + - "cloud.translation.v3beta1.GetGlossaryReq" + - "uest\032*.google.cloud.translation.v3beta1." + - "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" + - "projects/*/locations/*/glossaries/*}\022\337\001\n" + - "\016DeleteGlossary\0227.google.cloud.translati" + - "on.v3beta1.DeleteGlossaryRequest\032\035.googl" + - "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" + - "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" + - "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" + - "ations/*/glossaries/*}\032~\312A\030translate.goo" + - "gleapis.com\322A`https://www.googleapis.com" + - "/auth/cloud-platform,https://www.googlea" + - "pis.com/auth/cloud-translationB\360\001\n\"com.g" + - "oogle.cloud.translate.v3beta1B\027Translati" + - "onServiceProtoP\001ZFcloud.google.com/go/tr" + - "anslation/apiv3beta1/translationpb;trans" + - "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" + - "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" + - "Google::Cloud::Translate::V3beta1b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { "Glossary", "IgnoreCase", }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, - new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, - new java.lang.String[] { "Translations", "GlossaryTranslations", }); - internal_static_google_cloud_translation_v3beta1_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Translation_descriptor, - new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, - new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, - new java.lang.String[] { "InputUri", }); - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, - new java.lang.String[] { "MimeType", "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, - new java.lang.String[] { "OutputUriPrefix", }); - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, - new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, - new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, - new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, - new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, - new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, - new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "Languages", }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { "LanguageCodes", }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, - new java.lang.String[] { "Parent", "Glossary", }); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, - new java.lang.String[] { "Glossaries", "NextPageToken", }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From d019242ade09a43b4a3b926ec395d671fbcfef2a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 28 Jul 2023 19:10:20 +0000 Subject: [PATCH 3/4] docs: Minor formatting PiperOrigin-RevId: 551881351 Source-Link: https://github.com/googleapis/googleapis/commit/b0df582407789f23244adb8d16411ed2947c8e72 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b587001fbf8f25e36a9e132bdb4d38d6e75f2dfa Copy-Tag: eyJwIjoiamF2YS10cmFuc2xhdGUvLk93bEJvdC55YW1sIiwiaCI6ImI1ODcwMDFmYmY4ZjI1ZTM2YTllMTMyYmRiNGQzOGQ2ZTc1ZjJkZmEifQ== --- .../translate/v3/TranslationServiceGrpc.java | 1502 ------------ .../v3beta1/TranslationServiceGrpc.java | 1517 ------------- .../v3/CreateGlossaryRequestOrBuilder.java | 95 - .../v3/DeleteGlossaryRequestOrBuilder.java | 54 - .../v3/GetGlossaryRequestOrBuilder.java | 54 - .../translate/v3/TranslationServiceProto.java | 1021 --------- .../CreateGlossaryRequestOrBuilder.java | 95 - .../DeleteGlossaryRequestOrBuilder.java | 54 - .../v3beta1/GetGlossaryRequestOrBuilder.java | 54 - .../v3beta1/TranslationServiceProto.java | 1023 --------- .../v3/TranslationServiceClient.java | 2010 +++++++++++++++++ .../v3/TranslationServiceSettings.java | 375 +++ .../cloud/translate/v3/gapic_metadata.json | 48 + .../cloud/translate/v3/package-info.java | 46 + ...GrpcTranslationServiceCallableFactory.java | 113 + .../v3/stub/GrpcTranslationServiceStub.java | 548 +++++ ...JsonTranslationServiceCallableFactory.java | 105 + .../stub/HttpJsonTranslationServiceStub.java | 910 ++++++++ .../v3/stub/TranslationServiceStub.java | 143 ++ .../stub/TranslationServiceStubSettings.java | 868 +++++++ .../reflect-config.json | 1946 ++++++++++++++++ .../translate/v3/MockTranslationService.java | 59 + .../v3/MockTranslationServiceImpl.java | 271 +++ .../TranslationServiceClientHttpJsonTest.java | 1197 ++++++++++ .../v3/TranslationServiceClientTest.java | 1161 ++++++++++ .../google/cloud/location/LocationsGrpc.java | 308 +-- .../translate/v3/TranslationServiceGrpc.java | 1157 ++++++++++ .../v3/BatchDocumentInputConfig.java | 384 ++-- .../v3/BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3/BatchDocumentOutputConfig.java | 384 ++-- .../BatchDocumentOutputConfigOrBuilder.java | 26 +- .../v3/BatchTranslateDocumentMetadata.java | 782 +++---- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../v3/BatchTranslateDocumentRequest.java | 1846 ++++++--------- ...atchTranslateDocumentRequestOrBuilder.java | 263 +-- .../v3/BatchTranslateDocumentResponse.java | 712 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../translate/v3/BatchTranslateMetadata.java | 593 ++--- .../v3/BatchTranslateMetadataOrBuilder.java | 41 +- .../translate/v3/BatchTranslateResponse.java | 524 ++--- .../v3/BatchTranslateResponseOrBuilder.java | 43 +- .../v3/BatchTranslateTextRequest.java | 1742 ++++++-------- .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../translate/v3/CreateGlossaryMetadata.java | 565 ++--- .../v3/CreateGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/CreateGlossaryRequest.java | 492 ++-- .../v3/CreateGlossaryRequestOrBuilder.java | 56 + .../translate/v3/DeleteGlossaryMetadata.java | 565 ++--- .../v3/DeleteGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/DeleteGlossaryRequest.java | 347 ++- .../v3/DeleteGlossaryRequestOrBuilder.java | 29 + .../translate/v3/DeleteGlossaryResponse.java | 491 ++-- .../v3/DeleteGlossaryResponseOrBuilder.java | 43 +- .../translate/v3/DetectLanguageRequest.java | 868 +++---- .../v3/DetectLanguageRequestOrBuilder.java | 95 +- .../translate/v3/DetectLanguageResponse.java | 405 ++-- .../v3/DetectLanguageResponseOrBuilder.java | 36 +- .../cloud/translate/v3/DetectedLanguage.java | 346 ++- .../v3/DetectedLanguageOrBuilder.java | 30 +- .../translate/v3/DocumentInputConfig.java | 507 ++--- .../v3/DocumentInputConfigOrBuilder.java | 41 +- .../translate/v3/DocumentOutputConfig.java | 495 ++-- .../v3/DocumentOutputConfigOrBuilder.java | 47 +- .../translate/v3/DocumentTranslation.java | 477 ++-- .../v3/DocumentTranslationOrBuilder.java | 45 +- .../cloud/translate/v3/GcsDestination.java | 312 ++- .../translate/v3/GcsDestinationOrBuilder.java | 27 +- .../google/cloud/translate/v3/GcsSource.java | 309 ++- .../translate/v3/GcsSourceOrBuilder.java | 27 +- .../translate/v3/GetGlossaryRequest.java | 347 ++- .../v3/GetGlossaryRequestOrBuilder.java | 29 + .../v3/GetSupportedLanguagesRequest.java | 496 ++-- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../google/cloud/translate/v3/Glossary.java | 1764 ++++++--------- .../translate/v3/GlossaryInputConfig.java | 381 ++-- .../v3/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3/GlossaryName.java | 0 .../cloud/translate/v3/GlossaryOrBuilder.java | 97 +- .../cloud/translate/v3/InputConfig.java | 443 ++-- .../translate/v3/InputConfigOrBuilder.java | 35 +- .../translate/v3/ListGlossariesRequest.java | 524 ++--- .../v3/ListGlossariesRequestOrBuilder.java | 56 +- .../translate/v3/ListGlossariesResponse.java | 480 ++-- .../v3/ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3/LocationName.java | 0 .../cloud/translate/v3/OutputConfig.java | 443 ++-- .../translate/v3/OutputConfigOrBuilder.java | 44 +- .../cloud/translate/v3/SupportedLanguage.java | 455 ++-- .../v3/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3/SupportedLanguages.java | 406 ++-- .../v3/SupportedLanguagesOrBuilder.java | 36 +- .../v3/TranslateDocumentRequest.java | 1435 +++++------- .../v3/TranslateDocumentRequestOrBuilder.java | 162 +- .../v3/TranslateDocumentResponse.java | 697 ++---- .../TranslateDocumentResponseOrBuilder.java | 63 +- .../v3/TranslateTextGlossaryConfig.java | 356 ++- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../translate/v3/TranslateTextRequest.java | 1153 ++++------ .../v3/TranslateTextRequestOrBuilder.java | 139 +- .../translate/v3/TranslateTextResponse.java | 549 ++--- .../v3/TranslateTextResponseOrBuilder.java | 54 +- .../cloud/translate/v3/Translation.java | 567 ++--- .../translate/v3/TranslationOrBuilder.java | 53 +- .../translate/v3/TranslationServiceProto.java | 879 +++++++ .../translate/v3/translation_service.proto | 6 +- .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...anguageLocationnameStringStringString.java | 0 ...etectLanguageStringStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationname.java | 0 .../SyncListGlossariesString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 ...slateTextLocationnameStringListstring.java | 0 ...ameStringStringStringStringListstring.java | 0 ...ncTranslateTextStringStringListstring.java | 0 ...ingStringStringStringStringListstring.java | 0 .../translatetext/SyncTranslateText.java | 0 .../v3beta1/TranslationServiceClient.java | 1790 +++++++++++++++ .../v3beta1/TranslationServiceSettings.java | 376 +++ .../translate/v3beta1/gapic_metadata.json | 48 + .../cloud/translate/v3beta1/package-info.java | 53 + ...GrpcTranslationServiceCallableFactory.java | 115 + .../stub/GrpcTranslationServiceStub.java | 556 +++++ ...JsonTranslationServiceCallableFactory.java | 105 + .../stub/HttpJsonTranslationServiceStub.java | 916 ++++++++ .../v3beta1/stub/TranslationServiceStub.java | 145 ++ .../stub/TranslationServiceStubSettings.java | 869 +++++++ .../reflect-config.json | 1946 ++++++++++++++++ .../v3beta1/MockTranslationService.java | 59 + .../v3beta1/MockTranslationServiceImpl.java | 271 +++ .../TranslationServiceClientHttpJsonTest.java | 1036 +++++++++ .../v3beta1/TranslationServiceClientTest.java | 1005 +++++++++ .../google/cloud/location/LocationsGrpc.java | 308 +-- .../v3beta1/TranslationServiceGrpc.java | 1157 ++++++++++ .../v3beta1/BatchDocumentInputConfig.java | 384 ++-- .../BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3beta1/BatchDocumentOutputConfig.java | 395 ++-- .../BatchDocumentOutputConfigOrBuilder.java | 26 +- .../BatchTranslateDocumentMetadata.java | 818 +++---- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../BatchTranslateDocumentRequest.java | 1846 ++++++--------- ...atchTranslateDocumentRequestOrBuilder.java | 254 +-- .../BatchTranslateDocumentResponse.java | 733 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../v3beta1/BatchTranslateMetadata.java | 596 ++--- .../BatchTranslateMetadataOrBuilder.java | 41 +- .../v3beta1/BatchTranslateResponse.java | 527 ++--- .../BatchTranslateResponseOrBuilder.java | 43 +- .../v3beta1/BatchTranslateTextRequest.java | 1746 ++++++-------- .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../v3beta1/CreateGlossaryMetadata.java | 568 ++--- .../CreateGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/CreateGlossaryRequest.java | 492 ++-- .../CreateGlossaryRequestOrBuilder.java | 56 + .../v3beta1/DeleteGlossaryMetadata.java | 568 ++--- .../DeleteGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/DeleteGlossaryRequest.java | 350 ++- .../DeleteGlossaryRequestOrBuilder.java | 29 + .../v3beta1/DeleteGlossaryResponse.java | 494 ++-- .../DeleteGlossaryResponseOrBuilder.java | 43 +- .../v3beta1/DetectLanguageRequest.java | 874 +++---- .../DetectLanguageRequestOrBuilder.java | 95 +- .../v3beta1/DetectLanguageResponse.java | 396 ++-- .../DetectLanguageResponseOrBuilder.java | 36 +- .../translate/v3beta1/DetectedLanguage.java | 353 ++- .../v3beta1/DetectedLanguageOrBuilder.java | 30 +- .../v3beta1/DocumentInputConfig.java | 507 ++--- .../v3beta1/DocumentInputConfigOrBuilder.java | 41 +- .../v3beta1/DocumentOutputConfig.java | 502 ++-- .../DocumentOutputConfigOrBuilder.java | 47 +- .../v3beta1/DocumentTranslation.java | 480 ++-- .../v3beta1/DocumentTranslationOrBuilder.java | 45 +- .../translate/v3beta1/GcsDestination.java | 319 ++- .../v3beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/translate/v3beta1/GcsSource.java | 312 ++- .../translate/v3beta1/GcsSourceOrBuilder.java | 27 +- .../translate/v3beta1/GetGlossaryRequest.java | 350 ++- .../v3beta1/GetGlossaryRequestOrBuilder.java | 29 + .../v3beta1/GetSupportedLanguagesRequest.java | 519 ++--- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../cloud/translate/v3beta1/Glossary.java | 1795 ++++++--------- .../v3beta1/GlossaryInputConfig.java | 381 ++-- .../v3beta1/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3beta1/GlossaryName.java | 0 .../translate/v3beta1/GlossaryOrBuilder.java | 100 +- .../cloud/translate/v3beta1/InputConfig.java | 440 ++-- .../v3beta1/InputConfigOrBuilder.java | 35 +- .../v3beta1/ListGlossariesRequest.java | 527 ++--- .../ListGlossariesRequestOrBuilder.java | 56 +- .../v3beta1/ListGlossariesResponse.java | 483 ++-- .../ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3beta1/LocationName.java | 0 .../cloud/translate/v3beta1/OutputConfig.java | 375 ++- .../v3beta1/OutputConfigOrBuilder.java | 26 +- .../translate/v3beta1/SupportedLanguage.java | 459 ++-- .../v3beta1/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3beta1/SupportedLanguages.java | 396 ++-- .../v3beta1/SupportedLanguagesOrBuilder.java | 36 +- .../v3beta1/TranslateDocumentRequest.java | 1274 ++++------- .../TranslateDocumentRequestOrBuilder.java | 150 +- .../v3beta1/TranslateDocumentResponse.java | 747 +++--- .../TranslateDocumentResponseOrBuilder.java | 66 +- .../v3beta1/TranslateTextGlossaryConfig.java | 376 ++- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../v3beta1/TranslateTextRequest.java | 1157 ++++------ .../TranslateTextRequestOrBuilder.java | 142 +- .../v3beta1/TranslateTextResponse.java | 594 ++--- .../TranslateTextResponseOrBuilder.java | 51 +- .../cloud/translate/v3beta1/Translation.java | 595 ++--- .../v3beta1/TranslationOrBuilder.java | 56 +- .../v3beta1/TranslationServiceProto.java | 882 ++++++++ .../v3beta1/translation_service.proto | 0 .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...etectLanguageLocationnameStringString.java | 0 .../SyncDetectLanguageStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationnameString.java | 0 .../SyncListGlossariesStringString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 292 files changed, 42775 insertions(+), 38365 deletions(-) delete mode 100644 java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java delete mode 100644 java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java delete mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java rename {java-translate => owl-bot-staging/java-translate/v3}/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java (77%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java (83%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java (85%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java (92%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java (66%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java (65%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java (60%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java (63%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java (80%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java (56%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java (87%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java (64%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java (52%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java (63%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java (84%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java (86%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java (85%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java (90%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java (80%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java (65%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java (79%) create mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java rename {java-translate => owl-bot-staging/java-translate/v3}/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto (99%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3}/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java (100%) create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java (77%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java (83%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java (84%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java (92%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java (63%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java (65%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java (60%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java (70%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java (63%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java (74%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java (80%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java (68%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java (56%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java (87%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java (76%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java (59%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java (52%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java (62%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java (85%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java (86%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java (75%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java (88%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java (94%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java (74%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java (71%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java (69%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java (79%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java (67%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java (61%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java (73%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java (81%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java (78%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java (85%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java (72%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java (78%) create mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java rename {java-translate => owl-bot-staging/java-translate/v3beta1}/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java (100%) rename {java-translate => owl-bot-staging/java-translate/v3beta1}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java (100%) diff --git a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java deleted file mode 100644 index 2d181242ce0a..000000000000 --- a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java +++ /dev/null @@ -1,1502 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.translate.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse> - getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = - getTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse> - getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = - getDetectLanguageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages> - getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = - getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.SupportedLanguages - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse> - getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = - getTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> - getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> - getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = - getBatchTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = - TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = - getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> - getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = - getCreateGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.CreateGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse> - getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = - getListGlossariesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary> - getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = - getGetGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.Glossary.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> - getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = - getDeleteGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DeleteGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText( - com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectLanguageMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGlossariesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public abstract static class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateTextResponse translateText( - com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.Glossary getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.TranslateTextResponse> - translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.DetectLanguageResponse> - detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.SupportedLanguages> - getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.TranslateDocumentResponse> - translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.ListGlossariesResponse> - listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3.Glossary> - getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText( - (com.google.cloud.translate.v3.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage( - (com.google.cloud.translate.v3.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages( - (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument( - (com.google.cloud.translate.v3.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText( - (com.google.cloud.translate.v3.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument( - (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary( - (com.google.cloud.translate.v3.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries( - (com.google.cloud.translate.v3.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary( - (com.google.cloud.translate.v3.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary( - (com.google.cloud.translate.v3.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.CreateGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary>(service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DeleteGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private abstract static class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java deleted file mode 100644 index c3f4d6158c2e..000000000000 --- a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java +++ /dev/null @@ -1,1517 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.translate.v3beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse> - getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = - getTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = - getDetectLanguageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages> - getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) - == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = - getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.SupportedLanguages - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = - getTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation> - getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = - getBatchTranslateTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation> - getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = - TranslationServiceGrpc.getBatchTranslateDocumentMethod) - == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = - getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation> - getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = - getCreateGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = - getListGlossariesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3beta1.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary> - getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = - getGetGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation> - getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = - getDeleteGlossaryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectLanguageMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGlossariesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlossaryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public abstract static class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.Glossary getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - * - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.TranslateTextResponse> - translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.DetectLanguageResponse> - detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.SupportedLanguages> - getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.TranslateDocumentResponse> - translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.ListGlossariesResponse> - listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.translate.v3beta1.Glossary> - getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText( - (com.google.cloud.translate.v3beta1.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.TranslateTextResponse>) - responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage( - (com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.DetectLanguageResponse>) - responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages( - (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument( - (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>) - responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText( - (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument( - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary( - (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries( - (com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.translate.v3beta1.ListGlossariesResponse>) - responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary( - (com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary( - (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary>(service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private abstract static class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index 7d76230e64de..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface CreateGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The glossary. - */ - com.google.cloud.translate.v3.Glossary getGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 10e9ed863205..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface DeleteGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index bddba5a37dcb..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface GetGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java deleted file mode 100644 index 51734e862e27..000000000000 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java +++ /dev/null @@ -1,1021 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Translation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/translate/v3/translation_" - + "service.proto\022\033google.cloud.translation." - + "v3\032\034google/api/annotations.proto\032\027google" - + "/api/client.proto\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\032#g" - + "oogle/longrunning/operations.proto\032\037goog" - + "le/protobuf/timestamp.proto\"P\n\033Translate" - + "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" - + "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" - + "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" - + "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" - + "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" - + "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" - + "\n!locations.googleapis.com/Location\022\023\n\005m" - + "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" - + "\01328.google.cloud.translation.v3.Translat" - + "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" - + "\0132=.google.cloud.translation.v3.Translat" - + "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" - + "\n\025TranslateTextResponse\022>\n\014translations\030" - + "\001 \003(\0132(.google.cloud.translation.v3.Tran" - + "slation\022G\n\025glossary_translations\030\003 \003(\0132(" - + ".google.cloud.translation.v3.Translation" - + "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" - + "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" - + "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" - + "le.cloud.translation.v3.TranslateTextGlo" - + "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" - + "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" - + "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" - + "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" - + "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" - + "ation.v3.DetectLanguageRequest.LabelsEnt" - + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" - + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" - + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" - + "nguages\030\001 \003(\0132-.google.cloud.translation" - + ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" - + "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" - + "locations.googleapis.com/Location\022#\n\025dis" - + "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" - + "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" - + "guages\030\001 \003(\0132..google.cloud.translation." - + "v3.SupportedLanguage\"p\n\021SupportedLanguag" - + "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" - + "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" - + "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" - + "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" - + "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" - + "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" - + "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" - + "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" - + "estination\030\001 \001(\0132+.google.cloud.translat" - + "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" - + "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" - + "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" - + "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" - + "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" - + "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" - + "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" - + "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" - + "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" - + "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" - + "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" - + "\n\025document_input_config\030\004 \001(\01320.google.c" - + "loud.translation.v3.DocumentInputConfigB" - + "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." - + "google.cloud.translation.v3.DocumentOutp" - + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" - + "lossary_config\030\007 \001(\01328.google.cloud.tran" - + "slation.v3.TranslateTextGlossaryConfigB\004" - + "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" - + "slation.v3.TranslateDocumentRequest.Labe" - + "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" - + "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" - + "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" - + "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" - + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" - + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" - + "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" - + "nse\022N\n\024document_translation\030\001 \001(\01320.goog" - + "le.cloud.translation.v3.DocumentTranslat" - + "ion\022W\n\035glossary_document_translation\030\002 \001" - + "(\01320.google.cloud.translation.v3.Documen" - + "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" - + "config\030\004 \001(\01328.google.cloud.translation." - + "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" - + "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" - + "\001\002\372A#\n!locations.googleapis.com/Location" - + "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" - + "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" - + "els\030\004 \003(\0132B.google.cloud.translation.v3." - + "BatchTranslateTextRequest.ModelsEntryB\004\342" - + "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" - + "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" - + "tput_config\030\006 \001(\0132).google.cloud.transla" - + "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" - + "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" - + "chTranslateTextRequest.GlossariesEntryB\004" - + "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" - + "slation.v3.BatchTranslateTextRequest.Lab" - + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" - + "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" - + "oud.translation.v3.TranslateTextGlossary" - + "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" - + "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" - + "lation.v3.BatchTranslateMetadata.State\022\035" - + "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" - + "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" - + "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" - + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" - + "atchTranslateResponse\022\030\n\020total_character" - + "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" - + "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" - + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" - + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" - + "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " - + "\001(\0132&.google.cloud.translation.v3.GcsSou" - + "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" - + "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" - + ".cloud.translation.v3.Glossary.LanguageC" - + "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." - + "google.cloud.translation.v3.Glossary.Lan" - + "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." - + "google.cloud.translation.v3.GlossaryInpu" - + "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" - + "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" - + "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " - + "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" - + "language_code\030\001 \001(\t\022\034\n\024target_language_c" - + "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" - + "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" - + ".com/Glossary\022=projects/{project}/locati" - + "ons/{location}/glossaries/{glossary}B\013\n\t" - + "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" - + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" - + "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" - + "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" - + "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" - + "\372A#\n!translate.googleapis.com/Glossary\"Q" - + "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" - + "A\001\002\372A#\n!translate.googleapis.com/Glossar" - + "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " - + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" - + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" - + "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" - + "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" - + "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" - + "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" - + "\030\002 \001(\01629.google.cloud.translation.v3.Cre" - + "ateGlossaryMetadata.State\022/\n\013submit_time" - + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" - + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" - + "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" - + "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" - + "le.cloud.translation.v3.DeleteGlossaryMe" - + "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" - + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" - + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" - + "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" - + "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" - + "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" - + "!locations.googleapis.com/Location\022\"\n\024so" - + "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" - + "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" - + "figs\030\004 \003(\01325.google.cloud.translation.v3" - + ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" - + "t_config\030\005 \001(\01326.google.cloud.translatio" - + "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" - + "models\030\006 \003(\0132F.google.cloud.translation." - + "v3.BatchTranslateDocumentRequest.ModelsE" - + "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." - + "cloud.translation.v3.BatchTranslateDocum" - + "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" - + "at_conversions\030\010 \003(\0132Q.google.cloud.tran" - + "slation.v3.BatchTranslateDocumentRequest" - + ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" - + "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" - + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" - + "\01328.google.cloud.translation.v3.Translat" - + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" - + "rce\030\001 \001(\0132&.google.cloud.translation.v3." - + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" - + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" - + "ogle.cloud.translation.v3.GcsDestination" - + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" - + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" - + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" - + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" - + "_characters\030\005 \001(\003\022\035\n\025translated_characte" - + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" - + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" - + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" - + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" - + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" - + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" - + "on.v3.BatchTranslateDocumentMetadata.Sta" - + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" - + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" - + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" - + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" - + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" - + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" - + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" - + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" - + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" - + "TranslateText\0221.google.cloud.translation" - + ".v3.TranslateTextRequest\0322.google.cloud." - + "translation.v3.TranslateTextResponse\"\333\001\332" - + "A$parent,target_language_code,contents\332A" - + "Iparent,model,mime_type,source_language_" - + "code,target_language_code,contents\202\323\344\223\002b" - + "\"1/v3/{parent=projects/*/locations/*}:tr" - + "anslateText:\001*Z*\"%/v3/{parent=projects/*" - + "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." - + "google.cloud.translation.v3.DetectLangua" - + "geRequest\0323.google.cloud.translation.v3." - + "DetectLanguageResponse\"\213\001\332A\036parent,model" - + ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" - + "ojects/*/locations/*}:detectLanguage:\001*Z" - + "+\"&/v3/{parent=projects/*}:detectLanguag" - + "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." - + "cloud.translation.v3.GetSupportedLanguag" - + "esRequest\032/.google.cloud.translation.v3." - + "SupportedLanguages\"\221\001\332A\"parent,model,dis" - + "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" - + "ojects/*/locations/*}/supportedLanguages" - + "Z,\022*/v3/{parent=projects/*}/supportedLan" - + "guages\022\304\001\n\021TranslateDocument\0225.google.cl" - + "oud.translation.v3.TranslateDocumentRequ" - + "est\0326.google.cloud.translation.v3.Transl" - + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" - + "=projects/*/locations/*}:translateDocume" - + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" - + "oud.translation.v3.BatchTranslateTextReq" - + "uest\032\035.google.longrunning.Operation\"t\312A0" - + "\n\026BatchTranslateResponse\022\026BatchTranslate" - + "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" - + "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" - + "tchTranslateDocument\022:.google.cloud.tran" - + "slation.v3.BatchTranslateDocumentRequest" - + "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" - + "atchTranslateDocumentResponse\022\036BatchTran" - + "slateDocumentMetadata\332AMparent,source_la" - + "nguage_code,target_language_codes,input_" - + "configs,output_config\202\323\344\223\002?\":/v3/{parent" - + "=projects/*/locations/*}:batchTranslateD" - + "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" - + "loud.translation.v3.CreateGlossaryReques" - + "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" - + "lossary\022\026CreateGlossaryMetadata\332A\017parent" - + ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" - + "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" - + "stGlossaries\0222.google.cloud.translation." - + "v3.ListGlossariesRequest\0323.google.cloud." - + "translation.v3.ListGlossariesResponse\"?\332" - + "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" - + "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" - + ".google.cloud.translation.v3.GetGlossary" - + "Request\032%.google.cloud.translation.v3.Gl" - + "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" - + "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" - + "Glossary\0222.google.cloud.translation.v3.D" - + "eleteGlossaryRequest\032\035.google.longrunnin" - + "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" - + "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" - + "v3/{name=projects/*/locations/*/glossari" - + "es/*}\032~\312A\030translate.googleapis.com\322A`htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/clou" - + "d-translationB\321\001\n\035com.google.cloud.trans" - + "late.v3B\027TranslationServiceProtoP\001Z;clou" - + "d.google.com/go/translate/apiv3/translat" - + "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" - + "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" - + "gle::Cloud::Translate::V3b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { - "Glossary", "IgnoreCase", - }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, - new java.lang.String[] { - "Contents", - "MimeType", - "SourceLanguageCode", - "TargetLanguageCode", - "Parent", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, - new java.lang.String[] { - "Translations", "GlossaryTranslations", - }); - internal_static_google_cloud_translation_v3_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Translation_descriptor, - new java.lang.String[] { - "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, - new java.lang.String[] { - "Parent", "Model", "Content", "MimeType", "Labels", "Source", - }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayLanguageCode", "Model", - }); - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", - }); - internal_static_google_cloud_translation_v3_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsSource_descriptor, - new java.lang.String[] { - "InputUri", - }); - internal_static_google_cloud_translation_v3_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_InputConfig_descriptor, - new java.lang.String[] { - "MimeType", "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsDestination_descriptor, - new java.lang.String[] { - "OutputUriPrefix", - }); - internal_static_google_cloud_translation_v3_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, - new java.lang.String[] { - "Content", "GcsSource", "MimeType", "Source", - }); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "MimeType", "Destination", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCode", - "DocumentInputConfig", - "DocumentOutputConfig", - "Model", - "GlossaryConfig", - "Labels", - "CustomizedAttribution", - "IsTranslateNativePdfOnly", - "EnableShadowRemovalNativePdf", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, - new java.lang.String[] { - "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", - }); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, - new java.lang.String[] { - "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "Models", - "InputConfigs", - "OutputConfig", - "Glossaries", - "Labels", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, - new java.lang.String[] { - "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, - new java.lang.String[] { - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_descriptor, - new java.lang.String[] { - "Name", - "LanguagePair", - "LanguageCodesSet", - "InputConfig", - "EntryCount", - "SubmitTime", - "EndTime", - "DisplayName", - "Languages", - }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { - "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { - "LanguageCodes", - }); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, - new java.lang.String[] { - "Parent", "Glossary", - }); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, - new java.lang.String[] { - "Glossaries", "NextPageToken", - }); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { - "Name", "SubmitTime", "EndTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "InputConfigs", - "OutputConfig", - "Models", - "Glossaries", - "FormatConversions", - "CustomizedAttribution", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { - "State", - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index b9810ef60902..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface CreateGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The glossary. - */ - com.google.cloud.translate.v3beta1.Glossary getGlossary(); - /** - * - * - *
-   * Required. The glossary to create.
-   * 
- * - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 153d3300edb2..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface DeleteGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index fda4692c0f60..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface GetGlossaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java deleted file mode 100644 index d5ebbba25ba0..000000000000 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java +++ /dev/null @@ -1,1023 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Translation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/translate/v3beta1/transla" - + "tion_service.proto\022 google.cloud.transla" - + "tion.v3beta1\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032#google/longrunning/operations.p" - + "roto\032\037google/protobuf/timestamp.proto\"P\n" - + "\033TranslateTextGlossaryConfig\022\026\n\010glossary" - + "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" - + "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" - + "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" - + "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" - + "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" - + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" - + "onfig\030\007 \001(\0132=.google.cloud.translation.v" - + "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" - + "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" - + "ion.v3beta1.TranslateTextRequest.LabelsE" - + "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" - + "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" - + ".translation.v3beta1.Translation\022L\n\025glos" - + "sary_translations\030\003 \003(\0132-.google.cloud.t" - + "ranslation.v3beta1.Translation\"\255\001\n\013Trans" - + "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" - + "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" - + "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" - + "ranslation.v3beta1.TranslateTextGlossary" - + "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" - + "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." - + "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" - + "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" - + "\006labels\030\006 \003(\0132C.google.cloud.translation" - + ".v3beta1.DetectLanguageRequest.LabelsEnt" - + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" - + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" - + "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" - + "nguages\030\001 \003(\01322.google.cloud.translation" - + ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" - + "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" - + "\372A#\n!locations.googleapis.com/Location\022#" - + "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" - + "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" - + "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" - + "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" - + "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" - + "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" - + "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" - + "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" - + "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" - + "(\0132+.google.cloud.translation.v3beta1.Gc" - + "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" - + "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" - + "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" - + ".cloud.translation.v3beta1.GcsDestinatio" - + "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" - + "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" - + "\0132+.google.cloud.translation.v3beta1.Gcs" - + "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" - + "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" - + "n\030\001 \001(\01320.google.cloud.translation.v3bet" - + "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" - + " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" - + "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" - + "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" - + "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" - + "_input_config\030\004 \001(\01325.google.cloud.trans" - + "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" - + "\022\\\n\026document_output_config\030\005 \001(\01326.googl" - + "e.cloud.translation.v3beta1.DocumentOutp" - + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" - + "lossary_config\030\007 \001(\0132=.google.cloud.tran" - + "slation.v3beta1.TranslateTextGlossaryCon" - + "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" - + ".translation.v3beta1.TranslateDocumentRe" - + "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" - + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" - + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" - + "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" - + "nse\022S\n\024document_translation\030\001 \001(\01325.goog" - + "le.cloud.translation.v3beta1.DocumentTra" - + "nslation\022\\\n\035glossary_document_translatio" - + "n\030\002 \001(\01325.google.cloud.translation.v3bet" - + "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" - + "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" - + "anslation.v3beta1.TranslateTextGlossaryC" - + "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" - + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" - + "is.com/Location\022\"\n\024source_language_code\030" - + "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" - + "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." - + "translation.v3beta1.BatchTranslateTextRe" - + "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" - + "\030\005 \003(\0132-.google.cloud.translation.v3beta" - + "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" - + "(\0132..google.cloud.translation.v3beta1.Ou" - + "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" - + "oogle.cloud.translation.v3beta1.BatchTra" - + "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" - + "]\n\006labels\030\t \003(\0132G.google.cloud.translati" - + "on.v3beta1.BatchTranslateTextRequest.Lab" - + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" - + "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" - + "oud.translation.v3beta1.TranslateTextGlo" - + "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" - + "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." - + "translation.v3beta1.BatchTranslateMetada" - + "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" - + "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" - + "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" - + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" - + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" - + "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" - + "_characters\030\001 \001(\003\022\035\n\025translated_characte" - + "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" - + "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" - + ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" - + "_source\030\001 \001(\0132+.google.cloud.translation" - + ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" - + "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" - + "\030\003 \001(\0132;.google.cloud.translation.v3beta" - + "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" - + "e_codes_set\030\004 \001(\0132;.google.cloud.transla" - + "tion.v3beta1.Glossary.LanguageCodesSetH\000" - + "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" - + "anslation.v3beta1.GlossaryInputConfig\022\031\n" - + "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" - + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" - + "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" - + "e_language_code\030\001 \001(\t\022\034\n\024target_language" - + "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" - + "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" - + "is.com/Glossary\022=projects/{project}/loca" - + "tions/{location}/glossaries/{glossary}B\013" - + "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" - + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" - + "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" - + "ogle.cloud.translation.v3beta1.GlossaryB" - + "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" - + "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" - + "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" - + " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" - + "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" - + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" - + "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" - + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" - + "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" - + "ssaries\030\001 \003(\0132*.google.cloud.translation" - + ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " - + "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" - + "ation.v3beta1.CreateGlossaryMetadata.Sta" - + "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" - + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" - + "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" - + "tate\030\002 \001(\0162>.google.cloud.translation.v3" - + "beta1.DeleteGlossaryMetadata.State\022/\n\013su" - + "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" - + "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" - + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" - + "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" - + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" - + "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" - + "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" - + "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" - + "pis.com/Location\022\"\n\024source_language_code" - + "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " - + "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" - + "e.cloud.translation.v3beta1.BatchDocumen" - + "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" - + "\0132;.google.cloud.translation.v3beta1.Bat" - + "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" - + " \003(\0132K.google.cloud.translation.v3beta1." - + "BatchTranslateDocumentRequest.ModelsEntr" - + "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" - + "ud.translation.v3beta1.BatchTranslateDoc" - + "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" - + "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" - + "anslation.v3beta1.BatchTranslateDocument" - + "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" - + "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" - + "alue\030\002 \001(\0132=.google.cloud.translation.v3" - + "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" - + "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" - + "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" - + "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" - + "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" - + "tination\030\001 \001(\01320.google.cloud.translatio" - + "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" - + "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" - + "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " - + "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" - + "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" - + "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" - + "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" - + "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" - + "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" - + "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" - + "F.google.cloud.translation.v3beta1.Batch" - + "TranslateDocumentMetadata.State\022\023\n\013total" - + "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" - + "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" - + "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" - + "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" - + "aracters\030\010 \001(\003\022!\n\031total_billable_charact" - + "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." - + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" - + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" - + "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" - + "xt\0226.google.cloud.translation.v3beta1.Tr" - + "anslateTextRequest\0327.google.cloud.transl" - + "ation.v3beta1.TranslateTextResponse\"r\202\323\344" - + "\223\002l\"6/v3beta1/{parent=projects/*/locatio" - + "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" - + "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" - + "ctLanguage\0227.google.cloud.translation.v3" - + "beta1.DetectLanguageRequest\0328.google.clo" - + "ud.translation.v3beta1.DetectLanguageRes" - + "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" - + "7/v3beta1/{parent=projects/*/locations/*" - + "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" - + "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" - + "portedLanguages\022>.google.cloud.translati" - + "on.v3beta1.GetSupportedLanguagesRequest\032" - + "4.google.cloud.translation.v3beta1.Suppo" - + "rtedLanguages\"\233\001\332A\"parent,display_langua" - + "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" - + "ojects/*/locations/*}/supportedLanguages" - + "Z1\022//v3beta1/{parent=projects/*}/support" - + "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" - + "le.cloud.translation.v3beta1.TranslateDo" - + "cumentRequest\032;.google.cloud.translation" - + ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" - + "\002?\":/v3beta1/{parent=projects/*/location" - + "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" - + "lateText\022;.google.cloud.translation.v3be" - + "ta1.BatchTranslateTextRequest\032\035.google.l" - + "ongrunning.Operation\"y\312A0\n\026BatchTranslat" - + "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" - + ";/v3beta1/{parent=projects/*/locations/*" - + "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" - + "teDocument\022?.google.cloud.translation.v3" - + "beta1.BatchTranslateDocumentRequest\032\035.go" - + "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" - + "ranslateDocumentResponse\022\036BatchTranslate" - + "DocumentMetadata\332AMparent,source_languag" - + "e_code,target_language_codes,input_confi" - + "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" - + "=projects/*/locations/*}:batchTranslateD" - + "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" - + "loud.translation.v3beta1.CreateGlossaryR" - + "equest\032\035.google.longrunning.Operation\"|\312" - + "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" - + "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" - + "rojects/*/locations/*}/glossaries:\010gloss" - + "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" - + "anslation.v3beta1.ListGlossariesRequest\032" - + "8.google.cloud.translation.v3beta1.ListG" - + "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" - + "5\0223/v3beta1/{parent=projects/*/locations" - + "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." - + "cloud.translation.v3beta1.GetGlossaryReq" - + "uest\032*.google.cloud.translation.v3beta1." - + "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" - + "projects/*/locations/*/glossaries/*}\022\337\001\n" - + "\016DeleteGlossary\0227.google.cloud.translati" - + "on.v3beta1.DeleteGlossaryRequest\032\035.googl" - + "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" - + "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" - + "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" - + "ations/*/glossaries/*}\032~\312A\030translate.goo" - + "gleapis.com\322A`https://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/cloud-translationB\360\001\n\"com.g" - + "oogle.cloud.translate.v3beta1B\027Translati" - + "onServiceProtoP\001ZFcloud.google.com/go/tr" - + "anslation/apiv3beta1/translationpb;trans" - + "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" - + "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" - + "Google::Cloud::Translate::V3beta1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { - "Glossary", "IgnoreCase", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, - new java.lang.String[] { - "Contents", - "MimeType", - "SourceLanguageCode", - "TargetLanguageCode", - "Parent", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, - new java.lang.String[] { - "Translations", "GlossaryTranslations", - }); - internal_static_google_cloud_translation_v3beta1_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Translation_descriptor, - new java.lang.String[] { - "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, - new java.lang.String[] { - "Parent", "Model", "Content", "MimeType", "Labels", "Source", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "Confidence", - }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayLanguageCode", "Model", - }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, - new java.lang.String[] { - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, - new java.lang.String[] { - "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", - }); - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, - new java.lang.String[] { - "InputUri", - }); - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, - new java.lang.String[] { - "MimeType", "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, - new java.lang.String[] { - "OutputUriPrefix", - }); - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, - new java.lang.String[] { - "Content", "GcsSource", "MimeType", "Source", - }); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "MimeType", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCode", - "DocumentInputConfig", - "DocumentOutputConfig", - "Model", - "GlossaryConfig", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, - new java.lang.String[] { - "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", - }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, - new java.lang.String[] { - "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "Models", - "InputConfigs", - "OutputConfig", - "Glossaries", - "Labels", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, - new java.lang.String[] { - "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, - new java.lang.String[] { - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, - new java.lang.String[] { - "Name", - "LanguagePair", - "LanguageCodesSet", - "InputConfig", - "EntryCount", - "SubmitTime", - "EndTime", - "Languages", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { - "SourceLanguageCode", "TargetLanguageCode", - }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { - "LanguageCodes", - }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, - new java.lang.String[] { - "Parent", "Glossary", - }); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, - new java.lang.String[] { - "Glossaries", "NextPageToken", - }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { - "Name", "State", "SubmitTime", - }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { - "Name", "SubmitTime", "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", - "SourceLanguageCode", - "TargetLanguageCodes", - "InputConfigs", - "OutputConfig", - "Models", - "Glossaries", - "FormatConversions", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "Source", - }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - "EndTime", - }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { - "State", - "TotalPages", - "TranslatedPages", - "FailedPages", - "TotalBillablePages", - "TotalCharacters", - "TranslatedCharacters", - "FailedCharacters", - "TotalBillableCharacters", - "SubmitTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java new file mode 100644 index 000000000000..2be31aa95c39 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java @@ -0,0 +1,2010 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.stub.TranslationServiceStub; +import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides natural language translation operations. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   String targetLanguageCode = "targetLanguageCode-106414698";
+ *   List contents = new ArrayList<>();
+ *   TranslateTextResponse response =
+ *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TranslationServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newHttpJsonBuilder().build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class TranslationServiceClient implements BackgroundResource { + private final TranslationServiceSettings settings; + private final TranslationServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of TranslationServiceClient with default settings. */ + public static final TranslationServiceClient create() throws IOException { + return create(TranslationServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TranslationServiceClient create(TranslationServiceSettings settings) + throws IOException { + return new TranslationServiceClient(settings); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(TranslationServiceSettings). + */ + public static final TranslationServiceClient create(TranslationServiceStub stub) { + return new TranslationServiceClient(stub); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected TranslationServiceClient(TranslationServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final TranslationServiceSettings getSettings() { + return settings; + } + + public TranslationServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + LocationName parent, String targetLanguageCode, List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + String parent, String targetLanguageCode, List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(
+   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The `model` type requested for this translation. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

For global (non-regionalized) requests, use `location-id` `global`. For example, + * `projects/{project-number-or-id}/locations/global/models/general/nmt`. + *

If not provided, the default Google model (NMT) will be used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for + * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If + * the source language isn't specified, the API attempts to identify the source language + * automatically and returns the source language within the response. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + LocationName parent, + String model, + String mimeType, + String sourceLanguageCode, + String targetLanguageCode, + List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .setSourceLanguageCode(sourceLanguageCode) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   String targetLanguageCode = "targetLanguageCode-106414698";
+   *   List contents = new ArrayList<>();
+   *   TranslateTextResponse response =
+   *       translationServiceClient.translateText(
+   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for requests using AutoML models or custom glossaries. + *

Models and glossaries must be within the same region (have same location-id), otherwise + * an INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The `model` type requested for this translation. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

For global (non-regionalized) requests, use `location-id` `global`. For example, + * `projects/{project-number-or-id}/locations/global/models/general/nmt`. + *

If not provided, the default Google model (NMT) will be used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for + * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If + * the source language isn't specified, the API attempts to identify the source language + * automatically and returns the source language within the response. + * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the + * input text, set to one of the language codes listed in Language Support. + * @param contents Required. The content of the input in string format. We recommend the total + * content be less than 30,000 codepoints. The max length of this field is 1024. Use + * BatchTranslateText for larger text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText( + String parent, + String model, + String mimeType, + String sourceLanguageCode, + String targetLanguageCode, + List contents) { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .setSourceLanguageCode(sourceLanguageCode) + .setTargetLanguageCode(targetLanguageCode) + .addAllContents(contents) + .build(); + return translateText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateTextResponse response = translationServiceClient.translateText(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText(TranslateTextRequest request) { + return translateTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateTextCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateTextResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable translateTextCallable() { + return stub.translateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String content = "content951530617";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param content The content of the input stored as a string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + LocationName parent, String model, String mimeType, String content) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .setContent(content) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   String content = "content951530617";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @param content The content of the input stored as a string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + String parent, String model, String mimeType, String content) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .setContent(content) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { + return detectLanguageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.detectLanguageCallable().futureCall(request);
+   *   // Do something.
+   *   DetectLanguageResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + detectLanguageCallable() { + return stub.detectLanguageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + LocationName parent, String model, String displayLanguageCode) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setDisplayLanguageCode(displayLanguageCode) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + String parent, String model, String displayLanguageCode) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setDisplayLanguageCode(displayLanguageCode) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { + return getSupportedLanguagesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
+   *   // Do something.
+   *   SupportedLanguages response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSupportedLanguagesCallable() { + return stub.getSupportedLanguagesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .setIsTranslateNativePdfOnly(true)
+   *           .setEnableShadowRemovalNativePdf(true)
+   *           .build();
+   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { + return translateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .setIsTranslateNativePdfOnly(true)
+   *           .setEnableShadowRemovalNativePdf(true)
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + translateDocumentCallable() { + return stub.translateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   BatchTranslateResponse response =
+   *       translationServiceClient.batchTranslateTextAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateTextAsync(BatchTranslateTextRequest request) { + return batchTranslateTextOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return stub.batchTranslateTextOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable batchTranslateTextCallable() { + return stub.batchTranslateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + LocationName parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + String parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { + return batchTranslateDocumentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return stub.batchTranslateDocumentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of document in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .setCustomizedAttribution("customizedAttribution557650238")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchTranslateDocumentCallable() { + return stub.batchTranslateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + LocationName parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGlossary(glossary) + .build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + String parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + CreateGlossaryRequest request) { + return createGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createGlossaryOperationCallable() { + return stub.createGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.createGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createGlossaryCallable() { + return stub.createGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(LocationName parent) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(String parent) { + ListGlossariesRequest request = ListGlossariesRequest.newBuilder().setParent(parent).build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { + return listGlossariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Glossary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesPagedCallable() { + return stub.listGlossariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListGlossariesResponse response =
+   *         translationServiceClient.listGlossariesCallable().call(request);
+   *     for (Glossary element : response.getGlossariesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesCallable() { + return stub.listGlossariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GlossaryName name) { + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(String name) { + GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   Glossary response = translationServiceClient.getGlossary(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GetGlossaryRequest request) { + return getGlossaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getGlossaryCallable() { + return stub.getGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + GlossaryName name) { + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + String name) { + DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + DeleteGlossaryRequest request) { + return deleteGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeleteGlossaryResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable() { + return stub.deleteGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteGlossaryCallable() { + return stub.deleteGlossaryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListGlossariesPagedResponse + extends AbstractPagedListResponse< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGlossariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGlossariesPagedResponse(ListGlossariesPage page) { + super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGlossariesPage + extends AbstractPage< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { + + private ListGlossariesPage( + PageContext context, + ListGlossariesResponse response) { + super(context, response); + } + + private static ListGlossariesPage createEmptyPage() { + return new ListGlossariesPage(null, null); + } + + @Override + protected ListGlossariesPage createPage( + PageContext context, + ListGlossariesResponse response) { + return new ListGlossariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGlossariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGlossariesFixedSizeCollection createEmptyCollection() { + return new ListGlossariesFixedSizeCollection(null, 0); + } + + @Override + protected ListGlossariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGlossariesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java new file mode 100644 index 000000000000..7bd9560be9eb --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java @@ -0,0 +1,375 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TranslationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateTextOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateDocumentOperationSettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); + } + + public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) + throws IOException { + return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TranslationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TranslationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TranslationServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TranslationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TranslationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TranslationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TranslationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TranslationServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); + } + + public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TranslationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return getStubSettingsBuilder().translateTextSettings(); + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return getStubSettingsBuilder().detectLanguageSettings(); + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getStubSettingsBuilder().getSupportedLanguagesSettings(); + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return getStubSettingsBuilder().translateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return getStubSettingsBuilder().batchTranslateTextSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return getStubSettingsBuilder().batchTranslateTextOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return getStubSettingsBuilder().batchTranslateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return getStubSettingsBuilder().createGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return getStubSettingsBuilder().createGlossaryOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return getStubSettingsBuilder().listGlossariesSettings(); + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getStubSettingsBuilder().getGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return getStubSettingsBuilder().deleteGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return getStubSettingsBuilder().deleteGlossaryOperationSettings(); + } + + @Override + public TranslationServiceSettings build() throws IOException { + return new TranslationServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json new file mode 100644 index 000000000000..b5190737c2ce --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json @@ -0,0 +1,48 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.translation.v3", + "libraryPackage": "com.google.cloud.translate.v3", + "services": { + "TranslationService": { + "clients": { + "grpc": { + "libraryClient": "TranslationServiceClient", + "rpcs": { + "BatchTranslateDocument": { + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + }, + "BatchTranslateText": { + "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] + }, + "CreateGlossary": { + "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] + }, + "DeleteGlossary": { + "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] + }, + "DetectLanguage": { + "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] + }, + "GetGlossary": { + "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] + }, + "GetSupportedLanguages": { + "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] + }, + "ListGlossaries": { + "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] + }, + "TranslateDocument": { + "methods": ["translateDocument", "translateDocumentCallable"] + }, + "TranslateText": { + "methods": ["translateText", "translateText", "translateText", "translateText", "translateText", "translateTextCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java new file mode 100644 index 000000000000..cefd0d9f7223 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Translation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TranslationServiceClient ======================= + * + *

Service Description: Provides natural language translation operations. + * + *

Sample for TranslationServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   String targetLanguageCode = "targetLanguageCode-106414698";
+ *   List contents = new ArrayList<>();
+ *   TranslateTextResponse response =
+ *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.translate.v3; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..9bf80365681a --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java new file mode 100644 index 000000000000..248781dac1b5 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java @@ -0,0 +1,548 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceStub extends TranslationServiceStub { + private static final MethodDescriptor + translateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + detectLanguageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") + .setRequestMarshaller( + ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getSupportedLanguagesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + translateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGlossariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") + .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTranslationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings translateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + detectLanguageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getSupportedLanguagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + translateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings batchTranslateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchTranslateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGlossariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + operationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + operationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + operationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..97038ade44c6 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTranslationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java new file mode 100644 index 000000000000..18d3e72b5280 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java @@ -0,0 +1,910 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTranslationServiceStub extends TranslationServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(DeleteGlossaryMetadata.getDescriptor()) + .add(BatchTranslateResponse.getDescriptor()) + .add(BatchTranslateMetadata.getDescriptor()) + .add(Glossary.getDescriptor()) + .add(CreateGlossaryMetadata.getDescriptor()) + .add(BatchTranslateDocumentResponse.getDescriptor()) + .add(DeleteGlossaryResponse.getDescriptor()) + .add(BatchTranslateDocumentMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + translateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:translateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3/{parent=projects/*}:translateText") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + detectLanguageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:detectLanguage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3/{parent=projects/*}:detectLanguage") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSupportedLanguagesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/supportedLanguages", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3/{parent=projects/*}/supportedLanguages") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "displayLanguageCode", request.getDisplayLanguageCode()); + serializer.putQueryParam(fields, "model", request.getModel()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SupportedLanguages.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + translateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:translateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchTranslateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:batchTranslateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateTextRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + batchTranslateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}:batchTranslateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateDocumentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("glossary", request.getGlossary(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listGlossariesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Glossary.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTranslationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v3/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v3/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v3/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v3/{name=projects/*/locations/*}/operations") + .build()) + .put( + "google.longrunning.Operations.WaitOperation", + HttpRule.newBuilder() + .setPost("/v3/{name=projects/*/locations/*/operations/*}:wait") + .build()) + .build()); + + HttpJsonCallSettings + translateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + detectLanguageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getSupportedLanguagesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + translateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings batchTranslateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchTranslateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGlossariesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(translateTextMethodDescriptor); + methodDescriptors.add(detectLanguageMethodDescriptor); + methodDescriptors.add(getSupportedLanguagesMethodDescriptor); + methodDescriptors.add(translateDocumentMethodDescriptor); + methodDescriptors.add(batchTranslateTextMethodDescriptor); + methodDescriptors.add(batchTranslateDocumentMethodDescriptor); + methodDescriptors.add(createGlossaryMethodDescriptor); + methodDescriptors.add(listGlossariesMethodDescriptor); + methodDescriptors.add(getGlossaryMethodDescriptor); + methodDescriptors.add(deleteGlossaryMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java new file mode 100644 index 000000000000..9b277a5ca6a4 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class TranslationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable translateTextCallable() { + throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); + } + + public UnaryCallable detectLanguageCallable() { + throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); + } + + public UnaryCallable + getSupportedLanguagesCallable() { + throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); + } + + public UnaryCallable + translateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); + } + + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateTextOperationCallable()"); + } + + public UnaryCallable batchTranslateTextCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); + } + + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateDocumentOperationCallable()"); + } + + public UnaryCallable batchTranslateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); + } + + public OperationCallable + createGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); + } + + public UnaryCallable createGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); + } + + public UnaryCallable + listGlossariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); + } + + public UnaryCallable listGlossariesCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); + } + + public UnaryCallable getGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); + } + + public OperationCallable + deleteGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); + } + + public UnaryCallable deleteGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java new file mode 100644 index 000000000000..96107b428481 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java @@ -0,0 +1,868 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.stub; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.ListGlossariesResponse; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslateDocumentRequest; +import com.google.cloud.translate.v3.TranslateDocumentResponse; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceStubSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceStubSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TranslationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-translation") + .build(); + + private final UnaryCallSettings + translateTextSettings; + private final UnaryCallSettings + detectLanguageSettings; + private final UnaryCallSettings + getSupportedLanguagesSettings; + private final UnaryCallSettings + translateDocumentSettings; + private final UnaryCallSettings batchTranslateTextSettings; + private final OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings + batchTranslateDocumentSettings; + private final OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings createGlossarySettings; + private final OperationCallSettings + createGlossaryOperationSettings; + private final PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings getGlossarySettings; + private final UnaryCallSettings deleteGlossarySettings; + private final OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + + private static final PagedListDescriptor + LIST_GLOSSARIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { + return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGlossariesRequest injectPageSize( + ListGlossariesRequest payload, int pageSize) { + return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGlossariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGlossariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGlossariesResponse payload) { + return payload.getGlossariesList() == null + ? ImmutableList.of() + : payload.getGlossariesList(); + } + }; + + private static final PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + LIST_GLOSSARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGlossariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); + return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return translateTextSettings; + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + public TranslationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTranslationServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTranslationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "translate.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "translate.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + translateTextSettings = settingsBuilder.translateTextSettings().build(); + detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); + getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); + translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); + batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); + batchTranslateTextOperationSettings = + settingsBuilder.batchTranslateTextOperationSettings().build(); + batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); + batchTranslateDocumentOperationSettings = + settingsBuilder.batchTranslateDocumentOperationSettings().build(); + createGlossarySettings = settingsBuilder.createGlossarySettings().build(); + createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); + listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); + getGlossarySettings = settingsBuilder.getGlossarySettings().build(); + deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); + deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); + } + + /** Builder for TranslationServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + translateTextSettings; + private final UnaryCallSettings.Builder + detectLanguageSettings; + private final UnaryCallSettings.Builder + getSupportedLanguagesSettings; + private final UnaryCallSettings.Builder + translateDocumentSettings; + private final UnaryCallSettings.Builder + batchTranslateTextSettings; + private final OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings.Builder + batchTranslateDocumentSettings; + private final OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings.Builder + createGlossarySettings; + private final OperationCallSettings.Builder< + CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> + createGlossaryOperationSettings; + private final PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings.Builder getGlossarySettings; + private final UnaryCallSettings.Builder + deleteGlossarySettings; + private final OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); + batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); + createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGlossaryOperationSettings = OperationCallSettings.newBuilder(); + listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); + getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + initDefaults(this); + } + + protected Builder(TranslationServiceStubSettings settings) { + super(settings); + + translateTextSettings = settings.translateTextSettings.toBuilder(); + detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); + getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); + translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); + batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); + batchTranslateTextOperationSettings = + settings.batchTranslateTextOperationSettings.toBuilder(); + batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); + batchTranslateDocumentOperationSettings = + settings.batchTranslateDocumentOperationSettings.toBuilder(); + createGlossarySettings = settings.createGlossarySettings.toBuilder(); + createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); + listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); + getGlossarySettings = settings.getGlossarySettings.toBuilder(); + deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); + deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .translateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .detectLanguageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSupportedLanguagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .translateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchTranslateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchTranslateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listGlossariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchTranslateTextOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .batchTranslateDocumentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchTranslateDocumentResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchTranslateDocumentMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return translateTextSettings; + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @Override + public TranslationServiceStubSettings build() throws IOException { + return new TranslationServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json new file mode 100644 index 000000000000..50a0b6fd1797 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json @@ -0,0 +1,1946 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.CreateGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectLanguageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DetectedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentTranslation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.DocumentTranslation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GlossaryInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.GlossaryInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.InputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.InputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.ListGlossariesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.OutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.OutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguages", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.SupportedLanguages$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.TranslateTextResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Translation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3.Translation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java new file mode 100644 index 000000000000..2dbe7ffafa73 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationService implements MockGrpcService { + private final MockTranslationServiceImpl serviceImpl; + + public MockTranslationService() { + serviceImpl = new MockTranslationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java new file mode 100644 index 000000000000..f5d5d4f8e4af --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java @@ -0,0 +1,271 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import com.google.api.core.BetaApi; +import com.google.cloud.translate.v3.TranslationServiceGrpc.TranslationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationServiceImpl extends TranslationServiceImplBase { + private List requests; + private Queue responses; + + public MockTranslationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void translateText( + TranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateTextResponse) { + requests.add(request); + responseObserver.onNext(((TranslateTextResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateTextResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void detectLanguage( + DetectLanguageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DetectLanguageResponse) { + requests.add(request); + responseObserver.onNext(((DetectLanguageResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DetectLanguage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DetectLanguageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSupportedLanguages( + GetSupportedLanguagesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SupportedLanguages) { + requests.add(request); + responseObserver.onNext(((SupportedLanguages) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SupportedLanguages.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void translateDocument( + TranslateDocumentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateDocumentResponse) { + requests.add(request); + responseObserver.onNext(((TranslateDocumentResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateDocumentResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateText( + BatchTranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateDocument( + BatchTranslateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGlossary( + CreateGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGlossaries( + ListGlossariesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGlossariesResponse) { + requests.add(request); + responseObserver.onNext(((ListGlossariesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGlossaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGlossariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Glossary) { + requests.add(request); + responseObserver.onNext(((Glossary) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Glossary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGlossary( + DeleteGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..1a414ea7557d --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java @@ -0,0 +1,1197 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.translate.v3.stub.HttpJsonTranslationServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTranslationServiceStub.getMethodDescriptors(), + TranslationServiceSettings.getDefaultEndpoint()); + TranslationServiceSettings settings = + TranslationServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest2() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest3() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest4() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java new file mode 100644 index 000000000000..9293f056bd67 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java @@ -0,0 +1,1161 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3; + +import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTranslationService mockTranslationService; + private LocalChannelProvider channelProvider; + private TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTranslationService = new MockTranslationService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TranslationServiceSettings settings = + TranslationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest2() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText(parent, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText(parent, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest3() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateTextTest4() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + + TranslateTextResponse actualResponse = + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); + Assert.assertEquals(contents, actualRequest.getContentsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + String targetLanguageCode = "targetLanguageCode-106414698"; + List contents = new ArrayList<>(); + client.translateText( + parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + String content = "content951530617"; + client.detectLanguage(parent, model, mimeType, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + client.getSupportedLanguages(parent, model, displayLanguageCode); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); + Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertEquals( + request.getCustomizedAttribution(), actualRequest.getCustomizedAttribution()); + Assert.assertEquals( + request.getIsTranslateNativePdfOnly(), actualRequest.getIsTranslateNativePdfOnly()); + Assert.assertEquals( + request.getEnableShadowRemovalNativePdf(), actualRequest.getEnableShadowRemovalNativePdf()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCustomizedAttribution("customizedAttribution557650238") + .setIsTranslateNativePdfOnly(true) + .setEnableShadowRemovalNativePdf(true) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals( + request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); + Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); + Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); + Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGlossaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockTranslationService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockTranslationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String name = "name3373707"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java index bf8e7906ee95..90086bd0466e 100644 --- a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -37,134 +20,113 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.ListLocationsRequest,
-            com.google.cloud.location.ListLocationsResponse>
-        getListLocationsMethod;
+  public static io.grpc.MethodDescriptor getListLocationsMethod() {
+    io.grpc.MethodDescriptor getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod =
-              getListLocationsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-                      .build();
+          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+              .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-        getGetLocationMethod;
+  public static io.grpc.MethodDescriptor getGetLocationMethod() {
+    io.grpc.MethodDescriptor getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod =
-              getGetLocationMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.Location.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-                      .build();
+          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.Location.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+              .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsStub(channel, callOptions);
+        }
+      };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsBlockingStub(channel, callOptions);
+        }
+      };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static LocationsFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsFutureStub(channel, callOptions);
+        }
+      };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -174,108 +136,88 @@ public LocationsFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); + default void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - default void getLocation( - com.google.cloud.location.GetLocationRequest request, + default void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class LocationsImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub + extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** - * - * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, + public void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -284,7 +226,8 @@ public void getLocation(
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -295,27 +238,21 @@ protected LocationsBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -323,7 +260,6 @@ public com.google.cloud.location.Location getLocation( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -332,38 +268,35 @@ public com.google.cloud.location.Location getLocation(
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -372,11 +305,11 @@ protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_LOCATIONS = 0; private static final int METHODID_GET_LOCATION = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -390,14 +323,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -419,24 +349,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>( + service, METHODID_GET_LOCATION))) .build(); } - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -478,13 +408,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java new file mode 100644 index 000000000000..f773156a3adf --- /dev/null +++ b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java @@ -0,0 +1,1157 @@ +package com.google.cloud.translate.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateTextMethod() { + io.grpc.MethodDescriptor getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetectLanguageMethod() { + io.grpc.MethodDescriptor getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { + io.grpc.MethodDescriptor getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { + io.grpc.MethodDescriptor getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListGlossariesMethod() { + io.grpc.MethodDescriptor getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetGlossaryMethod() { + io.grpc.MethodDescriptor getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.Glossary.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TranslationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static abstract class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateTextResponse translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.Glossary getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateText( + com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText((com.google.cloud.translate.v3.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage((com.google.cloud.translate.v3.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument((com.google.cloud.translate.v3.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText((com.google.cloud.translate.v3.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary((com.google.cloud.translate.v3.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries((com.google.cloud.translate.v3.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary((com.google.cloud.translate.v3.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary((com.google.cloud.translate.v3.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.CreateGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary>( + service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DeleteGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private static abstract class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java similarity index 77% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java index 9a81bd5f3586..946d7d46a52c 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentInputConfig() {} + private BatchDocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -133,7 +107,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -141,8 +114,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -166,19 +137,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -206,13 +174,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,7 +191,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -238,9 +206,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -250,18 +217,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentInputConfig other =
-        (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentInputConfig other = (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -291,136 +258,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentInputConfig) com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -455,11 +417,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentInputConfig result = - new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchDocumentInputConfig result = new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -472,7 +431,8 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -481,39 +441,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInput public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -521,18 +480,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -560,19 +516,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,12 +538,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -600,13 +556,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -630,7 +581,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -638,8 +588,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -663,7 +611,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -681,8 +628,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -721,8 +666,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -747,7 +690,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -758,8 +702,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -786,13 +728,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -808,8 +747,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -851,8 +788,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -881,8 +816,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -919,8 +852,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -946,19 +877,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -968,9 +894,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -980,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentInputConfig();
   }
@@ -994,27 +920,27 @@ public static com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1029,4 +955,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
index d4533a75c6d8..7abfa317fddb 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentInputConfigOrBuilder
-    extends
+public interface BatchDocumentInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -49,13 +31,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +58,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
similarity index 85%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
index 0ca6a1d996bc..4412ae007b88 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
@@ -1,78 +1,56 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentOutputConfig() {} + private BatchDocumentOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -159,7 +133,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -167,8 +140,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -218,19 +189,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -284,13 +252,12 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -302,7 +269,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -316,9 +284,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -328,18 +295,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentOutputConfig other =
-        (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -369,136 +336,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override @@ -533,11 +495,8 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentOutputConfig result = - new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -547,11 +506,11 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentOutputConf int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -560,39 +519,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -600,18 +558,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -639,19 +594,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,12 +616,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -679,13 +634,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -735,7 +685,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -743,8 +692,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -794,7 +741,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -812,8 +758,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -878,8 +822,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -942,8 +884,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -996,13 +936,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -1018,8 +955,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1087,8 +1022,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1143,8 +1076,6 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1207,8 +1138,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1260,19 +1189,14 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination,
-            com.google.cloud.translate.v3.GcsDestination.Builder,
-            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsDestination,
-                com.google.cloud.translate.v3.GcsDestination.Builder,
-                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1282,9 +1206,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       onChanged();
       return gcsDestinationBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1294,12 +1218,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentOutputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentOutputConfig();
   }
@@ -1308,27 +1232,27 @@ public static com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentOutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentOutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1343,4 +1267,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
similarity index 92%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
index 8f44ed055d99..9b98837a7172 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentOutputConfigOrBuilder
-    extends
+public interface BatchDocumentOutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -75,13 +57,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -131,13 +110,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
index c3d6824ce0f0..cea5c3242091 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
@@ -1,81 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -84,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -94,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -104,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +123,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -170,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -180,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -203,6 +158,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,57 +183,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -297,52 +248,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -353,15 +290,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -372,15 +306,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -391,15 +322,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -410,14 +338,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -428,15 +353,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -447,15 +369,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -466,15 +385,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -485,14 +401,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -500,14 +413,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ @java.lang.Override @@ -515,8 +425,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -529,7 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -541,10 +448,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -583,37 +489,45 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -623,26 +537,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = - (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() != other.getTotalPages()) return false; - if (getTranslatedPages() != other.getTranslatedPages()) return false; - if (getFailedPages() != other.getFailedPages()) return false; - if (getTotalBillablePages() != other.getTotalBillablePages()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (getTotalPages() + != other.getTotalPages()) return false; + if (getTranslatedPages() + != other.getTranslatedPages()) return false; + if (getFailedPages() + != other.getFailedPages()) return false; + if (getTotalBillablePages() + != other.getTotalBillablePages()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() + != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -658,21 +580,29 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -683,136 +613,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -835,14 +760,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -857,17 +781,13 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = - new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { + private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -897,7 +817,9 @@ private void buildPartial0( result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -905,39 +827,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)other); } else { super.mergeFrom(other); return this; @@ -945,9 +866,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other) { - if (other - == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1004,73 +923,64 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1080,34 +990,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1118,38 +1020,28 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { + public Builder setState(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1159,14 +1051,11 @@ public Builder setState( return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1176,17 +1065,14 @@ public Builder clearState() { return this; } - private long totalPages_; + private long totalPages_ ; /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -1194,15 +1080,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1214,15 +1097,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1232,17 +1112,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -1250,15 +1127,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1270,15 +1144,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1288,17 +1159,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -1306,15 +1174,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1326,15 +1191,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1344,17 +1206,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1362,15 +1221,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1382,15 +1238,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1400,16 +1253,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -1417,14 +1267,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1436,14 +1283,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1453,17 +1297,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1471,15 +1312,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1491,15 +1329,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1509,17 +1344,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -1527,15 +1359,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1547,15 +1376,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1565,17 +1391,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1583,15 +1406,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1603,15 +1423,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1623,47 +1440,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1684,15 +1488,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1703,8 +1506,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1713,9 +1514,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1728,8 +1529,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1747,8 +1546,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1761,8 +1558,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1773,14 +1568,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1788,24 +1580,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1815,13 +1604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(); } @@ -1830,27 +1618,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1865,4 +1653,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java index 56aa416281ab..a2a7d1b0cc1e 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,191 +1,137 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentMetadataOrBuilder - extends +public interface BatchTranslateDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState(); /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java similarity index 66% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java index 7b5efed61524..a638507885ad 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java @@ -1,64 +1,49 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); customizedAttribution_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -67,27 +52,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -100,10 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -112,15 +89,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -133,18 +109,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -153,12 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -166,7 +138,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -175,15 +146,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -191,15 +161,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -208,53 +179,41 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -262,30 +221,24 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List inputConfigs_; /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -293,18 +246,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -312,18 +260,14 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,17 +275,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -349,17 +289,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -367,9 +303,7 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( @@ -380,18 +314,13 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -399,76 +328,60 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -490,21 +403,20 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -530,8 +442,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -553,19 +463,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -587,11 +495,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -599,122 +507,92 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
-
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        defaultEntry =
+        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.translate.v3.TranslationServiceProto
-                            .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.translate.v3.TranslateTextGlossaryConfig
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-      glossaries_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-      internalGetGlossaries() {
+      java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
+  private com.google.protobuf.MapField
+  internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
-
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -724,36 +602,32 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; - private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -767,26 +641,23 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -800,17 +671,13 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -824,24 +691,20 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -855,16 +718,14 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -872,12 +733,9 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object customizedAttribution_ = ""; /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -886,7 +744,6 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ @java.lang.Override @@ -895,15 +752,14 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -912,15 +768,16 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -929,7 +786,6 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -941,7 +797,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -957,11 +814,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModels(), + ModelsDefaultEntryHolder.defaultEntry, + 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetGlossaries(), + GlossariesDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -993,43 +859,42 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry : - internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry models__ = - ModelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - entry : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - GlossariesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry : - internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry formatConversions__ = - FormatConversionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry + : internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry + models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, models__); + } + for (java.util.Map.Entry entry + : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry + glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry + : internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry + formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, formatConversions__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); @@ -1042,26 +907,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = - (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList() + .equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList() + .equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals(other.internalGetModels())) return false; - if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; - if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals( + other.internalGetModels())) return false; + if (!internalGetGlossaries().equals( + other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals( + other.internalGetFormatConversions())) return false; + if (!getCustomizedAttribution() + .equals(other.getCustomizedAttribution())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1109,121 +982,116 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.cloud.translate.v3.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -1232,12 +1100,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1246,34 +1115,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1294,9 +1165,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1315,18 +1186,14 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = - new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1351,8 +1218,9 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1375,39 +1243,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1415,8 +1282,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1455,10 +1321,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1467,11 +1332,14 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom( + other.internalGetFormatConversions()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1504,97 +1372,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.cloud.translate.v3.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry - formatConversions__ = - input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFormatConversions() - .getMutableMap() - .put(formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.cloud.translate.v3.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + formatConversions__ = input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFormatConversions().getMutableMap().put( + formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1604,13 +1455,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1623,16 +1471,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1641,8 +1487,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1655,17 +1499,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1673,8 +1516,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1687,25 +1528,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1718,10 +1553,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1731,8 +1563,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1745,17 +1575,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1765,8 +1591,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1774,13 +1598,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1789,8 +1613,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1798,14 +1620,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1813,8 +1636,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1822,22 +1643,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1845,7 +1662,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1855,8 +1671,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1864,14 +1678,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1881,7 +1693,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1889,49 +1700,38 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1939,41 +1739,33 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1981,23 +1773,18 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -2005,64 +1792,53 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -2072,26 +1848,18 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = - new java.util.ArrayList( - inputConfigs_); + inputConfigs_ = new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> - inputConfigsBuilder_; + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2099,12 +1867,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -2112,8 +1877,6 @@ private void ensureInputConfigsIsMutable() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2121,9 +1884,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2133,8 +1894,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2142,9 +1901,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2154,8 +1911,6 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2163,9 +1918,7 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2182,8 +1935,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2191,9 +1942,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2207,8 +1956,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2216,9 +1963,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2234,8 +1979,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2243,9 +1986,7 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2262,8 +2003,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2271,9 +2010,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2287,8 +2024,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2296,9 +2031,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2312,8 +2045,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2321,16 +2052,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2338,8 +2067,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2347,9 +2074,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2362,8 +2087,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2371,9 +2094,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2386,8 +2107,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2395,17 +2114,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2413,21 +2128,16 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2435,12 +2145,10 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2448,8 +2156,6 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2457,17 +2163,13 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2475,19 +2177,14 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2495,27 +2192,22 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, - com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2523,64 +2215,45 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2596,17 +2269,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutput return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2620,25 +2289,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2651,17 +2314,13 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2674,90 +2333,74 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder - getOutputConfigBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2766,13 +2409,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2794,21 +2434,20 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2834,8 +2473,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2857,19 +2494,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2891,25 +2526,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2930,22 +2563,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2966,20 +2600,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -3000,18 +2631,17 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        glossaries_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
+    private com.google.protobuf.MapField
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -3019,13 +2649,11 @@ public Builder putAllModels(java.util.Map va
       }
       return glossaries_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+    private com.google.protobuf.MapField
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ =
-            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ = com.google.protobuf.MapField.newMapField(
+            GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -3034,177 +2662,140 @@ public Builder putAllModels(java.util.Map va
       onChanged();
       return glossaries_;
     }
-
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -3213,13 +2804,11 @@ public Builder putAllGlossaries( } return formatConversions_; } - private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -3228,13 +2817,10 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3248,26 +2834,23 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3281,17 +2864,13 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3305,25 +2884,20 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3337,15 +2911,12 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -3353,15 +2924,13 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap().clear(); + internalGetMutableFormatConversions().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3375,26 +2944,25 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFormatConversions().getMutableMap().remove(key); + public Builder removeFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFormatConversions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableFormatConversions() { + public java.util.Map + getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3408,24 +2976,19 @@ public java.util.Map getMutableFormatConvers
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putFormatConversions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFormatConversions().getMutableMap().put(key, value); + public Builder putFormatConversions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableFormatConversions().getMutableMap() + .put(key, value); bitField0_ |= 0x00000080; return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3439,21 +3002,18 @@ public Builder putFormatConversions(java.lang.String key, java.lang.String value
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap().putAll(values); + internalGetMutableFormatConversions().getMutableMap() + .putAll(values); bitField0_ |= 0x00000080; return this; } private java.lang.Object customizedAttribution_ = ""; /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3462,13 +3022,13 @@ public Builder putAllFormatConversions(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -3477,8 +3037,6 @@ public java.lang.String getCustomizedAttribution() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3487,14 +3045,15 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -3502,8 +3061,6 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3512,22 +3069,18 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttribution( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3536,7 +3089,6 @@ public Builder setCustomizedAttribution(java.lang.String value) {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -3546,8 +3098,6 @@ public Builder clearCustomizedAttribution() { return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3556,23 +3106,21 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttributionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3582,12 +3130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) private static final com.google.cloud.translate.v3.BatchTranslateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(); } @@ -3596,27 +3144,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3631,4 +3179,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java index 742d85933e62..448bb93ce6e2 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentRequestOrBuilder - extends +public interface BatchTranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -60,17 +37,13 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -78,13 +51,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -92,73 +62,57 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,14 +120,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -181,14 +132,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -196,14 +143,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -211,15 +154,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -227,63 +166,45 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -306,8 +227,6 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -328,13 +247,15 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -355,10 +276,9 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -380,13 +300,11 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -407,82 +325,64 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -496,14 +396,10 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getFormatConversionsCount(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -517,17 +413,17 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsFormatConversions( + java.lang.String key); + /** + * Use {@link #getFormatConversionsMap()} instead. */ - boolean containsFormatConversions(java.lang.String key); - /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map getFormatConversions(); + java.util.Map + getFormatConversions(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -541,14 +437,11 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getFormatConversionsMap(); + java.util.Map + getFormatConversionsMap(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -562,18 +455,14 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getFormatConversionsOrDefault( +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -587,15 +476,12 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getFormatConversionsOrThrow(java.lang.String key); + java.lang.String getFormatConversionsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -604,13 +490,10 @@ java.lang.String getFormatConversionsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -619,8 +502,8 @@ java.lang.String getFormatConversionsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString getCustomizedAttributionBytes(); + com.google.protobuf.ByteString + getCustomizedAttributionBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java index 8b0ebcacc358..4bcc611426d6 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,52 +13,47 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateDocumentResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateDocumentResponse() {}
+  private BatchTranslateDocumentResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -86,15 +64,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -105,15 +80,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -124,15 +96,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -143,14 +112,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -161,15 +127,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -180,15 +143,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -199,15 +159,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -218,14 +175,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -233,14 +187,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ @java.lang.Override @@ -248,8 +199,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -264,8 +213,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -273,7 +220,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -281,8 +227,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -290,7 +234,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ @java.lang.Override @@ -298,8 +241,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -314,7 +255,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -326,7 +266,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -367,34 +308,44 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -404,29 +355,38 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other =
-        (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages() != other.getTotalPages()) return false;
-    if (getTranslatedPages() != other.getTranslatedPages()) return false;
-    if (getFailedPages() != other.getFailedPages()) return false;
-    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
+    if (getTranslatedPages()
+        != other.getTranslatedPages()) return false;
+    if (getFailedPages()
+        != other.getFailedPages()) return false;
+    if (getTotalBillablePages()
+        != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters()
+        != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -440,21 +400,29 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -469,104 +437,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -576,32 +538,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -628,14 +591,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
       return com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -650,17 +612,13 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result =
-          new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -687,10 +645,14 @@ private void buildPartial0(
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -698,39 +660,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -738,9 +699,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentResponse other) {
-      if (other
-          == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -797,73 +756,66 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalPages_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedPages_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedPages_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                totalBillablePages_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 48:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 64:
-              {
-                totalBillableCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalPages_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedPages_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedPages_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              totalBillablePages_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 48: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 64: {
+              totalBillableCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -873,20 +825,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalPages_;
+    private long totalPages_ ;
     /**
-     *
-     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -894,15 +842,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -914,15 +859,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -932,17 +874,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -950,15 +889,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -970,15 +906,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -988,17 +921,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -1006,15 +936,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1026,15 +953,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1044,17 +968,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1062,15 +983,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1082,15 +1000,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1100,16 +1015,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -1117,14 +1029,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1136,14 +1045,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1153,17 +1059,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1171,15 +1074,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1191,15 +1091,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1209,17 +1106,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -1227,15 +1121,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1247,15 +1138,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1265,17 +1153,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1283,15 +1168,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1303,15 +1185,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1323,47 +1202,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1384,15 +1250,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1403,8 +1268,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1413,9 +1276,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1428,8 +1291,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1447,8 +1308,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1461,8 +1320,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1473,14 +1330,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1488,17 +1342,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1506,13 +1357,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1520,15 +1366,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1536,7 +1379,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1547,8 +1389,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1571,8 +1411,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1581,7 +1419,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1592,8 +1431,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1604,9 +1441,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1619,8 +1456,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1640,8 +1475,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1656,8 +1489,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1670,12 +1501,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1685,24 +1515,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1712,13 +1539,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse();
   }
@@ -1727,27 +1553,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateDocumentResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateDocumentResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1762,4 +1588,6 @@ public com.google.protobuf.Parser getParserForTy
   public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
index 93f7258efcb0..ba1d11008da9 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,166 +1,118 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateDocumentResponseOrBuilder
-    extends
+public interface BatchTranslateDocumentResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -170,8 +122,6 @@ public interface BatchTranslateDocumentResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -179,13 +129,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -193,13 +140,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
index a84aea7849e4..b739ed61bfff 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
@@ -1,80 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, - com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -83,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -93,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -104,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCEEDED(2),
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -171,8 +133,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -181,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -192,8 +150,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -204,6 +160,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -228,57 +185,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -298,51 +250,37 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -353,15 +291,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -372,8 +307,6 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -381,7 +314,6 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -392,14 +324,11 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -407,14 +336,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ @java.lang.Override @@ -422,8 +348,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -436,7 +360,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,10 +371,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -475,22 +397,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -500,21 +425,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateMetadata other = - (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateMetadata other = (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -530,11 +458,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -545,135 +476,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateMetadata) com.google.cloud.translate.v3.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, - com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -691,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -712,11 +639,8 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateMetadata result = - new com.google.cloud.translate.v3.BatchTranslateMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.BatchTranslateMetadata result = new com.google.cloud.translate.v3.BatchTranslateMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -736,7 +660,9 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -744,39 +670,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata)other); } else { super.mergeFrom(other); return this; @@ -784,8 +709,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -827,43 +751,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -873,34 +793,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -911,33 +823,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -951,14 +854,11 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.Sta return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -968,16 +868,13 @@ public Builder clearState() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -985,14 +882,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1004,14 +898,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1021,17 +912,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -1039,15 +927,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1059,15 +944,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1077,10 +959,8 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1088,7 +968,6 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -1096,8 +975,6 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1105,7 +982,6 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1117,8 +993,6 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1126,7 +1000,6 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1138,47 +1011,34 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1199,15 +1059,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1218,8 +1077,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1228,9 +1085,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1243,8 +1100,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1262,8 +1117,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1276,8 +1129,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1288,14 +1139,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1303,24 +1151,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1330,12 +1175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateMetadata) private static final com.google.cloud.translate.v3.BatchTranslateMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateMetadata(); } @@ -1344,27 +1189,27 @@ public static com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1379,4 +1224,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java index aef48c713adb..337d2d9e0aab 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java @@ -1,83 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateMetadataOrBuilder - extends +public interface BatchTranslateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateMetadata.State getState(); /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -85,38 +55,29 @@ public interface BatchTranslateMetadataOrBuilder
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java index 9c4ed6c56ec3..daca001c1a91 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,50 +13,46 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateResponse() {}
+  private BatchTranslateResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateResponse.class,
-            com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -84,14 +63,11 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -102,14 +78,11 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -120,14 +93,11 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -135,14 +105,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ @java.lang.Override @@ -150,8 +117,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -166,8 +131,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,7 +138,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -183,8 +145,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -192,7 +152,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -200,8 +159,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -216,7 +173,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -228,7 +184,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -254,19 +211,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -276,24 +238,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateResponse other =
-        (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3.BatchTranslateResponse other = (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -307,11 +273,14 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -326,103 +295,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -432,32 +396,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateResponse)
       com.google.cloud.translate.v3.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateResponse.class,
-              com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -479,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -500,11 +465,8 @@ public com.google.cloud.translate.v3.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateResponse result =
-          new com.google.cloud.translate.v3.BatchTranslateResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.BatchTranslateResponse result = new com.google.cloud.translate.v3.BatchTranslateResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -521,10 +483,14 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -532,39 +498,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -572,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance()) return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -615,43 +579,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -661,19 +623,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalCharacters_;
+    private long totalCharacters_ ;
     /**
-     *
-     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -681,14 +639,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -700,14 +655,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -717,16 +669,13 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -734,14 +683,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -753,14 +699,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -770,16 +713,13 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -787,14 +727,11 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -806,14 +743,11 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -825,47 +759,34 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -886,15 +807,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -905,8 +825,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -915,9 +833,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -930,8 +848,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -949,8 +865,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -963,8 +877,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -975,14 +887,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -990,17 +899,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1008,13 +914,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1022,15 +923,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1038,7 +936,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1049,8 +946,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1073,8 +968,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1083,7 +976,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1094,8 +988,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1106,9 +998,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1121,8 +1013,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1142,8 +1032,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1158,8 +1046,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1172,12 +1058,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1187,24 +1072,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1214,12 +1096,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3.BatchTranslateResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateResponse();
   }
@@ -1228,27 +1110,27 @@ public static com.google.cloud.translate.v3.BatchTranslateResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1263,4 +1145,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
index 2e9f558f8217..e7a723c707b5 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
@@ -1,94 +1,61 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateResponseOrBuilder
-    extends
+public interface BatchTranslateResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -98,8 +65,6 @@ public interface BatchTranslateResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -121,13 +83,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
similarity index 65%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
index 56f191e1456e..9959a46dc9ce 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
@@ -1,63 +1,48 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -66,27 +51,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -99,10 +79,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -111,15 +88,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -132,18 +108,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -152,18 +127,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -172,29 +143,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -203,50 +174,38 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -254,51 +213,46 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -320,21 +274,20 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -360,8 +313,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -383,19 +334,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -417,11 +366,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -429,12 +378,9 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -442,17 +388,13 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -460,18 +402,14 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -479,17 +417,13 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -497,17 +431,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -515,30 +445,24 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3.OutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -546,167 +470,124 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; - private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - defaultEntry = + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -716,34 +597,32 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -759,21 +638,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -793,8 +671,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -810,19 +686,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -838,11 +712,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -850,7 +724,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -862,7 +735,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -872,18 +746,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetModels(),
+        ModelsDefaultEntryHolder.defaultEntry,
+        4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetGlossaries(),
+        GlossariesDefaultEntryHolder.defaultEntry,
+        7);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        9);
     getUnknownFields().writeTo(output);
   }
 
@@ -907,44 +793,43 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry :
-        internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry models__ =
-          ModelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry
+         : internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry<
-            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-        entry : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
-          glossaries__ =
-              GlossariesDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -954,25 +839,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateTextRequest other =
-        (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
-
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(other.internalGetModels())) return false;
-    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3.BatchTranslateTextRequest other = (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
+
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList()
+        .equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(
+        other.internalGetModels())) return false;
+    if (!getInputConfigsList()
+        .equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(
+        other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1018,121 +910,116 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateTextRequest) com.google.cloud.translate.v3.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -1141,12 +1028,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1155,34 +1043,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1202,9 +1092,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @java.lang.Override @@ -1223,18 +1113,14 @@ public com.google.cloud.translate.v3.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateTextRequest result = - new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3.BatchTranslateTextRequest result = new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1263,8 +1149,9 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1280,39 +1167,38 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1320,8 +1206,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1342,7 +1227,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest } onChanged(); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1362,10 +1248,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1374,9 +1259,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1404,89 +1291,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.translate.v3.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.cloud.translate.v3.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3.InputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1496,13 +1369,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1515,16 +1385,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1533,8 +1401,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1547,17 +1413,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1565,8 +1430,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1579,25 +1442,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1610,10 +1467,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1623,8 +1477,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1637,17 +1489,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1657,20 +1505,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1679,21 +1525,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1701,35 +1546,28 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1739,21 +1577,17 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1763,7 +1597,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1771,46 +1604,35 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1818,39 +1640,31 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1858,22 +1672,17 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1881,61 +1690,50 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1944,19 +1742,21 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1965,13 +1765,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1993,21 +1790,20 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2033,8 +1829,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2056,19 +1850,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2090,25 +1882,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2129,22 +1919,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2165,20 +1956,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2199,32 +1987,27 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ =
-            new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.InputConfig,
-            com.google.cloud.translate.v3.InputConfig.Builder,
-            com.google.cloud.translate.v3.InputConfigOrBuilder>
-        inputConfigsBuilder_;
+        com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> inputConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2232,9 +2015,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2244,8 +2025,6 @@ public java.util.List getInputConfigs } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2253,9 +2032,7 @@ public java.util.List getInputConfigs
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2265,8 +2042,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2274,9 +2049,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2286,8 +2059,6 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2295,11 +2066,10 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder setInputConfigs( + int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2313,8 +2083,6 @@ public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputCon return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2322,9 +2090,7 @@ public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputCon
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2338,8 +2104,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2347,9 +2111,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2365,8 +2127,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2374,11 +2134,10 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value)
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder addInputConfigs( + int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2392,8 +2151,6 @@ public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputCon return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2401,9 +2158,7 @@ public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputCon
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2417,8 +2172,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2426,9 +2179,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2442,8 +2193,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2451,15 +2200,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2467,8 +2215,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2476,9 +2222,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2491,8 +2235,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2500,9 +2242,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2515,8 +2255,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2524,16 +2262,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(int index) { + public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder( + int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2541,20 +2276,16 @@ public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2562,12 +2293,10 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2575,8 +2304,6 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2584,17 +2311,13 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2602,17 +2325,14 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(int index) { - return getInputConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( + int index) { + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2620,27 +2340,22 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, - com.google.cloud.translate.v3.InputConfig.Builder, - com.google.cloud.translate.v3.InputConfigOrBuilder> + com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, - com.google.cloud.translate.v3.InputConfig.Builder, - com.google.cloud.translate.v3.InputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2648,64 +2363,45 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( private com.google.cloud.translate.v3.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2721,17 +2417,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3.OutputConfig.Builder builderForValue) { @@ -2745,23 +2437,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && outputConfig_ != null - && outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2774,17 +2462,13 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig valu return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2797,17 +2481,13 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2815,63 +2495,48 @@ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder> + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, - com.google.cloud.translate.v3.OutputConfig.Builder, - com.google.cloud.translate.v3.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2879,13 +2544,11 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil } return glossaries_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + private com.google.protobuf.MapField internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = - com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2894,195 +2557,160 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil onChanged(); return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( - java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3091,13 +2719,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3113,21 +2738,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3147,8 +2771,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3164,19 +2786,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3192,25 +2812,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3225,22 +2843,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3255,20 +2874,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3283,14 +2899,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3300,12 +2918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   private static final com.google.cloud.translate.v3.BatchTranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateTextRequest();
   }
@@ -3314,27 +2932,27 @@ public static com.google.cloud.translate.v3.BatchTranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3349,4 +2967,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
index e5c1b33c3560..113cf3687b09 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateTextRequestOrBuilder
-    extends
+public interface BatchTranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -60,97 +37,74 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -173,8 +127,6 @@ public interface BatchTranslateTextRequestOrBuilder
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -195,13 +147,15 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -222,10 +176,9 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -247,13 +200,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,11 +225,10 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -286,14 +236,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -301,14 +248,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.InputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -316,14 +259,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,15 +270,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -347,138 +282,104 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index); + com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( + int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -495,8 +396,6 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -511,13 +410,15 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -532,10 +433,9 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -551,13 +451,11 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -572,5 +470,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
similarity index 70%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
index 7827ff615171..8d73e559b532 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.CreateGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully created.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to create the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully created.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to create the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryMetadata other = - (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3.CreateGlossaryMetadata other = (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,103 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -623,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
       com.google.cloud.translate.v3.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.CreateGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -664,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -685,11 +609,8 @@ public com.google.cloud.translate.v3.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.CreateGlossaryMetadata result =
-          new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.CreateGlossaryMetadata result = new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -703,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -711,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -751,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -790,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -824,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -851,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -873,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -911,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -935,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -968,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1008,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3.CreateGlossaryMetadata.Sta return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1027,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1088,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1107,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1117,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1132,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1151,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1165,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1177,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1192,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1219,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3.CreateGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryMetadata(); } @@ -1233,27 +1090,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java index c19c4c4ddf9b..91012a73b317 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface CreateGlossaryMetadataOrBuilder - extends +public interface CreateGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java similarity index 60% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java index 873c5bb5a8df..145cbf8ff2a8 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, - com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,16 +93,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.Glossary glossary_; /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ @java.lang.Override @@ -137,44 +105,30 @@ public boolean hasGlossary() { return glossary_ != null; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary getGlossary() { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -206,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,18 +172,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryRequest other = - (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3.CreateGlossaryRequest other = (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary().equals(other.getGlossary())) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -252,135 +209,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryRequest) com.google.cloud.translate.v3.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, - com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.CreateGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -395,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -416,11 +369,8 @@ public com.google.cloud.translate.v3.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.CreateGlossaryRequest result = - new com.google.cloud.translate.v3.CreateGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.CreateGlossaryRequest result = new com.google.cloud.translate.v3.CreateGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -431,7 +381,9 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null + ? glossary_ + : glossaryBuilder_.build(); } } @@ -439,39 +391,38 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -479,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -515,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,27 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -572,23 +516,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -596,39 +537,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -638,23 +568,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -664,58 +588,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> - glossaryBuilder_; + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossaryBuilder_; /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ public com.google.cloud.translate.v3.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { @@ -731,17 +636,14 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder setGlossary( + com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossaryBuilder_ == null) { glossary_ = builderForValue.build(); } else { @@ -752,21 +654,17 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builde return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossary_ != null - && glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossary_ != null && + glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -779,15 +677,11 @@ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -800,15 +694,11 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -816,55 +706,43 @@ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { return getGlossaryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null - ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? + com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder>( - getGlossary(), getParentForChildren(), isClean()); + glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( + getGlossary(), + getParentForChildren(), + isClean()); glossary_ = null; } return glossaryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -874,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryRequest) private static final com.google.cloud.translate.v3.CreateGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryRequest(); } @@ -888,27 +766,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..cf8b52647f65 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface CreateGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The glossary. + */ + com.google.cloud.translate.v3.Glossary getGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java index 79f39b9d1ae2..407b2058b41d 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.DeleteGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryMetadata other = - (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,103 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -623,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -664,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -685,11 +609,8 @@ public com.google.cloud.translate.v3.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryMetadata result =
-          new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -703,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -711,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -751,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -790,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -824,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -851,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -873,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -911,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -935,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -968,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1008,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3.DeleteGlossaryMetadata.Sta return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1027,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1088,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1107,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1117,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1132,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1151,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1165,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1177,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1192,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1219,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3.DeleteGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(); } @@ -1233,27 +1090,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java index f1522824f1e8..47cc452baf1a 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DeleteGlossaryMetadataOrBuilder - extends +public interface DeleteGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java index 0646b0544ae2..b0844ec79872 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryRequest other = - (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3.DeleteGlossaryRequest other = (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,135 +155,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryRequest) com.google.cloud.translate.v3.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DeleteGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -341,11 +310,8 @@ public com.google.cloud.translate.v3.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.DeleteGlossaryRequest result = - new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DeleteGlossaryRequest result = new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -401,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -434,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -509,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -551,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -586,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3.DeleteGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryRequest(); } @@ -600,27 +537,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..a062efef4d30 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface DeleteGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java similarity index 71% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java index baff0e838394..ec8afcb199fe 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -29,54 +12,48 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -133,14 +107,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -148,8 +119,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -164,8 +133,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,7 +140,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -181,8 +147,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -190,7 +154,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -198,8 +161,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -214,7 +175,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -226,7 +186,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -249,10 +210,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -262,22 +225,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DeleteGlossaryResponse other =
-        (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3.DeleteGlossaryResponse other = (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -306,103 +271,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -411,32 +371,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
       com.google.cloud.translate.v3.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -456,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -477,11 +438,8 @@ public com.google.cloud.translate.v3.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryResponse result =
-          new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.DeleteGlossaryResponse result = new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -492,10 +450,14 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -503,39 +465,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -543,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -582,31 +542,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -616,25 +576,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -643,21 +600,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -665,35 +621,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -703,21 +652,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -727,47 +672,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -788,15 +720,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -807,8 +738,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -817,9 +746,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -832,8 +761,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -851,8 +778,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -865,8 +790,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -877,14 +800,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -892,17 +812,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -910,13 +827,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -924,15 +836,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -940,7 +849,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -951,8 +859,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -975,8 +881,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -985,7 +889,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -996,8 +901,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1008,9 +911,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1023,8 +926,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1044,8 +945,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1060,8 +959,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1074,12 +971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1089,24 +985,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1116,12 +1009,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3.DeleteGlossaryResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryResponse();
   }
@@ -1130,27 +1023,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteGlossaryResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteGlossaryResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1165,4 +1058,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
index 60741c6926e6..e406e3597d8d 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
@@ -1,80 +1,51 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DeleteGlossaryResponseOrBuilder
-    extends
+public interface DeleteGlossaryResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -84,8 +55,6 @@ public interface DeleteGlossaryResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +62,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +73,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
index 451a98239d20..7cc70c4faad6 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageRequest) DetectLanguageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -45,49 +27,45 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, - com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -103,31 +81,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -142,10 +115,7 @@ public SourceCase getSourceCase() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -154,15 +124,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -177,18 +146,17 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,12 +165,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -216,7 +181,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -225,15 +189,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -247,15 +210,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -265,28 +229,22 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { @@ -297,7 +255,8 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -306,24 +265,23 @@ public java.lang.String getContent() { } } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -334,19 +292,15 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -355,30 +309,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -387,34 +341,32 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -430,21 +382,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -464,8 +415,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -481,19 +430,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -509,11 +456,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -521,7 +468,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -533,7 +479,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -546,8 +493,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     getUnknownFields().writeTo(output);
   }
 
@@ -569,15 +520,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -587,22 +538,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageRequest other =
-        (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3.DetectLanguageRequest other = (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent().equals(other.getContent())) return false;
+        if (!getContent()
+            .equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -642,155 +597,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageRequest) com.google.cloud.translate.v3.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, - com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -805,9 +758,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -826,11 +779,8 @@ public com.google.cloud.translate.v3.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3.DetectLanguageRequest result = - new com.google.cloud.translate.v3.DetectLanguageRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DetectLanguageRequest result = new com.google.cloud.translate.v3.DetectLanguageRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -862,39 +812,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DetectLanguageRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest) other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest)other); } else { super.mergeFrom(other); return this; @@ -902,8 +851,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -919,20 +867,19 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest oth bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -960,50 +907,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1013,12 +952,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -1032,8 +971,6 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1048,16 +985,14 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1066,8 +1001,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1082,17 +1015,16 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1100,8 +1032,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1116,25 +1046,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1149,10 +1073,7 @@ public Builder setParent(java.lang.String value) {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1162,8 +1083,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1178,17 +1097,13 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1198,8 +1113,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1213,13 +1126,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1228,8 +1141,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1243,14 +1154,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1258,8 +1170,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1273,22 +1183,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1302,7 +1208,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1312,8 +1217,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1327,14 +1230,12 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1343,14 +1244,11 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1358,14 +1256,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -1375,7 +1270,8 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1386,25 +1282,24 @@ public java.lang.String getContent() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1414,35 +1309,28 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1454,21 +1342,17 @@ public Builder clearContent() { return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1478,21 +1362,19 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1501,22 +1383,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1524,37 +1405,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1564,22 +1438,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1587,19 +1457,21 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1608,13 +1480,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1630,21 +1499,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1664,8 +1532,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1681,19 +1547,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1709,25 +1573,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1742,22 +1604,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1772,20 +1635,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1800,14 +1660,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1817,12 +1679,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3.DetectLanguageRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageRequest();
   }
@@ -1831,27 +1693,27 @@ public static com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1866,4 +1728,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
index 4a1934406da6..98adaa711c0b 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageRequestOrBuilder
-    extends
+public interface DetectLanguageRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -40,16 +22,11 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -64,17 +41,13 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -88,13 +61,10 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -108,78 +78,63 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -196,8 +151,6 @@ public interface DetectLanguageRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -212,13 +165,15 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -233,10 +188,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -252,13 +206,11 @@ public interface DetectLanguageRequestOrBuilder
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -273,7 +225,8 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   com.google.cloud.translate.v3.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
index bdcbc1a96fda..9c1c7cdd3613 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
@@ -1,74 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageResponse) DetectLanguageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, - com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -81,8 +59,6 @@ public java.util.List getLanguag
     return languages_;
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -91,13 +67,11 @@ public java.util.List getLanguag
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -134,12 +104,12 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index) {
+  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -165,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -175,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageResponse other =
-        (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3.DetectLanguageResponse other = (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -205,135 +177,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageResponse) com.google.cloud.translate.v3.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, - com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -370,18 +338,14 @@ public com.google.cloud.translate.v3.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3.DetectLanguageResponse result = - new com.google.cloud.translate.v3.DetectLanguageResponse(this); + com.google.cloud.translate.v3.DetectLanguageResponse result = new com.google.cloud.translate.v3.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.DetectLanguageResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -401,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectLanguageResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse) other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse)other); } else { super.mergeFrom(other); return this; @@ -441,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -461,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse ot languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -496,26 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.DetectedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -525,29 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.DetectedLanguage, - com.google.cloud.translate.v3.DetectedLanguage.Builder, - com.google.cloud.translate.v3.DetectedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -563,8 +515,6 @@ public java.util.List getLanguag
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -580,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -597,8 +545,6 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -606,7 +552,8 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder setLanguages(
+        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -620,8 +567,6 @@ public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLan
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -641,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -664,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -673,7 +614,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder addLanguages(
+        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -687,8 +629,6 @@ public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLan
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -708,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -729,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -742,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -750,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -770,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -790,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -799,12 +730,11 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(int index) {
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(
+        int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -815,14 +745,11 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilde
     public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -830,8 +757,8 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -839,8 +766,6 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -849,12 +774,10 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -862,13 +785,12 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(
+        int index) {
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -876,30 +798,27 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.DetectedLanguage,
-            com.google.cloud.translate.v3.DetectedLanguage.Builder,
-            com.google.cloud.translate.v3.DetectedLanguageOrBuilder>
+        com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.DetectedLanguage,
-                com.google.cloud.translate.v3.DetectedLanguage.Builder,
-                com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -909,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3.DetectLanguageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageResponse();
   }
@@ -923,27 +842,27 @@ public static com.google.cloud.translate.v3.DetectLanguageResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -958,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
index c2923821ebf9..10d47edded3c 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageResponseOrBuilder
-    extends
+public interface DetectLanguageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -33,10 +15,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -46,8 +27,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -57,8 +36,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -66,11 +43,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -78,5 +53,6 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
similarity index 69%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
index c61021ef9e0a..5e22078de8e9 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
@@ -1,81 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ -public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, - com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -84,30 +61,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -134,7 +108,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,7 +119,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -166,7 +140,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,17 +151,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.DetectedLanguage other = - (com.google.cloud.translate.v3.DetectedLanguage) obj; + com.google.cloud.translate.v3.DetectedLanguage other = (com.google.cloud.translate.v3.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,142 +177,139 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectedLanguage) com.google.cloud.translate.v3.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, - com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectedLanguage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override @@ -368,11 +341,8 @@ public com.google.cloud.translate.v3.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3.DetectedLanguage result = - new com.google.cloud.translate.v3.DetectedLanguage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DetectedLanguage result = new com.google.cloud.translate.v3.DetectedLanguage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -391,39 +361,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectedLanguage result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage) other); + return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage)other); } else { super.mergeFrom(other); return this; @@ -466,25 +435,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,26 +460,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object languageCode_ = ""; /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -522,22 +485,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -545,37 +507,30 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -585,22 +540,18 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -608,16 +559,13 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -625,14 +573,11 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ @@ -644,14 +589,11 @@ public Builder setConfidence(float value) { return this; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -660,9 +602,9 @@ public Builder clearConfidence() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -672,12 +614,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectedLanguage) private static final com.google.cloud.translate.v3.DetectedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectedLanguage(); } @@ -686,27 +628,27 @@ public static com.google.cloud.translate.v3.DetectedLanguage getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -721,4 +663,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java similarity index 56% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java index 1933a7deb723..309303d82e0e 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java @@ -1,64 +1,40 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DetectedLanguageOrBuilder - extends +public interface DetectedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java index 9cc9719ccf38..95d687cfdb55 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ -public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentInputConfig) DocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, - com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -91,36 +68,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -128,14 +99,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -148,15 +116,12 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -164,27 +129,22 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -195,18 +155,15 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -221,7 +178,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
    * 
* * string mime_type = 4; - * * @return The mimeType. */ @java.lang.Override @@ -230,15 +186,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -253,15 +208,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -270,7 +226,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,9 +237,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) source_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3.GcsSource) source_); @@ -302,14 +259,13 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.translate.v3.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -322,22 +278,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentInputConfig other = - (com.google.cloud.translate.v3.DocumentInputConfig) obj; + com.google.cloud.translate.v3.DocumentInputConfig other = (com.google.cloud.translate.v3.DocumentInputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -373,135 +331,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentInputConfig) com.google.cloud.translate.v3.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, - com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override @@ -537,11 +491,8 @@ public com.google.cloud.translate.v3.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentInputConfig result = - new com.google.cloud.translate.v3.DocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DocumentInputConfig result = new com.google.cloud.translate.v3.DocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -557,7 +508,8 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -566,39 +518,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -606,28 +557,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: - { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -655,31 +602,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -689,12 +634,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -707,28 +652,22 @@ public Builder clearSource() { private int bitField0_; /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -738,35 +677,27 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -779,20 +710,14 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -800,15 +725,12 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -826,8 +748,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -849,8 +769,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -858,7 +776,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -869,8 +788,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -880,13 +797,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -902,8 +816,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -928,8 +840,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -941,8 +851,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -962,8 +870,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -972,19 +878,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -997,8 +898,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
 
     private java.lang.Object mimeType_ = "";
     /**
-     *
-     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -1013,13 +912,13 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * 
* * string mime_type = 4; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1028,8 +927,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1044,14 +941,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1059,8 +957,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1075,22 +971,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 4; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1105,7 +997,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 4; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1115,8 +1006,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1131,23 +1020,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1157,12 +1044,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentInputConfig) private static final com.google.cloud.translate.v3.DocumentInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentInputConfig(); } @@ -1171,27 +1058,27 @@ public static com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1206,4 +1093,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java index 0b19f21c69b1..50777c79ecb4 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentInputConfigOrBuilder - extends +public interface DocumentInputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -87,8 +57,6 @@ public interface DocumentInputConfigOrBuilder
   com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -103,13 +71,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -124,10 +89,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java similarity index 81% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java index 0e63cb5920fb..d82dcac7e052 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentOutputConfig) DocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -90,28 +67,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -158,10 +131,7 @@ public DestinationCase getDestinationCase() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -169,8 +139,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -217,22 +185,17 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -279,25 +242,20 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -311,7 +269,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -320,15 +277,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -342,15 +298,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -359,7 +316,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } @@ -388,9 +345,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -403,19 +359,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentOutputConfig other = - (com.google.cloud.translate.v3.DocumentOutputConfig) obj; + com.google.cloud.translate.v3.DocumentOutputConfig other = (com.google.cloud.translate.v3.DocumentOutputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -447,135 +404,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentOutputConfig) com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -590,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -611,11 +564,8 @@ public com.google.cloud.translate.v3.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentOutputConfig result = - new com.google.cloud.translate.v3.DocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.DocumentOutputConfig result = new com.google.cloud.translate.v3.DocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -631,7 +581,8 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentOutputConfig re private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -640,39 +591,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConf public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -680,23 +630,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -724,25 +671,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -752,12 +698,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -770,13 +716,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -823,10 +764,7 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -834,8 +772,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -882,10 +818,7 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override @@ -903,8 +836,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -951,9 +882,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -969,8 +898,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1017,9 +944,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination( com.google.cloud.translate.v3.GcsDestination.Builder builderForValue) { @@ -1033,8 +958,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1081,19 +1004,14 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3.GcsDestination.newBuilder( - (com.google.cloud.translate.v3.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1109,8 +1027,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1157,9 +1073,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1178,8 +1092,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1226,16 +1138,12 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1282,9 +1190,7 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1298,8 +1204,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1346,24 +1250,17 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * bucket.
      * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1376,8 +1273,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1391,13 +1286,13 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1406,8 +1301,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1421,14 +1314,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1436,8 +1330,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1451,22 +1343,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1480,7 +1368,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1490,8 +1377,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1505,23 +1390,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1531,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentOutputConfig) private static final com.google.cloud.translate.v3.DocumentOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentOutputConfig(); } @@ -1545,27 +1428,27 @@ public static com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1580,4 +1463,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java similarity index 87% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java index cf370a01aa79..4b5da369adef 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentOutputConfigOrBuilder - extends +public interface DocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -72,16 +54,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -128,16 +105,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -184,15 +156,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -206,13 +174,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -226,10 +191,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java index 751649958567..599656c29380 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ -public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentTranslation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentTranslation) DocumentTranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -45,32 +27,28 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, - com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -78,16 +56,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List getByteStreamOutputsList() { + public java.util.List + getByteStreamOutputsList() { return byteStreamOutputs_; } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -95,15 +71,12 @@ public java.util.List getByteStreamOutputsList()
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -111,7 +84,6 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -171,12 +139,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -186,7 +151,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -195,15 +159,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -213,15 +176,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -230,7 +194,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -264,8 +228,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -284,17 +248,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentTranslation other = - (com.google.cloud.translate.v3.DocumentTranslation) obj; + com.google.cloud.translate.v3.DocumentTranslation other = (com.google.cloud.translate.v3.DocumentTranslation) obj; - if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList() + .equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,135 +286,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentTranslation) com.google.cloud.translate.v3.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, - com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentTranslation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override @@ -481,18 +443,14 @@ public com.google.cloud.translate.v3.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3.DocumentTranslation result = - new com.google.cloud.translate.v3.DocumentTranslation(this); + com.google.cloud.translate.v3.DocumentTranslation result = new com.google.cloud.translate.v3.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.DocumentTranslation result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -514,39 +472,38 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentTranslation res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation) other); + return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation)other); } else { super.mergeFrom(other); return this; @@ -554,8 +511,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -602,32 +558,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,22 +589,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List byteStreamOutputs_ = - java.util.Collections.emptyList(); - + private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = - new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -660,17 +606,14 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ - public java.util.List getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(byteStreamOutputs_) - : byteStreamOutputs_; + public java.util.List + getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -678,15 +621,12 @@ public java.util.List getByteStreamOutputsList()
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -694,7 +634,6 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -702,8 +641,6 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -711,23 +648,19 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setByteStreamOutputs( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -735,22 +668,17 @@ public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString va
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -758,20 +686,18 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, byteStreamOutputs_); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -779,7 +705,6 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -791,20 +716,18 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -813,21 +736,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -835,35 +757,28 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -873,21 +788,17 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -897,8 +808,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -908,13 +817,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -923,8 +832,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -934,14 +841,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -949,8 +857,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -960,22 +866,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 3; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -985,7 +887,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 3; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -995,8 +896,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1006,23 +905,21 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1032,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentTranslation) private static final com.google.cloud.translate.v3.DocumentTranslation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentTranslation(); } @@ -1046,27 +943,27 @@ public static com.google.cloud.translate.v3.DocumentTranslation getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,4 +978,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java similarity index 76% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java index f3f741b7c96f..a0de308766f1 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentTranslationOrBuilder - extends +public interface DocumentTranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -33,13 +15,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -47,13 +26,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -61,40 +37,32 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -104,13 +72,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -120,8 +85,8 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java index a9f4428e1c59..dbeaf322df16 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, - com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -105,15 +81,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -122,7 +99,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -158,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3.GcsDestination other = - (com.google.cloud.translate.v3.GcsDestination) obj; + com.google.cloud.translate.v3.GcsDestination other = (com.google.cloud.translate.v3.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,136 +162,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsDestination) com.google.cloud.translate.v3.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, - com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsDestination.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override @@ -345,11 +318,8 @@ public com.google.cloud.translate.v3.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3.GcsDestination buildPartial() { - com.google.cloud.translate.v3.GcsDestination result = - new com.google.cloud.translate.v3.GcsDestination(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GcsDestination result = new com.google.cloud.translate.v3.GcsDestination(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +335,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsDestination result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3.GcsDestination) other); + return mergeFrom((com.google.cloud.translate.v3.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -437,19 +406,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,13 +426,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -475,13 +439,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -490,8 +454,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -501,14 +463,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -516,8 +479,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -527,22 +488,18 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -552,7 +509,6 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -562,8 +518,6 @@ public Builder clearOutputUriPrefix() { return this; } /** - * - * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -573,23 +527,21 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsDestination) private static final com.google.cloud.translate.v3.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsDestination(); } @@ -613,27 +565,27 @@ public static com.google.cloud.translate.v3.GcsDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +600,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java similarity index 64% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java index 83501d8cc6bd..70032240ccc2 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -35,13 +17,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -51,8 +30,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java similarity index 67% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java index 4da305a923c0..9be42c2bf528 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, - com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -150,14 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsSource)) { return super.equals(obj); } com.google.cloud.translate.v3.GcsSource other = (com.google.cloud.translate.v3.GcsSource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsSource) com.google.cloud.translate.v3.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, - com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsSource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override @@ -336,11 +310,8 @@ public com.google.cloud.translate.v3.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3.GcsSource buildPartial() { - com.google.cloud.translate.v3.GcsSource result = - new com.google.cloud.translate.v3.GcsSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GcsSource result = new com.google.cloud.translate.v3.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -356,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsSource result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3.GcsSource) other); + return mergeFrom((com.google.cloud.translate.v3.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -428,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -450,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -477,21 +442,20 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -499,35 +463,28 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -537,30 +494,26 @@ public Builder clearInputUri() { return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -570,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsSource) private static final com.google.cloud.translate.v3.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsSource(); } @@ -584,27 +537,27 @@ public static com.google.cloud.translate.v3.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -619,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java similarity index 52% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java index 08a1d20b8daa..d2e2d20ee1e1 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java index d25600ea3926..835dc64c2b00 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetGlossaryRequest) GetGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, - com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetGlossaryRequest other = - (com.google.cloud.translate.v3.GetGlossaryRequest) obj; + com.google.cloud.translate.v3.GetGlossaryRequest other = (com.google.cloud.translate.v3.GetGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetGlossaryRequest) com.google.cloud.translate.v3.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, - com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -341,11 +310,8 @@ public com.google.cloud.translate.v3.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.GetGlossaryRequest result = - new com.google.cloud.translate.v3.GetGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GetGlossaryRequest result = new com.google.cloud.translate.v3.GetGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GetGlossaryRequest resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -401,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -434,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -509,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -551,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -586,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetGlossaryRequest) private static final com.google.cloud.translate.v3.GetGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetGlossaryRequest(); } @@ -600,27 +537,27 @@ public static com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..741637e2de6f --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface GetGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java index 35a3d6bc65f8..58b8dd01ff91 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSupportedLanguagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -45,32 +27,28 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -87,10 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -99,15 +74,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -124,18 +98,17 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -144,12 +117,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -157,7 +127,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ @java.lang.Override @@ -166,15 +135,14 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -182,15 +150,16 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -199,12 +168,9 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -222,7 +188,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -257,15 +221,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -274,7 +239,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -322,17 +287,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = - (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; - if (!getModel().equals(other.getModel())) return false; + com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getDisplayLanguageCode() + .equals(other.getDisplayLanguageCode())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,136 +323,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.cloud.translate.v3.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetSupportedLanguagesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override @@ -518,11 +480,8 @@ public com.google.cloud.translate.v3.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = - new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -544,39 +503,38 @@ private void buildPartial0(com.google.cloud.translate.v3.GetSupportedLanguagesRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) other); + return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest)other); } else { super.mergeFrom(other); return this; @@ -584,8 +542,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetSupportedLanguagesRequest other) { - if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -627,31 +584,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,13 +614,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -684,16 +634,14 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -702,8 +650,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -720,17 +666,16 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -738,8 +683,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -756,25 +699,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -791,10 +728,7 @@ public Builder setParent(java.lang.String value) {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -804,8 +738,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -822,17 +754,13 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -842,8 +770,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayLanguageCode_ = ""; /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -851,13 +777,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -866,8 +792,6 @@ public java.lang.String getDisplayLanguageCode() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -875,14 +799,15 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -890,8 +815,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -899,22 +822,18 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -922,7 +841,6 @@ public Builder setDisplayLanguageCode(java.lang.String value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -932,8 +850,6 @@ public Builder clearDisplayLanguageCode() { return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -941,14 +857,12 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -958,8 +872,6 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object model_ = ""; /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -977,13 +889,13 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value)
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -992,8 +904,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1011,14 +921,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1026,8 +937,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1045,22 +954,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1078,7 +983,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1088,8 +992,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1107,23 +1009,21 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1133,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) private static final com.google.cloud.translate.v3.GetSupportedLanguagesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(); } @@ -1147,27 +1047,27 @@ public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1182,4 +1082,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java index e1201914f13a..f9e18ec31480 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GetSupportedLanguagesRequestOrBuilder - extends +public interface GetSupportedLanguagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -42,16 +24,11 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -68,17 +45,13 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -86,13 +59,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -100,14 +70,12 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString + getDisplayLanguageCodeBytes(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -125,13 +93,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -149,8 +114,8 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java index 11fd69381128..d96c78b5bf6f 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Represents a glossary built from user-provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ -public final class Glossary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Glossary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary) GlossaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Glossary() { name_ = ""; displayName_ = ""; @@ -44,103 +26,88 @@ private Glossary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, - com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder - extends + public interface LanguageCodePairOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodePair extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -148,39 +115,34 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -189,30 +151,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -221,19 +183,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -242,30 +200,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -274,7 +232,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +243,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -316,16 +274,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodePair other = - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -347,94 +306,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -444,41 +398,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override @@ -510,11 +462,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodePair result = - new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -533,41 +482,38 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodePa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair)other); } else { super.mergeFrom(other); return this; @@ -575,8 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodePair other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -613,25 +558,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,26 +583,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -669,22 +608,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -692,37 +630,30 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -732,22 +663,18 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -757,21 +684,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -780,22 +705,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -803,37 +727,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -843,29 +760,24 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -878,12 +790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) private static final com.google.cloud.translate.v3.Glossary.LanguageCodePair DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(); } @@ -892,28 +804,27 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,16 +839,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LanguageCodesSetOrBuilder - extends + public interface LanguageCodesSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -945,13 +854,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -959,13 +866,10 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -973,14 +877,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -988,64 +889,58 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodesSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodesSet() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1053,15 +948,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1069,15 +962,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1085,7 +975,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1093,8 +982,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1102,16 +989,15 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1123,7 +1009,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1152,15 +1039,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1182,94 +1069,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1279,53 +1161,52 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override @@ -1344,11 +1225,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = - new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1365,41 +1243,38 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodesS public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet)other); } else { super.mergeFrom(other); return this; @@ -1407,8 +1282,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodesSet other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1445,20 +1319,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1468,12 +1340,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1481,8 +1351,6 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1490,16 +1358,14 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1507,15 +1373,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
        * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1523,7 +1386,6 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1531,8 +1393,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1540,16 +1400,14 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1557,15 +1415,13 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1573,8 +1429,6 @@ public Builder setLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1582,14 +1436,12 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1597,8 +1449,6 @@ public Builder addLanguageCodes(java.lang.String value) { return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1606,20 +1456,19 @@ public Builder addLanguageCodes(java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1627,19 +1476,16 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
        * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1647,14 +1493,12 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1662,7 +1506,6 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1675,12 +1518,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) private static final com.google.cloud.translate.v3.Glossary.LanguageCodesSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(); } @@ -1689,28 +1532,27 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1725,22 +1567,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int languagesCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object languages_; - public enum LanguagesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; - private LanguagesCase(int value) { this.value = value; } @@ -1756,40 +1595,33 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: - return LANGUAGE_PAIR; - case 4: - return LANGUAGE_CODES_SET; - case 0: - return LANGUAGES_NOT_SET; - default: - return null; + case 3: return LANGUAGE_PAIR; + case 4: return LANGUAGE_CODES_SET; + case 0: return LANGUAGES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1798,30 +1630,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1831,14 +1663,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1846,26 +1675,21 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -1873,24 +1697,20 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1898,26 +1718,21 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
@@ -1925,10 +1740,9 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1936,15 +1750,12 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1952,26 +1763,19 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1981,22 +1785,17 @@ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null
-        ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
-        : inputConfig_;
+    return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -2007,15 +1806,11 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ @java.lang.Override @@ -2023,15 +1818,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ @java.lang.Override @@ -2039,14 +1830,11 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -2056,15 +1844,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -2072,15 +1856,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -2088,14 +1868,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -2103,18 +1880,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -2123,29 +1896,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2154,7 +1927,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2166,7 +1938,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2204,26 +1977,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, displayName_); @@ -2236,35 +2011,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary)) { return super.equals(obj); } com.google.cloud.translate.v3.Glossary other = (com.google.cloud.translate.v3.Glossary) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (getEntryCount() != other.getEntryCount()) return false; + if (getEntryCount() + != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair().equals(other.getLanguagePair())) return false; + if (!getLanguagePair() + .equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet() + .equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2315,136 +2098,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Glossary parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Glossary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a glossary built from user-provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary) com.google.cloud.translate.v3.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, - com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2479,9 +2258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override @@ -2500,11 +2279,8 @@ public com.google.cloud.translate.v3.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary buildPartial() { - com.google.cloud.translate.v3.Glossary result = - new com.google.cloud.translate.v3.Glossary(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Glossary result = new com.google.cloud.translate.v3.Glossary(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -2516,17 +2292,22 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = - inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); + result.inputConfig_ = inputConfigBuilder_ == null + ? inputConfig_ + : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; @@ -2536,10 +2317,12 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && languagePairBuilder_ != null) { + if (languagesCase_ == 3 && + languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && + languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2548,39 +2331,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary) { - return mergeFrom((com.google.cloud.translate.v3.Glossary) other); + return mergeFrom((com.google.cloud.translate.v3.Glossary)other); } else { super.mergeFrom(other); return this; @@ -2612,20 +2394,17 @@ public Builder mergeFrom(com.google.cloud.translate.v3.Glossary other) { onChanged(); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: - { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: - { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: - { - break; - } + case LANGUAGE_PAIR: { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2653,62 +2432,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: - { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getLanguagePairFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2718,12 +2497,12 @@ public Builder mergeFrom( } // finally return this; } - private int languagesCase_ = 0; private java.lang.Object languages_; - - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public Builder clearLanguages() { @@ -2737,21 +2516,19 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2760,22 +2537,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2783,37 +2559,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2823,22 +2592,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2847,19 +2612,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> - languagePairBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2867,14 +2626,11 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override @@ -2892,8 +2648,6 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2914,8 +2668,6 @@ public Builder setLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCo return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2934,25 +2686,18 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair( - com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 - && languages_ - != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder( - (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 3 && + languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -2968,8 +2713,6 @@ public Builder mergeLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2993,21 +2736,16 @@ public Builder clearLanguagePair() { return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder - getLanguagePairBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3015,8 +2753,7 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -3027,8 +2764,6 @@ public Builder clearLanguagePair() { } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -3036,19 +2771,14 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -3060,19 +2790,13 @@ public Builder clearLanguagePair() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> - languageCodesSetBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -3080,14 +2804,11 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ @java.lang.Override @@ -3105,16 +2826,13 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3128,8 +2846,6 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3148,25 +2864,18 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 - && languages_ - != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder( - (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 4 && + languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -3182,8 +2891,6 @@ public Builder mergeLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3207,21 +2914,16 @@ public Builder clearLanguageCodesSet() { return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder - getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3229,8 +2931,7 @@ public Builder clearLanguageCodesSet() { * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -3241,8 +2942,6 @@ public Builder clearLanguageCodesSet() { } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
@@ -3250,19 +2949,14 @@ public Builder clearLanguageCodesSet() { * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -3275,49 +2969,36 @@ public Builder clearLanguageCodesSet() { private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GlossaryInputConfig, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder, - com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3339,8 +3020,6 @@ public Builder setInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3360,8 +3039,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3371,10 +3048,9 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && inputConfig_ != null
-            && inputConfig_
-                != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          inputConfig_ != null &&
+          inputConfig_ != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -3387,8 +3063,6 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3407,8 +3081,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3422,8 +3094,6 @@ public com.google.cloud.translate.v3.GlossaryInputConfig.Builder getInputConfigB
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3435,14 +3105,11 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3451,32 +3118,26 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
      * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GlossaryInputConfig,
-            com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
-            com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>
+        com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GlossaryInputConfig,
-                com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
-                com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_;
+    private int entryCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -3484,14 +3145,11 @@ public int getEntryCount() { return entryCount_; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3503,14 +3161,11 @@ public Builder setEntryCount(int value) { return this; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3522,58 +3177,39 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3589,17 +3225,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3610,21 +3243,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3637,15 +3266,11 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3658,15 +3283,11 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3674,48 +3295,36 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3723,35 +3332,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3762,14 +3360,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3785,16 +3380,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3805,20 +3398,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3831,14 +3421,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3851,14 +3438,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3866,44 +3450,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -3911,20 +3487,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3933,21 +3507,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3955,35 +3528,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3993,30 +3559,26 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4026,12 +3588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary) private static final com.google.cloud.translate.v3.Glossary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary(); } @@ -4040,27 +3602,27 @@ public static com.google.cloud.translate.v3.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4075,4 +3637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java index 51e6da2ec7e3..61296364dabe 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GlossaryInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GlossaryInputConfig) GlossaryInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GlossaryInputConfig() {} + private GlossaryInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -135,7 +109,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -143,8 +116,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -170,19 +141,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -212,13 +180,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -230,7 +197,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -244,9 +212,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -256,18 +223,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.GlossaryInputConfig other =
-        (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3.GlossaryInputConfig other = (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -297,135 +264,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GlossaryInputConfig) com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, - com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -460,11 +423,8 @@ public com.google.cloud.translate.v3.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3.GlossaryInputConfig result = - new com.google.cloud.translate.v3.GlossaryInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.GlossaryInputConfig result = new com.google.cloud.translate.v3.GlossaryInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -477,7 +437,8 @@ private void buildPartial0(com.google.cloud.translate.v3.GlossaryInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -486,39 +447,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig)other); } else { super.mergeFrom(other); return this; @@ -526,18 +486,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -565,19 +522,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,12 +544,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -605,13 +562,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -637,7 +589,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -645,8 +596,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -672,7 +621,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -690,8 +638,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -732,8 +678,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -760,7 +704,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -771,8 +716,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -801,13 +744,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -823,8 +763,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -868,8 +806,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -900,8 +836,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -940,8 +874,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -969,19 +901,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -991,9 +918,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1003,12 +930,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3.GlossaryInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GlossaryInputConfig();
   }
@@ -1017,27 +944,27 @@ public static com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GlossaryInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GlossaryInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1052,4 +979,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
similarity index 84%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
index e759dd0a8775..fb22a8f7160c 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryInputConfigOrBuilder
-    extends
+public interface GlossaryInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -51,13 +33,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -83,13 +62,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
similarity index 100%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
similarity index 81%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
index 1a660f1ad122..43319bf6f093 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
@@ -1,82 +1,53 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryOrBuilder
-    extends
+public interface GlossaryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -86,32 +57,24 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; - * * @return The languageCodesSet. */ com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
@@ -121,34 +84,26 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -159,118 +114,88 @@ public interface GlossaryOrBuilder
   com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ int getEntryCount(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); com.google.cloud.translate.v3.Glossary.LanguagesCase getLanguagesCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java index 235db7d84b73..67e7ac456466 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, - com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -90,31 +67,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -123,7 +95,6 @@ public SourceCase getSourceCase() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -132,15 +103,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -149,15 +119,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -167,8 +138,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -191,7 +160,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -199,8 +167,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -223,19 +189,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -262,13 +225,12 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3.GcsSource) source_;
+       return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -280,7 +242,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -300,9 +263,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.translate.v3.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -312,19 +274,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.InputConfig other =
-        (com.google.cloud.translate.v3.InputConfig) obj;
+    com.google.cloud.translate.v3.InputConfig other = (com.google.cloud.translate.v3.InputConfig) obj;
 
-    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -355,136 +318,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.InputConfig) com.google.cloud.translate.v3.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, - com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.InputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override @@ -520,11 +479,8 @@ public com.google.cloud.translate.v3.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.InputConfig buildPartial() { - com.google.cloud.translate.v3.InputConfig result = - new com.google.cloud.translate.v3.InputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.InputConfig result = new com.google.cloud.translate.v3.InputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -540,7 +496,8 @@ private void buildPartial0(com.google.cloud.translate.v3.InputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -549,39 +506,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3.InputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -596,15 +552,13 @@ public Builder mergeFrom(com.google.cloud.translate.v3.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -632,25 +586,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,12 +613,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -679,8 +632,6 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -689,13 +640,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -704,8 +655,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -714,14 +663,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -729,8 +679,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -739,22 +687,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -763,7 +707,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -773,8 +716,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -783,14 +724,12 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -799,13 +738,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, - com.google.cloud.translate.v3.GcsSource.Builder, - com.google.cloud.translate.v3.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -828,7 +762,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -836,8 +769,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -860,7 +791,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -878,8 +808,6 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -917,8 +845,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -942,7 +868,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(
+        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -953,8 +880,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -980,13 +905,10 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder buil
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1002,8 +924,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1044,8 +964,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1073,8 +991,6 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1110,8 +1026,6 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1136,19 +1050,14 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource,
-            com.google.cloud.translate.v3.GcsSource.Builder,
-            com.google.cloud.translate.v3.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3.GcsSource,
-                com.google.cloud.translate.v3.GcsSource.Builder,
-                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1158,9 +1067,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1170,12 +1079,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.InputConfig)
   private static final com.google.cloud.translate.v3.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.InputConfig();
   }
@@ -1184,27 +1093,27 @@ public static com.google.cloud.translate.v3.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1219,4 +1128,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
similarity index 86%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
index 382010027946..9ba8a5b4c0ec 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -34,13 +16,10 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -49,14 +28,12 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +56,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -108,13 +82,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
similarity index 75%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
index 90cb92cb5494..cc8459ab2ed5 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesRequest) ListGlossariesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,40 +27,33 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, - com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,15 +95,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -139,12 +109,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -153,7 +120,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +128,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -179,15 +144,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -196,12 +162,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -222,7 +185,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -231,15 +193,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -260,15 +221,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -277,7 +239,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -315,7 +277,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -331,18 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesRequest other = - (com.google.cloud.translate.v3.ListGlossariesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.translate.v3.ListGlossariesRequest other = (com.google.cloud.translate.v3.ListGlossariesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,135 +334,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesRequest) com.google.cloud.translate.v3.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, - com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -509,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -530,11 +492,8 @@ public com.google.cloud.translate.v3.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3.ListGlossariesRequest result = - new com.google.cloud.translate.v3.ListGlossariesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.ListGlossariesRequest result = new com.google.cloud.translate.v3.ListGlossariesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -559,39 +518,38 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest) other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest)other); } else { super.mergeFrom(other); return this; @@ -599,8 +557,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -645,37 +602,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -685,27 +637,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -714,23 +661,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -738,39 +682,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -780,23 +713,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -804,17 +731,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -822,15 +746,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -842,15 +763,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -862,8 +780,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -872,13 +788,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -887,8 +803,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -897,14 +811,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -912,8 +827,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -922,22 +835,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -946,7 +855,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -956,8 +864,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -966,14 +872,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -983,8 +887,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1005,13 +907,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1020,8 +922,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1042,14 +942,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1057,8 +958,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1079,22 +978,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1115,7 +1010,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1125,8 +1019,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1147,23 +1039,21 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1173,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesRequest) private static final com.google.cloud.translate.v3.ListGlossariesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesRequest(); } @@ -1187,27 +1077,27 @@ public static com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1222,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java index 8395ca4fd025..fd96eb4ac5b2 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java @@ -1,74 +1,44 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesRequestOrBuilder - extends +public interface ListGlossariesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -77,13 +47,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -92,14 +59,12 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -120,13 +85,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -147,8 +109,8 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java index 017627031f51..05cfe9f7e96f 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesResponse) ListGlossariesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, - com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List glossaries_; /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -81,8 +59,6 @@ public java.util.List getGlossariesList( return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -90,13 +66,11 @@ public java.util.List getGlossariesList( * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -108,8 +82,6 @@ public int getGlossariesCount() { return glossaries_.size(); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -130,17 +100,15 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -148,7 +116,6 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -219,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesResponse other = - (com.google.cloud.translate.v3.ListGlossariesResponse) obj; + com.google.cloud.translate.v3.ListGlossariesResponse other = (com.google.cloud.translate.v3.ListGlossariesResponse) obj; - if (!getGlossariesList().equals(other.getGlossariesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getGlossariesList() + .equals(other.getGlossariesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,135 +234,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesResponse) com.google.cloud.translate.v3.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, - com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -431,18 +396,14 @@ public com.google.cloud.translate.v3.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3.ListGlossariesResponse result = - new com.google.cloud.translate.v3.ListGlossariesResponse(this); + com.google.cloud.translate.v3.ListGlossariesResponse result = new com.google.cloud.translate.v3.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.ListGlossariesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -465,39 +426,38 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse) other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse)other); } else { super.mergeFrom(other); return this; @@ -505,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -525,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse ot glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlossariesFieldBuilder() - : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGlossariesFieldBuilder() : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -565,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.Glossary m = - input.readMessage( - com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3.Glossary m = + input.readMessage( + com.google.cloud.translate.v3.Glossary.parser(), + extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -600,28 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> - glossariesBuilder_; + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossariesBuilder_; /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -636,8 +585,6 @@ public java.util.List getGlossariesList( } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -652,8 +599,6 @@ public int getGlossariesCount() { } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -668,15 +613,14 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { + public Builder setGlossaries( + int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,8 +634,6 @@ public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary v return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -710,8 +652,6 @@ public Builder setGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -732,15 +672,14 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary value) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { + public Builder addGlossaries( + int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -754,15 +693,14 @@ public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary v return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder addGlossaries( + com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); glossaries_.add(builderForValue.build()); @@ -773,8 +711,6 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder buil return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -793,8 +729,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -805,7 +739,8 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -813,8 +748,6 @@ public Builder addAllGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -832,8 +765,6 @@ public Builder clearGlossaries() { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -851,44 +782,39 @@ public Builder removeGlossaries(int index) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder(int index) { + public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder( + int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); - } else { + return glossaries_.get(index); } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -896,8 +822,6 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -905,48 +829,42 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(in * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder() - .addBuilder(com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder().addBuilder( + com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int index) { - return getGlossariesFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder( + int index) { + return getGlossariesFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, - com.google.cloud.translate.v3.Glossary.Builder, - com.google.cloud.translate.v3.GlossaryOrBuilder>( - glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( + glossaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -954,8 +872,6 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -963,13 +879,13 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int i
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -978,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -987,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1002,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1011,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1034,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1053,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesResponse) private static final com.google.cloud.translate.v3.ListGlossariesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesResponse(); } @@ -1093,27 +997,27 @@ public static com.google.cloud.translate.v3.ListGlossariesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java index 8b89b523c5be..29c4dd7cf828 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesResponseOrBuilder - extends +public interface ListGlossariesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List getGlossariesList(); + java.util.List + getGlossariesList(); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -44,8 +25,6 @@ public interface ListGlossariesResponseOrBuilder */ com.google.cloud.translate.v3.Glossary getGlossaries(int index); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -54,30 +33,25 @@ public interface ListGlossariesResponseOrBuilder */ int getGlossariesCount(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index); + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( + int index); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -85,13 +59,10 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -99,8 +70,8 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java similarity index 100% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java similarity index 85% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java index cdc55677ab0c..4bdff2eea490 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, - com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -166,10 +140,10 @@ public DestinationCase getDestinationCase() {
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -181,11 +155,10 @@ public DestinationCase getDestinationCase() {
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -193,8 +166,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -251,10 +222,10 @@ public boolean hasGcsDestination() {
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -266,23 +237,20 @@ public boolean hasGcsDestination() {
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -339,10 +307,10 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -354,7 +322,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; @@ -362,13 +330,12 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } @@ -394,9 +362,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,18 +373,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.OutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.OutputConfig other = - (com.google.cloud.translate.v3.OutputConfig) obj; + com.google.cloud.translate.v3.OutputConfig other = (com.google.cloud.translate.v3.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -446,136 +413,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.OutputConfig) com.google.cloud.translate.v3.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, - com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.OutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override @@ -610,11 +573,8 @@ public com.google.cloud.translate.v3.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.OutputConfig buildPartial() { - com.google.cloud.translate.v3.OutputConfig result = - new com.google.cloud.translate.v3.OutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.OutputConfig result = new com.google.cloud.translate.v3.OutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -627,7 +587,8 @@ private void buildPartial0(com.google.cloud.translate.v3.OutputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -636,39 +597,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.OutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -678,15 +638,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.translate.v3.OutputConfig other) { if (other == com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -714,19 +672,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -736,12 +694,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -754,13 +712,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -817,10 +770,10 @@ public Builder clearDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -832,11 +785,10 @@ public Builder clearDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -844,8 +796,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -902,10 +852,10 @@ public boolean hasGcsDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -917,11 +867,10 @@ public boolean hasGcsDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -939,8 +888,6 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -997,10 +944,10 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1012,7 +959,7 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; @@ -1031,8 +978,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1089,10 +1034,10 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1104,7 +1049,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; @@ -1121,8 +1066,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1179,10 +1122,10 @@ public Builder setGcsDestination(
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1194,20 +1137,17 @@ public Builder setGcsDestination(
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3.GcsDestination.newBuilder( - (com.google.cloud.translate.v3.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1223,8 +1163,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1281,10 +1219,10 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1296,7 +1234,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; @@ -1318,8 +1256,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1376,10 +1312,10 @@ public Builder clearGcsDestination() {
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1391,7 +1327,7 @@ public Builder clearGcsDestination() {
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; @@ -1400,8 +1336,6 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1458,10 +1392,10 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1473,7 +1407,7 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; @@ -1490,8 +1424,6 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1548,10 +1480,10 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * If input file extension is a txt or html, the translation is directly
      * written to the output file. If glossary is requested, a separate
      * glossary_translations_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
      *
      * The format of errors file (for target language code 'trg') is:
-     * gs://translation_test/a_b_c_'trg'_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
      *
      * If the input file extension is tsv, errors_file contains the following:
      * Column 1: ID of the request provided in the input, if it's not
@@ -1563,25 +1495,20 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      *
      * If the input file extension is txt or html, glossary_error_file will be
      * generated that contains error details. glossary_error_file has format of
-     * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+     * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder> + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, - com.google.cloud.translate.v3.GcsDestination.Builder, - com.google.cloud.translate.v3.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1591,9 +1518,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr onChanged(); return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1603,12 +1530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.OutputConfig) private static final com.google.cloud.translate.v3.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.OutputConfig(); } @@ -1617,27 +1544,27 @@ public static com.google.cloud.translate.v3.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1652,4 +1579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java similarity index 90% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java index e5a9617a4dd6..727c282f770f 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -82,10 +64,10 @@ public interface OutputConfigOrBuilder
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -97,17 +79,14 @@ public interface OutputConfigOrBuilder
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -164,10 +143,10 @@ public interface OutputConfigOrBuilder
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -179,17 +158,14 @@ public interface OutputConfigOrBuilder
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -246,10 +222,10 @@ public interface OutputConfigOrBuilder
    * If input file extension is a txt or html, the translation is directly
    * written to the output file. If glossary is requested, a separate
    * glossary_translations_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
    *
    * The format of errors file (for target language code 'trg') is:
-   * gs://translation_test/a_b_c_'trg'_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_errors.[extension]`
    *
    * If the input file extension is tsv, errors_file contains the following:
    * Column 1: ID of the request provided in the input, if it's not
@@ -261,7 +237,7 @@ public interface OutputConfigOrBuilder
    *
    * If the input file extension is txt or html, glossary_error_file will be
    * generated that contains error details. glossary_error_file has format of
-   * gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
+   * `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java index ae1b11b64191..1fd9d3dc0283 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
  */
-public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SupportedLanguage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguage)
     SupportedLanguageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -45,32 +27,28 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.SupportedLanguage.class,
-            com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
-   *
-   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -105,15 +81,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -122,19 +99,15 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -143,30 +116,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -177,14 +150,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** - * - * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -195,14 +165,11 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** - * - * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -211,7 +178,6 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -252,10 +219,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,18 +234,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.SupportedLanguage other = - (com.google.cloud.translate.v3.SupportedLanguage) obj; + com.google.cloud.translate.v3.SupportedLanguage other = (com.google.cloud.translate.v3.SupportedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getSupportSource() != other.getSupportSource()) return false; - if (getSupportTarget() != other.getSupportTarget()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getSupportSource() + != other.getSupportSource()) return false; + if (getSupportTarget() + != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,112 +265,109 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -406,32 +375,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguage)
       com.google.cloud.translate.v3.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.SupportedLanguage.class,
-              com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.SupportedLanguage.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -465,11 +435,8 @@ public com.google.cloud.translate.v3.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3.SupportedLanguage result =
-          new com.google.cloud.translate.v3.SupportedLanguage(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.SupportedLanguage result = new com.google.cloud.translate.v3.SupportedLanguage(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -494,39 +461,38 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguage resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage) other);
+        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance()) return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -578,37 +543,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                supportSource_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                supportTarget_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              supportSource_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              supportTarget_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,13 +578,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -633,13 +590,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -648,8 +605,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -658,14 +613,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -673,8 +629,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -683,22 +637,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -707,7 +657,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -717,8 +666,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -727,14 +674,12 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -744,21 +689,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -767,22 +710,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -790,37 +732,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -830,22 +765,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -853,16 +784,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean supportSource_; + private boolean supportSource_ ; /** - * - * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -870,14 +798,11 @@ public boolean getSupportSource() { return supportSource_; } /** - * - * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; - * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -889,14 +814,11 @@ public Builder setSupportSource(boolean value) { return this; } /** - * - * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; - * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -906,16 +828,13 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_; + private boolean supportTarget_ ; /** - * - * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -923,14 +842,11 @@ public boolean getSupportTarget() { return supportTarget_; } /** - * - * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; - * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -942,14 +858,11 @@ public Builder setSupportTarget(boolean value) { return this; } /** - * - * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; - * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -958,9 +871,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguage) private static final com.google.cloud.translate.v3.SupportedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguage(); } @@ -984,27 +897,27 @@ public static com.google.cloud.translate.v3.SupportedLanguage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java index 37c368f31ecf..558c0e71e25a 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface SupportedLanguageOrBuilder - extends +public interface SupportedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -34,13 +16,10 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -49,60 +28,49 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ boolean getSupportSource(); /** - * - * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java index 72b8b288fe39..ee010be134cc 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ -public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SupportedLanguages extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguages) SupportedLanguagesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, - com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -81,8 +59,6 @@ public java.util.List getLangua
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -91,13 +67,11 @@ public java.util.List getLangua
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -134,12 +104,12 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index) {
+  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -165,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -175,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.SupportedLanguages other =
-        (com.google.cloud.translate.v3.SupportedLanguages) obj;
+    com.google.cloud.translate.v3.SupportedLanguages other = (com.google.cloud.translate.v3.SupportedLanguages) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -204,136 +176,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguages) com.google.cloud.translate.v3.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, - com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3.SupportedLanguages.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override @@ -370,18 +338,14 @@ public com.google.cloud.translate.v3.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3.SupportedLanguages result = - new com.google.cloud.translate.v3.SupportedLanguages(this); + com.google.cloud.translate.v3.SupportedLanguages result = new com.google.cloud.translate.v3.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3.SupportedLanguages result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -401,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguages resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages) other); + return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages)other); } else { super.mergeFrom(other); return this; @@ -441,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -461,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -496,27 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -526,29 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList(languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.SupportedLanguage, - com.google.cloud.translate.v3.SupportedLanguage.Builder, - com.google.cloud.translate.v3.SupportedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -564,8 +515,6 @@ public java.util.List getLangua
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -581,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -598,8 +545,6 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -607,7 +552,8 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder setLanguages(
+        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -621,8 +567,6 @@ public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -642,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -665,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -674,7 +614,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder addLanguages(
+        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -688,8 +629,6 @@ public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -709,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -730,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -743,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -751,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -771,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -791,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -800,12 +730,11 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(int index) {
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(
+        int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -816,14 +745,11 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuild
     public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -831,8 +757,8 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -840,8 +766,6 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -850,12 +774,10 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -863,13 +785,12 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(
+        int index) {
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -877,30 +798,27 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.SupportedLanguage,
-            com.google.cloud.translate.v3.SupportedLanguage.Builder,
-            com.google.cloud.translate.v3.SupportedLanguageOrBuilder>
+        com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.SupportedLanguage,
-                com.google.cloud.translate.v3.SupportedLanguage.Builder,
-                com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -910,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguages)
   private static final com.google.cloud.translate.v3.SupportedLanguages DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguages();
   }
@@ -924,27 +842,27 @@ public static com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SupportedLanguages parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SupportedLanguages parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -959,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
index 6e3c2f2f1e5b..098702c63e9f 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface SupportedLanguagesOrBuilder
-    extends
+public interface SupportedLanguagesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -33,10 +15,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -46,8 +27,6 @@ public interface SupportedLanguagesOrBuilder
    */
   com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -57,8 +36,6 @@ public interface SupportedLanguagesOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -66,11 +43,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -78,5 +53,6 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
similarity index 70%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
index b2a85bba7e18..9d623a7afd43 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -47,43 +29,40 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, - com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -100,7 +79,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -109,15 +87,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -134,15 +111,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -151,12 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -167,7 +142,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -176,15 +150,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -195,15 +168,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -212,19 +186,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -233,30 +203,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -267,16 +237,11 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -284,48 +249,32 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -334,10 +283,7 @@ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -345,8 +291,6 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -355,21 +299,14 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -378,25 +315,17 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -414,7 +343,6 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -423,15 +351,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -449,15 +376,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -468,18 +396,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -487,76 +410,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -572,21 +479,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -606,8 +512,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -623,19 +527,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -651,11 +553,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -663,12 +565,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object customizedAttribution_ = "";
   /**
-   *
-   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -677,7 +576,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ @java.lang.Override @@ -686,15 +584,14 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -703,15 +600,16 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -722,15 +620,12 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { public static final int IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER = 11; private boolean isTranslateNativePdfOnly_ = false; /** - * - * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -741,8 +636,6 @@ public boolean getIsTranslateNativePdfOnly() { public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER = 12; private boolean enableShadowRemovalNativePdf_ = false; /** - * - * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -750,9 +643,7 @@ public boolean getIsTranslateNativePdfOnly() {
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -761,7 +652,6 @@ public boolean getEnableShadowRemovalNativePdf() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -773,7 +663,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -795,8 +686,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (glossaryConfig_ != null) { output.writeMessage(7, getGlossaryConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customizedAttribution_); } @@ -825,37 +720,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_); } if (documentInputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDocumentInputConfig()); } if (documentOutputConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDocumentOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getGlossaryConfig()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); } if (isTranslateNativePdfOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, isTranslateNativePdfOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, isTranslateNativePdfOnly_); } if (enableShadowRemovalNativePdf_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableShadowRemovalNativePdf_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, enableShadowRemovalNativePdf_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -865,34 +763,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentRequest other = - (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; + com.google.cloud.translate.v3.TranslateDocumentRequest other = (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false; if (hasDocumentInputConfig()) { - if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false; + if (!getDocumentInputConfig() + .equals(other.getDocumentInputConfig())) return false; } if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false; if (hasDocumentOutputConfig()) { - if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false; + if (!getDocumentOutputConfig() + .equals(other.getDocumentOutputConfig())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; - if (getIsTranslateNativePdfOnly() != other.getIsTranslateNativePdfOnly()) return false; - if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getCustomizedAttribution() + .equals(other.getCustomizedAttribution())) return false; + if (getIsTranslateNativePdfOnly() + != other.getIsTranslateNativePdfOnly()) return false; + if (getEnableShadowRemovalNativePdf() + != other.getEnableShadowRemovalNativePdf()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -931,166 +839,164 @@ public int hashCode() { hash = (37 * hash) + CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER; hash = (53 * hash) + getCustomizedAttribution().hashCode(); hash = (37 * hash) + IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsTranslateNativePdfOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTranslateNativePdfOnly()); hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableShadowRemovalNativePdf()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentRequest) com.google.cloud.translate.v3.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, - com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1122,9 +1028,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1143,11 +1049,8 @@ public com.google.cloud.translate.v3.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentRequest result = - new com.google.cloud.translate.v3.TranslateDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.TranslateDocumentRequest result = new com.google.cloud.translate.v3.TranslateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1164,23 +1067,22 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = - documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = - documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1201,39 +1103,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1241,8 +1142,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1272,7 +1172,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1311,87 +1212,77 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 88: - { - isTranslateNativePdfOnly_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 88 - case 96: - { - enableShadowRemovalNativePdf_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 88: { + isTranslateNativePdfOnly_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: { + enableShadowRemovalNativePdf_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1401,13 +1292,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1424,13 +1312,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1439,8 +1327,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1457,14 +1343,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1472,8 +1359,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1490,22 +1375,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1522,7 +1403,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -1532,8 +1412,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1550,14 +1428,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1567,8 +1443,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1579,13 +1453,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1594,8 +1468,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1606,14 +1478,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1621,8 +1494,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1633,22 +1504,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1659,7 +1526,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1669,8 +1535,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1681,14 +1545,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1698,21 +1560,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1721,22 +1581,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1744,37 +1603,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1784,22 +1636,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1809,58 +1657,39 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> - documentInputConfigBuilder_; + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { @@ -1876,15 +1705,11 @@ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInpu return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3.DocumentInputConfig.Builder builderForValue) { @@ -1898,23 +1723,17 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDocumentInputConfig( - com.google.cloud.translate.v3.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && documentInputConfig_ != null - && documentInputConfig_ - != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + documentInputConfig_ != null && + documentInputConfig_ != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1927,15 +1746,11 @@ public Builder mergeDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1948,66 +1763,48 @@ public Builder clearDocumentInputConfig() { return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.DocumentInputConfig.Builder - getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? + com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, - com.google.cloud.translate.v3.DocumentInputConfig.Builder, - com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), getParentForChildren(), isClean()); + documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), + getParentForChildren(), + isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -2015,13 +1812,8 @@ public Builder clearDocumentInputConfig() { private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> - documentOutputConfigBuilder_; + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2030,18 +1822,13 @@ public Builder clearDocumentInputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2050,24 +1837,17 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2076,12 +1856,9 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDocumentOutputConfig( - com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2095,8 +1872,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2105,9 +1880,7 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3.DocumentOutputConfig.Builder builderForValue) { @@ -2121,8 +1894,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2131,17 +1902,13 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDocumentOutputConfig( - com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && documentOutputConfig_ != null - && documentOutputConfig_ - != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + documentOutputConfig_ != null && + documentOutputConfig_ != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -2154,8 +1921,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2164,9 +1929,7 @@ public Builder mergeDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2179,8 +1942,6 @@ public Builder clearDocumentOutputConfig() { return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2189,19 +1950,14 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.DocumentOutputConfig.Builder - getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2210,23 +1966,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? + com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2235,22 +1985,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, - com.google.cloud.translate.v3.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), getParentForChildren(), isClean()); + documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), + getParentForChildren(), + isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2258,8 +2003,6 @@ public Builder clearDocumentOutputConfig() { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2277,13 +2020,13 @@ public Builder clearDocumentOutputConfig() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2292,8 +2035,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2311,14 +2052,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2326,8 +2068,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2345,22 +2085,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2378,7 +2114,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2388,8 +2123,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2407,14 +2140,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2424,67 +2155,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2498,17 +2209,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2522,25 +2229,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2553,17 +2254,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2576,90 +2273,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2668,13 +2349,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2690,21 +2368,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2724,8 +2401,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2741,19 +2416,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2769,25 +2442,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2802,22 +2473,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2832,20 +2504,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2860,16 +2529,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object customizedAttribution_ = "";
     /**
-     *
-     *
      * 
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2878,13 +2547,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -2893,8 +2562,6 @@ public java.lang.String getCustomizedAttribution() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2903,14 +2570,15 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString + getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -2918,8 +2586,6 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() { } } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2928,22 +2594,18 @@ public com.google.protobuf.ByteString getCustomizedAttributionBytes() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttribution( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2952,7 +2614,6 @@ public Builder setCustomizedAttribution(java.lang.String value) {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -2962,8 +2623,6 @@ public Builder clearCustomizedAttribution() { return this; } /** - * - * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2972,14 +2631,12 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomizedAttributionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; @@ -2987,18 +2644,14 @@ public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString valu return this; } - private boolean isTranslateNativePdfOnly_; + private boolean isTranslateNativePdfOnly_ ; /** - * - * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -3006,16 +2659,12 @@ public boolean getIsTranslateNativePdfOnly() { return isTranslateNativePdfOnly_; } /** - * - * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param value The isTranslateNativePdfOnly to set. * @return This builder for chaining. */ @@ -3027,16 +2676,12 @@ public Builder setIsTranslateNativePdfOnly(boolean value) { return this; } /** - * - * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearIsTranslateNativePdfOnly() { @@ -3046,10 +2691,8 @@ public Builder clearIsTranslateNativePdfOnly() { return this; } - private boolean enableShadowRemovalNativePdf_; + private boolean enableShadowRemovalNativePdf_ ; /** - * - * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -3057,9 +2700,7 @@ public Builder clearIsTranslateNativePdfOnly() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -3067,8 +2708,6 @@ public boolean getEnableShadowRemovalNativePdf() { return enableShadowRemovalNativePdf_; } /** - * - * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -3076,9 +2715,7 @@ public boolean getEnableShadowRemovalNativePdf() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableShadowRemovalNativePdf to set. * @return This builder for chaining. */ @@ -3090,8 +2727,6 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) { return this; } /** - * - * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -3099,9 +2734,7 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableShadowRemovalNativePdf() { @@ -3110,9 +2743,9 @@ public Builder clearEnableShadowRemovalNativePdf() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3122,12 +2755,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentRequest) private static final com.google.cloud.translate.v3.TranslateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentRequest(); } @@ -3136,27 +2769,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3171,4 +2804,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java similarity index 80% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java index 80203b939fbd..d3d93011bdfa 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentRequestOrBuilder - extends +public interface TranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -42,13 +24,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -65,14 +44,12 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -83,13 +60,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -100,82 +74,61 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -184,16 +137,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -202,16 +150,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -220,15 +163,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -246,13 +185,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -270,61 +206,45 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -341,8 +261,6 @@ public interface TranslateDocumentRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -357,13 +275,15 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -378,10 +298,9 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -397,13 +316,11 @@ public interface TranslateDocumentRequestOrBuilder
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -418,11 +335,10 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -431,13 +347,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** - * - * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -446,28 +359,23 @@ java.lang.String getLabelsOrDefault(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString getCustomizedAttributionBytes(); + com.google.protobuf.ByteString + getCustomizedAttributionBytes(); /** - * - * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isTranslateNativePdfOnly. */ boolean getIsTranslateNativePdfOnly(); /** - * - * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -475,9 +383,7 @@ java.lang.String getLabelsOrDefault(
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableShadowRemovalNativePdf. */ boolean getEnableShadowRemovalNativePdf(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java index 67518f981181..db06f3d6a2eb 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, - com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -80,25 +58,18 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } /** - * - * *
    * Translated document.
    * 
@@ -106,27 +77,20 @@ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation( * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -134,52 +98,37 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -192,7 +141,6 @@ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTran
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -201,15 +149,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -222,15 +169,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -241,14 +189,11 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -256,25 +201,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -282,15 +220,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +236,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -325,18 +260,19 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getGlossaryDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -346,27 +282,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentResponse other = - (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3.TranslateDocumentResponse other = (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation() + .equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) - return false; + if (!getGlossaryDocumentTranslation() + .equals(other.getGlossaryDocumentTranslation())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -399,136 +337,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentResponse) com.google.cloud.translate.v3.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, - com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override @@ -574,11 +507,8 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentResponse result = - new com.google.cloud.translate.v3.TranslateDocumentResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.TranslateDocumentResponse result = new com.google.cloud.translate.v3.TranslateDocumentResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -586,23 +516,22 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = - documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = - glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -610,39 +539,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentRespon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -650,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentResponse other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -692,39 +619,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,52 +660,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> - documentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> documentTranslationBuilder_; /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** - * - * *
      * Translated document.
      * 
@@ -800,8 +712,6 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3.DocumentTran return this; } /** - * - * *
      * Translated document.
      * 
@@ -820,21 +730,17 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && documentTranslation_ != null - && documentTranslation_ - != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + documentTranslation_ != null && + documentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -847,8 +753,6 @@ public Builder mergeDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -866,42 +770,33 @@ public Builder clearDocumentTranslation() { return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder - getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? + com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; } } /** - * - * *
      * Translated document.
      * 
@@ -909,17 +804,14 @@ public Builder clearDocumentTranslation() { * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getDocumentTranslation(), getParentForChildren(), isClean()); + documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getDocumentTranslation(), + getParentForChildren(), + isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -927,64 +819,47 @@ public Builder clearDocumentTranslation() { private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> - glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public Builder setGlossaryDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -998,16 +873,13 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3.DocumentTranslation.Builder builderForValue) { @@ -1021,24 +893,19 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public Builder mergeGlossaryDocumentTranslation( - com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossaryDocumentTranslation_ != null - && glossaryDocumentTranslation_ - != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossaryDocumentTranslation_ != null && + glossaryDocumentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -1051,16 +918,13 @@ public Builder mergeGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1073,69 +937,54 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder - getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? + com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, - com.google.cloud.translate.v3.DocumentTranslation.Builder, - com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); + glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), + getParentForChildren(), + isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -1143,8 +992,6 @@ public Builder clearGlossaryDocumentTranslation() { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1157,13 +1004,13 @@ public Builder clearGlossaryDocumentTranslation() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1172,8 +1019,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1186,14 +1031,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1201,8 +1047,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1215,22 +1059,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1243,7 +1083,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1253,8 +1092,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1267,14 +1104,12 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1284,55 +1119,41 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1346,8 +1167,6 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1366,21 +1185,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1393,8 +1208,6 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1412,42 +1225,33 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1455,24 +1259,21 @@ public Builder clearGlossaryConfig() { * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1482,12 +1283,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentResponse) private static final com.google.cloud.translate.v3.TranslateDocumentResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentResponse(); } @@ -1496,27 +1297,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,4 +1332,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java index 8bbcee6311b6..12df582e1665 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentResponseOrBuilder - extends +public interface TranslateDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
@@ -59,53 +35,39 @@ public interface TranslateDocumentResponseOrBuilder com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; */ - com.google.cloud.translate.v3.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -118,13 +80,10 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -137,38 +96,30 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java index fd6a308ec202..19d44926cff7 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -28,48 +11,43 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranslateTextGlossaryConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
-   *
-   *
    * 
    * Required. The `glossary` to be applied for this translation.
    *
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ @java.lang.Override @@ -89,15 +66,14 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -108,15 +84,16 @@ public java.lang.String getGlossary() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -127,15 +104,12 @@ public com.google.protobuf.ByteString getGlossaryBytes() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** - * - * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -144,7 +118,6 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,7 +129,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -176,7 +150,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,16 +161,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = - (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; - if (!getGlossary().equals(other.getGlossary())) return false; - if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; + if (getIgnoreCase() + != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,111 +186,106 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -322,32 +293,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -358,9 +330,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
@@ -379,11 +351,8 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result =
-          new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -402,39 +371,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextGlossaryCo
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig) other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -442,8 +410,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextGlossaryConfig other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -478,25 +445,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                glossary_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                ignoreCase_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              glossary_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              ignoreCase_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -506,13 +470,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
-     *
-     *
      * 
      * Required. The `glossary` to be applied for this translation.
      *
@@ -523,13 +484,13 @@ public Builder mergeFrom(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -538,8 +499,6 @@ public java.lang.String getGlossary() { } } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -550,14 +509,15 @@ public java.lang.String getGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -565,8 +525,6 @@ public com.google.protobuf.ByteString getGlossaryBytes() { } } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -577,22 +535,18 @@ public com.google.protobuf.ByteString getGlossaryBytes() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -603,7 +557,6 @@ public Builder setGlossary(java.lang.String value) {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -613,8 +566,6 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -625,14 +576,12 @@ public Builder clearGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -640,17 +589,14 @@ public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { return this; } - private boolean ignoreCase_; + private boolean ignoreCase_ ; /** - * - * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -658,15 +604,12 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** - * - * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -678,15 +621,12 @@ public Builder setIgnoreCase(boolean value) { return this; } /** - * - * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -695,9 +635,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -707,12 +647,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) private static final com.google.cloud.translate.v3.TranslateTextGlossaryConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(); } @@ -721,27 +661,27 @@ public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,4 +696,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java similarity index 65% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java index 20e7f1bacc22..d0ab32490d3d 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateTextGlossaryConfigOrBuilder - extends +public interface TranslateTextGlossaryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -36,13 +18,10 @@ public interface TranslateTextGlossaryConfigOrBuilder
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ java.lang.String getGlossary(); /** - * - * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -53,21 +32,18 @@ public interface TranslateTextGlossaryConfigOrBuilder
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - com.google.protobuf.ByteString getGlossaryBytes(); + com.google.protobuf.ByteString + getGlossaryBytes(); /** - * - * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java index 6efb315acac1..54bf85258daf 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java @@ -1,44 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** - * - * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ -public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextRequest) TranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateTextRequest() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -48,44 +31,41 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, - com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -93,15 +73,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_; } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -109,15 +87,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -125,7 +100,6 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -133,8 +107,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -142,28 +114,24 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -172,30 +140,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -204,12 +172,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -219,7 +184,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -228,15 +192,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -246,15 +209,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -263,19 +227,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -284,30 +244,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -316,12 +276,9 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } public static final int PARENT_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -339,10 +296,7 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -351,15 +305,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -377,18 +330,17 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -397,12 +349,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -423,7 +372,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -432,15 +380,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -461,15 +408,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -480,18 +428,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -499,76 +442,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -584,21 +511,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -618,8 +544,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -635,19 +559,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -663,11 +585,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -675,7 +597,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -687,7 +608,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -709,8 +631,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        10);
     getUnknownFields().writeTo(output);
   }
 
@@ -741,20 +667,21 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -764,25 +691,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextRequest other =
-        (com.google.cloud.translate.v3.TranslateTextRequest) obj;
-
-    if (!getContentsList().equals(other.getContentsList())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
+    com.google.cloud.translate.v3.TranslateTextRequest other = (com.google.cloud.translate.v3.TranslateTextRequest) obj;
+
+    if (!getContentsList()
+        .equals(other.getContentsList())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -822,160 +756,159 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextRequest) com.google.cloud.translate.v3.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, - com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -991,9 +924,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @java.lang.Override @@ -1012,11 +945,8 @@ public com.google.cloud.translate.v3.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.TranslateTextRequest result = - new com.google.cloud.translate.v3.TranslateTextRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.TranslateTextRequest result = new com.google.cloud.translate.v3.TranslateTextRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1043,8 +973,9 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1056,39 +987,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1096,8 +1026,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1136,7 +1065,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest othe if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1164,68 +1094,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1235,12 +1156,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1248,8 +1167,6 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1257,16 +1174,14 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { contents_.makeImmutable(); return contents_; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1274,15 +1189,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1290,7 +1202,6 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1298,8 +1209,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1307,16 +1216,14 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1324,15 +1231,13 @@ public com.google.protobuf.ByteString getContentsBytes(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContents( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1340,8 +1245,6 @@ public Builder setContents(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1349,14 +1252,12 @@ public Builder setContents(int index, java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContents( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1364,8 +1265,6 @@ public Builder addContents(java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1373,20 +1272,19 @@ public Builder addContents(java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents(java.lang.Iterable values) { + public Builder addAllContents( + java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1394,19 +1292,16 @@ public Builder addAllContents(java.lang.Iterable values) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1414,14 +1309,12 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1432,21 +1325,19 @@ public Builder addContentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1455,22 +1346,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1478,37 +1368,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1518,22 +1401,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1543,8 +1422,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1554,13 +1431,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1569,8 +1446,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1580,14 +1455,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1595,8 +1471,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1606,22 +1480,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1631,7 +1501,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1641,8 +1510,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1652,14 +1519,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1669,21 +1534,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1692,22 +1555,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1715,37 +1577,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1755,22 +1610,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1780,8 +1631,6 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1799,16 +1648,14 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1817,8 +1664,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1836,17 +1681,16 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1854,8 +1698,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1873,25 +1715,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1909,10 +1745,7 @@ public Builder setParent(java.lang.String value) {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1922,8 +1755,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1941,17 +1772,13 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1961,8 +1788,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1983,13 +1808,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1998,8 +1823,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2020,14 +1843,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2035,8 +1859,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2057,22 +1879,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2093,7 +1911,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2103,8 +1920,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2125,14 +1940,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2142,67 +1955,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2216,17 +2009,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2240,25 +2029,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2271,17 +2054,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2294,90 +2073,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2386,13 +2149,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2408,21 +2168,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2442,8 +2201,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2459,19 +2216,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2487,25 +2242,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2520,22 +2273,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2550,20 +2304,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2578,14 +2329,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2595,12 +2348,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextRequest)
   private static final com.google.cloud.translate.v3.TranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextRequest();
   }
@@ -2609,27 +2362,27 @@ public static com.google.cloud.translate.v3.TranslateTextRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2644,4 +2397,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
index 714f465ced31..ae16c8dae3d5 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextRequestOrBuilder
-    extends
+public interface TranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -33,13 +15,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - java.util.List getContentsList(); + java.util.List + getContentsList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -47,13 +27,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ int getContentsCount(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -61,14 +38,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -76,42 +50,35 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString getContentsBytes(int index); + com.google.protobuf.ByteString + getContentsBytes(int index); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -121,13 +88,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -137,41 +101,34 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -189,16 +146,11 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -216,17 +168,13 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -247,13 +195,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -274,61 +219,45 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -345,8 +274,6 @@ public interface TranslateTextRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -361,13 +288,15 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -382,10 +311,9 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -401,13 +329,11 @@ public interface TranslateTextRequestOrBuilder
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -422,5 +348,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
similarity index 79%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
index 84d6f44ae86f..9e404b27f9ce 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
@@ -1,34 +1,20 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-/** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
-public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+/**
+ * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
+ */
+public final class TranslateTextResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -36,32 +22,28 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextResponse.class,
-            com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -75,8 +57,6 @@ public java.util.List getTranslations
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -86,13 +66,11 @@ public java.util.List getTranslations
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -106,8 +84,6 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -121,8 +97,6 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
     return translations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -132,17 +106,15 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
+  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+      int index) {
     return translations_.get(index);
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -158,8 +130,6 @@ public java.util.List getGlossaryTran
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -171,13 +141,11 @@ public java.util.List getGlossaryTran
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -193,8 +161,6 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -210,8 +176,6 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
     return glossaryTranslations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -229,7 +193,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -241,7 +204,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -258,11 +222,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -272,16 +237,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextResponse other =
-        (com.google.cloud.translate.v3.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3.TranslateTextResponse other = (com.google.cloud.translate.v3.TranslateTextResponse) obj;
 
-    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList()
+        .equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList()
+        .equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -307,127 +273,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextResponse)
       com.google.cloud.translate.v3.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextResponse.class,
-              com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +416,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -471,18 +437,14 @@ public com.google.cloud.translate.v3.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextResponse result =
-          new com.google.cloud.translate.v3.TranslateTextResponse(this);
+      com.google.cloud.translate.v3.TranslateTextResponse result = new com.google.cloud.translate.v3.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.translate.v3.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.translate.v3.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -511,39 +473,38 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextResponse r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -551,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance()) return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -571,10 +531,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTranslationsFieldBuilder()
-                    : null;
+            translationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTranslationsFieldBuilder() : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -598,10 +557,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getGlossaryTranslationsFieldBuilder()
-                    : null;
+            glossaryTranslationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getGlossaryTranslationsFieldBuilder() : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -633,39 +591,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.translate.v3.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
-                if (translationsBuilder_ == null) {
-                  ensureTranslationsIsMutable();
-                  translations_.add(m);
-                } else {
-                  translationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 26:
-              {
-                com.google.cloud.translate.v3.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
-                if (glossaryTranslationsBuilder_ == null) {
-                  ensureGlossaryTranslationsIsMutable();
-                  glossaryTranslations_.add(m);
-                } else {
-                  glossaryTranslationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.translate.v3.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3.Translation.parser(),
+                      extensionRegistry);
+              if (translationsBuilder_ == null) {
+                ensureTranslationsIsMutable();
+                translations_.add(m);
+              } else {
+                translationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 26: {
+              com.google.cloud.translate.v3.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3.Translation.parser(),
+                      extensionRegistry);
+              if (glossaryTranslationsBuilder_ == null) {
+                ensureGlossaryTranslationsIsMutable();
+                glossaryTranslations_.add(m);
+              } else {
+                glossaryTranslationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -675,29 +632,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List translations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ =
-            new java.util.ArrayList(translations_);
+        translations_ = new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
-        translationsBuilder_;
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> translationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -714,8 +663,6 @@ public java.util.List getTranslations
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -732,8 +679,6 @@ public int getTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -750,8 +695,6 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -760,7 +703,8 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder setTranslations(int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder setTranslations(
+        int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -774,8 +718,6 @@ public Builder setTranslations(int index, com.google.cloud.translate.v3.Translat
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -796,8 +738,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -820,8 +760,6 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -830,7 +768,8 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder addTranslations(int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder addTranslations(
+        int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -844,8 +783,6 @@ public Builder addTranslations(int index, com.google.cloud.translate.v3.Translat
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -866,8 +803,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -888,8 +823,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -902,7 +835,8 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -910,8 +844,6 @@ public Builder addAllTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -931,8 +863,6 @@ public Builder clearTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -952,8 +882,6 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -962,12 +890,11 @@ public Builder removeTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(int index) {
+    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
+        int index) {
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -976,16 +903,14 @@ public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
+    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+        int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);
-      } else {
+        return translations_.get(index);  } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -994,8 +919,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsOrBuilderList() {
+    public java.util.List 
+         getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1003,8 +928,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1014,12 +937,10 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
     public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1028,13 +949,12 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(int index) {
-      return getTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
+        int index) {
+      return getTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1043,49 +963,38 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsBuilderList() {
+    public java.util.List 
+         getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.Translation,
-                com.google.cloud.translate.v3.Translation.Builder,
-                com.google.cloud.translate.v3.TranslationOrBuilder>(
-                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
+                translations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ =
-            new java.util.ArrayList(
-                glossaryTranslations_);
+        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
-        glossaryTranslationsBuilder_;
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> glossaryTranslationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1104,8 +1013,6 @@ public java.util.List getGlossaryTran
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1124,8 +1031,6 @@ public int getGlossaryTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1144,8 +1049,6 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1171,8 +1074,6 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1195,8 +1096,6 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1221,8 +1120,6 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3.Translation
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1248,8 +1145,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1272,8 +1167,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1296,8 +1189,6 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1312,7 +1203,8 @@ public Builder addAllGlossaryTranslations(
         java.lang.Iterable values) {
       if (glossaryTranslationsBuilder_ == null) {
         ensureGlossaryTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, glossaryTranslations_);
         onChanged();
       } else {
         glossaryTranslationsBuilder_.addAllMessages(values);
@@ -1320,8 +1212,6 @@ public Builder addAllGlossaryTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1343,8 +1233,6 @@ public Builder clearGlossaryTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1366,8 +1254,6 @@ public Builder removeGlossaryTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1383,8 +1269,6 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
       return getGlossaryTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1398,14 +1282,11 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
     public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
         int index) {
       if (glossaryTranslationsBuilder_ == null) {
-        return glossaryTranslations_.get(index);
-      } else {
+        return glossaryTranslations_.get(index);  } else {
         return glossaryTranslationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1416,8 +1297,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List
-        getGlossaryTranslationsOrBuilderList() {
+    public java.util.List 
+         getGlossaryTranslationsOrBuilderList() {
       if (glossaryTranslationsBuilder_ != null) {
         return glossaryTranslationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1425,8 +1306,6 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1438,12 +1317,10 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder() {
-      return getGlossaryTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1456,12 +1333,10 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder(
         int index) {
-      return getGlossaryTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1472,22 +1347,16 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List
-        getGlossaryTranslationsBuilderList() {
+    public java.util.List 
+         getGlossaryTranslationsBuilderList() {
       return getGlossaryTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation,
-            com.google.cloud.translate.v3.Translation.Builder,
-            com.google.cloud.translate.v3.TranslationOrBuilder>
+        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
         getGlossaryTranslationsFieldBuilder() {
       if (glossaryTranslationsBuilder_ == null) {
-        glossaryTranslationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3.Translation,
-                com.google.cloud.translate.v3.Translation.Builder,
-                com.google.cloud.translate.v3.TranslationOrBuilder>(
+        glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
                 glossaryTranslations_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1496,9 +1365,9 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
       }
       return glossaryTranslationsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1508,12 +1377,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextResponse)
   private static final com.google.cloud.translate.v3.TranslateTextResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextResponse();
   }
@@ -1522,27 +1391,27 @@ public static com.google.cloud.translate.v3.TranslateTextResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1557,4 +1426,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
index 33400af51a8f..8a9c20edf4b4 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextResponseOrBuilder
-    extends
+public interface TranslateTextResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -34,10 +16,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List getTranslationsList();
+  java.util.List 
+      getTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -48,8 +29,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3.Translation getTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -60,8 +39,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -70,11 +47,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List
+  java.util.List 
       getTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -83,11 +58,10 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -98,10 +72,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List getGlossaryTranslationsList();
+  java.util.List 
+      getGlossaryTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -114,8 +87,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3.Translation getGlossaryTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -128,8 +99,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -140,11 +109,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List
+  java.util.List 
       getGlossaryTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -155,5 +122,6 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
index d68563415ca9..d3ee335b268b 100644
--- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
+++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
- *
- *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ -public final class Translation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Translation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Translation) TranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Translation() { translatedText_ = ""; model_ = ""; @@ -45,32 +27,28 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, - com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string translated_text = 1; - * * @return The translatedText. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -103,15 +79,16 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -138,7 +112,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
    * 
* * string model = 2; - * * @return The model. */ @java.lang.Override @@ -147,15 +120,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -168,15 +140,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -185,12 +158,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -199,7 +169,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -208,15 +177,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -225,15 +193,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -244,14 +213,11 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -259,25 +225,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -285,15 +244,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -334,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -347,20 +304,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3.Translation other = - (com.google.cloud.translate.v3.Translation) obj; + com.google.cloud.translate.v3.Translation other = (com.google.cloud.translate.v3.Translation) obj; - if (!getTranslatedText().equals(other.getTranslatedText())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText() + .equals(other.getTranslatedText())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -388,136 +348,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Translation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3.Translation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Translation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Translation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Translation) com.google.cloud.translate.v3.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, - com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3.Translation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto - .internal_static_google_cloud_translation_v3_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override @@ -555,11 +511,8 @@ public com.google.cloud.translate.v3.Translation build() { @java.lang.Override public com.google.cloud.translate.v3.Translation buildPartial() { - com.google.cloud.translate.v3.Translation result = - new com.google.cloud.translate.v3.Translation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3.Translation result = new com.google.cloud.translate.v3.Translation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -576,8 +529,9 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -585,39 +539,38 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Translation) { - return mergeFrom((com.google.cloud.translate.v3.Translation) other); + return mergeFrom((com.google.cloud.translate.v3.Translation)other); } else { super.mergeFrom(other); return this; @@ -670,37 +623,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,13 +660,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object translatedText_ = ""; /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -724,13 +671,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; - * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -739,8 +686,6 @@ public java.lang.String getTranslatedText() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -748,14 +693,15 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -763,8 +709,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -772,22 +716,18 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
      * 
* * string translated_text = 1; - * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -795,7 +735,6 @@ public Builder setTranslatedText(java.lang.String value) {
      * 
* * string translated_text = 1; - * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -805,8 +744,6 @@ public Builder clearTranslatedText() { return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -814,14 +751,12 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; - * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -831,8 +766,6 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -845,13 +778,13 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 2; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -860,8 +793,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -874,14 +805,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -889,8 +821,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -903,22 +833,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -931,7 +857,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -941,8 +866,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -955,14 +878,12 @@ public Builder clearModel() {
      * 
* * string model = 2; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -972,8 +893,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -982,13 +901,13 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -997,8 +916,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1007,14 +924,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -1022,8 +940,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1032,22 +948,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 4; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1056,7 +968,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 4; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -1066,8 +977,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1076,14 +985,12 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1093,55 +1000,41 @@ public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1155,8 +1048,6 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1175,21 +1066,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1202,8 +1089,6 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1221,42 +1106,33 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
@@ -1264,24 +1140,21 @@ public Builder clearGlossaryConfig() { * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1291,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Translation) private static final com.google.cloud.translate.v3.Translation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Translation(); } @@ -1305,27 +1178,27 @@ public static com.google.cloud.translate.v3.Translation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1340,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java index e282db3326fe..c583eea67e05 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslationOrBuilder - extends +public interface TranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Translation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -33,13 +15,10 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The translatedText. */ java.lang.String getTranslatedText(); /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -47,14 +26,12 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString getTranslatedTextBytes(); + com.google.protobuf.ByteString + getTranslatedTextBytes(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -67,13 +44,10 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -86,14 +60,12 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -102,13 +74,10 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -117,38 +86,30 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java new file mode 100644 index 000000000000..ff6ad57a5288 --- /dev/null +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java @@ -0,0 +1,879 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Translation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/translate/v3/translation_" + + "service.proto\022\033google.cloud.translation." + + "v3\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032#g" + + "oogle/longrunning/operations.proto\032\037goog" + + "le/protobuf/timestamp.proto\"P\n\033Translate" + + "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" + + "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" + + "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" + + "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" + + "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" + + "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\005m" + + "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" + + "\0132=.google.cloud.translation.v3.Translat" + + "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" + + "\n\025TranslateTextResponse\022>\n\014translations\030" + + "\001 \003(\0132(.google.cloud.translation.v3.Tran" + + "slation\022G\n\025glossary_translations\030\003 \003(\0132(" + + ".google.cloud.translation.v3.Translation" + + "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" + + "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" + + "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" + + "le.cloud.translation.v3.TranslateTextGlo" + + "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" + + "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" + + "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" + + "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" + + "ation.v3.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" + + "nguages\030\001 \003(\0132-.google.cloud.translation" + + ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" + + "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" + + "locations.googleapis.com/Location\022#\n\025dis" + + "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" + + "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" + + "guages\030\001 \003(\0132..google.cloud.translation." + + "v3.SupportedLanguage\"p\n\021SupportedLanguag" + + "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" + + "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" + + "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" + + "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" + + "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" + + "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" + + "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" + + "estination\030\001 \001(\0132+.google.cloud.translat" + + "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" + + "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" + + "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" + + "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" + + "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" + + "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" + + "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" + + "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" + + "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" + + "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" + + "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" + + "\n\025document_input_config\030\004 \001(\01320.google.c" + + "loud.translation.v3.DocumentInputConfigB" + + "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." + + "google.cloud.translation.v3.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" + + "lossary_config\030\007 \001(\01328.google.cloud.tran" + + "slation.v3.TranslateTextGlossaryConfigB\004" + + "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" + + "slation.v3.TranslateDocumentRequest.Labe" + + "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" + + "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" + + "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" + + "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" + + "nse\022N\n\024document_translation\030\001 \001(\01320.goog" + + "le.cloud.translation.v3.DocumentTranslat" + + "ion\022W\n\035glossary_document_translation\030\002 \001" + + "(\01320.google.cloud.translation.v3.Documen" + + "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" + + "config\030\004 \001(\01328.google.cloud.translation." + + "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" + + "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!locations.googleapis.com/Location" + + "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" + + "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" + + "els\030\004 \003(\0132B.google.cloud.translation.v3." + + "BatchTranslateTextRequest.ModelsEntryB\004\342" + + "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" + + "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" + + "tput_config\030\006 \001(\0132).google.cloud.transla" + + "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" + + "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" + + "chTranslateTextRequest.GlossariesEntryB\004" + + "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" + + "slation.v3.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" + + "oud.translation.v3.TranslateTextGlossary" + + "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" + + "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" + + "lation.v3.BatchTranslateMetadata.State\022\035" + + "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" + + "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" + + "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" + + "atchTranslateResponse\022\030\n\020total_character" + + "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" + + "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" + + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " + + "\001(\0132&.google.cloud.translation.v3.GcsSou" + + "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" + + ".cloud.translation.v3.Glossary.LanguageC" + + "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." + + "google.cloud.translation.v3.Glossary.Lan" + + "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." + + "google.cloud.translation.v3.GlossaryInpu" + + "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" + + "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " + + "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" + + "language_code\030\001 \001(\t\022\034\n\024target_language_c" + + "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" + + "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" + + ".com/Glossary\022=projects/{project}/locati" + + "ons/{location}/glossaries/{glossary}B\013\n\t" + + "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" + + "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" + + "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + + "\372A#\n!translate.googleapis.com/Glossary\"Q" + + "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" + + "A\001\002\372A#\n!translate.googleapis.com/Glossar" + + "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " + + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + + "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" + + "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" + + "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" + + "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" + + "\030\002 \001(\01629.google.cloud.translation.v3.Cre" + + "ateGlossaryMetadata.State\022/\n\013submit_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" + + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" + + "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" + + "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" + + "le.cloud.translation.v3.DeleteGlossaryMe" + + "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" + + "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" + + "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\"\n\024so" + + "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" + + "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" + + "figs\030\004 \003(\01325.google.cloud.translation.v3" + + ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" + + "t_config\030\005 \001(\01326.google.cloud.translatio" + + "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" + + "models\030\006 \003(\0132F.google.cloud.translation." + + "v3.BatchTranslateDocumentRequest.ModelsE" + + "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." + + "cloud.translation.v3.BatchTranslateDocum" + + "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" + + "at_conversions\030\010 \003(\0132Q.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" + + "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" + + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" + + "rce\030\001 \001(\0132&.google.cloud.translation.v3." + + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" + + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" + + "ogle.cloud.translation.v3.GcsDestination" + + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" + + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" + + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" + + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" + + "_characters\030\005 \001(\003\022\035\n\025translated_characte" + + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" + + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" + + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" + + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" + + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" + + "on.v3.BatchTranslateDocumentMetadata.Sta" + + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" + + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" + + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" + + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" + + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" + + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" + + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" + + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" + + "TranslateText\0221.google.cloud.translation" + + ".v3.TranslateTextRequest\0322.google.cloud." + + "translation.v3.TranslateTextResponse\"\333\001\332" + + "A$parent,target_language_code,contents\332A" + + "Iparent,model,mime_type,source_language_" + + "code,target_language_code,contents\202\323\344\223\002b" + + "\"1/v3/{parent=projects/*/locations/*}:tr" + + "anslateText:\001*Z*\"%/v3/{parent=projects/*" + + "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." + + "google.cloud.translation.v3.DetectLangua" + + "geRequest\0323.google.cloud.translation.v3." + + "DetectLanguageResponse\"\213\001\332A\036parent,model" + + ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" + + "ojects/*/locations/*}:detectLanguage:\001*Z" + + "+\"&/v3/{parent=projects/*}:detectLanguag" + + "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." + + "cloud.translation.v3.GetSupportedLanguag" + + "esRequest\032/.google.cloud.translation.v3." + + "SupportedLanguages\"\221\001\332A\"parent,model,dis" + + "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z,\022*/v3/{parent=projects/*}/supportedLan" + + "guages\022\304\001\n\021TranslateDocument\0225.google.cl" + + "oud.translation.v3.TranslateDocumentRequ" + + "est\0326.google.cloud.translation.v3.Transl" + + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" + + "=projects/*/locations/*}:translateDocume" + + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" + + "oud.translation.v3.BatchTranslateTextReq" + + "uest\032\035.google.longrunning.Operation\"t\312A0" + + "\n\026BatchTranslateResponse\022\026BatchTranslate" + + "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" + + "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" + + "tchTranslateDocument\022:.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" + + "atchTranslateDocumentResponse\022\036BatchTran" + + "slateDocumentMetadata\332AMparent,source_la" + + "nguage_code,target_language_codes,input_" + + "configs,output_config\202\323\344\223\002?\":/v3/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" + + "loud.translation.v3.CreateGlossaryReques" + + "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" + + "lossary\022\026CreateGlossaryMetadata\332A\017parent" + + ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" + + "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" + + "stGlossaries\0222.google.cloud.translation." + + "v3.ListGlossariesRequest\0323.google.cloud." + + "translation.v3.ListGlossariesResponse\"?\332" + + "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" + + "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" + + ".google.cloud.translation.v3.GetGlossary" + + "Request\032%.google.cloud.translation.v3.Gl" + + "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" + + "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" + + "Glossary\0222.google.cloud.translation.v3.D" + + "eleteGlossaryRequest\032\035.google.longrunnin" + + "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" + + "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" + + "v3/{name=projects/*/locations/*/glossari" + + "es/*}\032~\312A\030translate.googleapis.com\322A`htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-translationB\321\001\n\035com.google.cloud.trans" + + "late.v3B\027TranslationServiceProtoP\001Z;clou" + + "d.google.com/go/translate/apiv3/translat" + + "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" + + "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" + + "gle::Cloud::Translate::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { "Glossary", "IgnoreCase", }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, + new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, + new java.lang.String[] { "Translations", "GlossaryTranslations", }); + internal_static_google_cloud_translation_v3_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Translation_descriptor, + new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, + new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); + internal_static_google_cloud_translation_v3_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsSource_descriptor, + new java.lang.String[] { "InputUri", }); + internal_static_google_cloud_translation_v3_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_InputConfig_descriptor, + new java.lang.String[] { "MimeType", "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsDestination_descriptor, + new java.lang.String[] { "OutputUriPrefix", }); + internal_static_google_cloud_translation_v3_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, + new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", "CustomizedAttribution", "IsTranslateNativePdfOnly", "EnableShadowRemovalNativePdf", }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, + new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, + new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, + new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, + new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_descriptor, + new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "DisplayName", "Languages", }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { "LanguageCodes", }); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, + new java.lang.String[] { "Parent", "Glossary", }); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, + new java.lang.String[] { "Glossaries", "NextPageToken", }); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", "CustomizedAttribution", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto similarity index 99% rename from java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto rename to owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto index 475fd2ee7941..0eb34aa3ddb4 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto +++ b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto @@ -561,10 +561,10 @@ message OutputConfig { // If input file extension is a txt or html, the translation is directly // written to the output file. If glossary is requested, a separate // glossary_translations_file has format of - // gs://translation_test/a_b_c_'trg'_glossary_translations.[extension] + // `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]` // // The format of errors file (for target language code 'trg') is: - // gs://translation_test/a_b_c_'trg'_errors.[extension] + // `gs://translation_test/a_b_c_'trg'_errors.[extension]` // // If the input file extension is tsv, errors_file contains the following: // Column 1: ID of the request provided in the input, if it's not @@ -576,7 +576,7 @@ message OutputConfig { // // If the input file extension is txt or html, glossary_error_file will be // generated that contains error details. glossary_error_file has format of - // gs://translation_test/a_b_c_'trg'_glossary_errors.[extension] + // `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]` GcsDestination gcs_destination = 1; } } diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java new file mode 100644 index 000000000000..44ac257f47c2 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -0,0 +1,1790 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStub; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides natural language translation operations. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   TranslateTextRequest request =
+ *       TranslateTextRequest.newBuilder()
+ *           .addAllContents(new ArrayList())
+ *           .setMimeType("mimeType-1392120434")
+ *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+ *           .setTargetLanguageCode("targetLanguageCode-106414698")
+ *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ *           .setModel("model104069929")
+ *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+ *           .putAllLabels(new HashMap())
+ *           .build();
+ *   TranslateTextResponse response = translationServiceClient.translateText(request);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TranslationServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings translationServiceSettings =
+ *     TranslationServiceSettings.newHttpJsonBuilder().build();
+ * TranslationServiceClient translationServiceClient =
+ *     TranslationServiceClient.create(translationServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceClient implements BackgroundResource { + private final TranslationServiceSettings settings; + private final TranslationServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of TranslationServiceClient with default settings. */ + public static final TranslationServiceClient create() throws IOException { + return create(TranslationServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TranslationServiceClient create(TranslationServiceSettings settings) + throws IOException { + return new TranslationServiceClient(settings); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(TranslationServiceSettings). + */ + public static final TranslationServiceClient create(TranslationServiceStub stub) { + return new TranslationServiceClient(stub); + } + + /** + * Constructs an instance of TranslationServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected TranslationServiceClient(TranslationServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final TranslationServiceSettings getSettings() { + return settings; + } + + public TranslationServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateTextResponse response = translationServiceClient.translateText(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateTextResponse translateText(TranslateTextRequest request) { + return translateTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates input text and returns translated text. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateTextRequest request =
+   *       TranslateTextRequest.newBuilder()
+   *           .addAllContents(new ArrayList())
+   *           .setMimeType("mimeType-1392120434")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateTextCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateTextResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable translateTextCallable() { + return stub.translateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage( + LocationName parent, String model, String mimeType) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setMimeType(mimeType) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String model = "model104069929";
+   *   String mimeType = "mimeType-1392120434";
+   *   DetectLanguageResponse response =
+   *       translationServiceClient.detectLanguage(parent, model, mimeType);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}/locations/{location-id}` or + * `projects/{project-number-or-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Only models within the same region (has same location-id) can be used. Otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param model Optional. The language detection model to be used. + *

Format: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` + *

Only one language detection model is currently supported: + * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. + *

If not specified, the default model is used. + * @param mimeType Optional. The format of the source text, for example, "text/html", + * "text/plain". If left blank, the MIME type defaults to "text/html". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(String parent, String model, String mimeType) { + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setMimeType(mimeType) + .build(); + return detectLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { + return detectLanguageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detects the language of text within a request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DetectLanguageRequest request =
+   *       DetectLanguageRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setModel("model104069929")
+   *           .setMimeType("mimeType-1392120434")
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.detectLanguageCallable().futureCall(request);
+   *   // Do something.
+   *   DetectLanguageResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + detectLanguageCallable() { + return stub.detectLanguageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   String model = "model104069929";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + LocationName parent, String displayLanguageCode, String model) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayLanguageCode(displayLanguageCode) + .setModel(model) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String displayLanguageCode = "displayLanguageCode-1457478841";
+   *   String model = "model104069929";
+   *   SupportedLanguages response =
+   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
+   * }
+   * }
+ * + * @param parent Required. Project or location to make a call. Must refer to a caller's project. + *

Format: `projects/{project-number-or-id}` or + * `projects/{project-number-or-id}/locations/{location-id}`. + *

For global calls, use `projects/{project-number-or-id}/locations/global` or + * `projects/{project-number-or-id}`. + *

Non-global location is required for AutoML models. + *

Only models within the same region (have same location-id) can be used, otherwise an + * INVALID_ARGUMENT (400) error is returned. + * @param displayLanguageCode Optional. The language to use to return localized, human readable + * names of supported languages. If missing, then display names are not returned in a + * response. + * @param model Optional. Get supported languages of this model. + *

The format depends on model type: + *

- AutoML Translation models: + * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` + *

- General (built-in) models: + * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, + *

Returns languages supported by the specified model. If missing, we get supported + * languages of Google general NMT model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages( + String parent, String displayLanguageCode, String model) { + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent) + .setDisplayLanguageCode(displayLanguageCode) + .setModel(model) + .build(); + return getSupportedLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { + return getSupportedLanguagesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of supported languages for translation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetSupportedLanguagesRequest request =
+   *       GetSupportedLanguagesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
+   *           .setModel("model104069929")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
+   *   // Do something.
+   *   SupportedLanguages response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSupportedLanguagesCallable() { + return stub.getSupportedLanguagesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { + return translateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates documents in synchronous mode. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   TranslateDocumentRequest request =
+   *       TranslateDocumentRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .setTargetLanguageCode("targetLanguageCode-106414698")
+   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
+   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
+   *           .setModel("model104069929")
+   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.translateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   TranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + translateDocumentCallable() { + return stub.translateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   BatchTranslateResponse response =
+   *       translationServiceClient.batchTranslateTextAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateTextAsync(BatchTranslateTextRequest request) { + return batchTranslateTextOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return stub.batchTranslateTextOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of text in asynchronous batch mode. This function provides real-time + * output as the inputs are being processed. If caller cancels a request, the partial results (for + * an input file, it's all or nothing) may still be available on the specified output location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateTextRequest request =
+   *       BatchTranslateTextRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .putAllModels(new HashMap())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(OutputConfig.newBuilder().build())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable batchTranslateTextCallable() { + return stub.batchTranslateTextCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + LocationName parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
+   *   List targetLanguageCodes = new ArrayList<>();
+   *   List inputConfigs = new ArrayList<>();
+   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient
+   *           .batchTranslateDocumentAsync(
+   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Location to make a regional call. + *

Format: `projects/{project-number-or-id}/locations/{location-id}`. + *

The `global` location is not supported for batch translation. + *

Only AutoML Translation models or glossaries within the same region (have the same + * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. + * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, + * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language + * Support](https://cloud.google.com/translate/docs/languages). + * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the + * input document. Specify up to 10 language codes here. + * @param inputConfigs Required. Input configurations. The total number of files matched should be + * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The + * files must use UTF-8 encoding. + * @param outputConfig Required. Output configuration. If 2 input configs match to the same file + * (that is, same input path), we don't generate output for duplicate inputs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync( + String parent, + String sourceLanguageCode, + List targetLanguageCodes, + List inputConfigs, + BatchDocumentOutputConfig outputConfig) { + BatchTranslateDocumentRequest request = + BatchTranslateDocumentRequest.newBuilder() + .setParent(parent) + .setSourceLanguageCode(sourceLanguageCode) + .addAllTargetLanguageCodes(targetLanguageCodes) + .addAllInputConfigs(inputConfigs) + .setOutputConfig(outputConfig) + .build(); + return batchTranslateDocumentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   BatchTranslateDocumentResponse response =
+   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { + return batchTranslateDocumentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchTranslateDocumentResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return stub.batchTranslateDocumentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Translates a large volume of documents in asynchronous batch mode. This function provides + * real-time output as the inputs are being processed. If caller cancels a request, the partial + * results (for an input file, it's all or nothing) may still be available on the specified output + * location. + * + *

This call returns immediately and you can use google.longrunning.Operation.name to poll the + * status of the call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   BatchTranslateDocumentRequest request =
+   *       BatchTranslateDocumentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+   *           .addAllTargetLanguageCodes(new ArrayList())
+   *           .addAllInputConfigs(new ArrayList())
+   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
+   *           .putAllModels(new HashMap())
+   *           .putAllGlossaries(new HashMap())
+   *           .putAllFormatConversions(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchTranslateDocumentCallable() { + return stub.batchTranslateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + LocationName parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGlossary(glossary) + .build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Glossary glossary = Glossary.newBuilder().build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
+   * }
+   * }
+ * + * @param parent Required. The project name. + * @param glossary Required. The glossary to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + String parent, Glossary glossary) { + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); + return createGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createGlossaryAsync( + CreateGlossaryRequest request) { + return createGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createGlossaryOperationCallable() { + return stub.createGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project + * doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   CreateGlossaryRequest request =
+   *       CreateGlossaryRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setGlossary(Glossary.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.createGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createGlossaryCallable() { + return stub.createGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String filter = "filter-1274492040";
+   *   for (Glossary element :
+   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @param filter Optional. Filter specifying constraints of a list operation. Specify the + * constraint by the format of "key=value", where key must be "src" or "tgt", and the value + * must be a valid language code. For multiple restrictions, concatenate them by "AND" + * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used + * here, which means using 'en-US' and 'en' can lead to different results, which depends on + * the language code you used when you create the glossary. For the unidirectional glossaries, + * the "src" and "tgt" add restrictions on the source and target language code separately. For + * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term + * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries + * which exactly match the source language code as "en-US" and the target language code + * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their + * language set will be picked. If missing, no filtering is performed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(LocationName parent, String filter) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String filter = "filter-1274492040";
+   *   for (Glossary element :
+   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the project from which to list all of the glossaries. + * @param filter Optional. Filter specifying constraints of a list operation. Specify the + * constraint by the format of "key=value", where key must be "src" or "tgt", and the value + * must be a valid language code. For multiple restrictions, concatenate them by "AND" + * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used + * here, which means using 'en-US' and 'en' can lead to different results, which depends on + * the language code you used when you create the glossary. For the unidirectional glossaries, + * the "src" and "tgt" add restrictions on the source and target language code separately. For + * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term + * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries + * which exactly match the source language code as "en-US" and the target language code + * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their + * language set will be picked. If missing, no filtering is performed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) { + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return listGlossaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { + return listGlossariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Glossary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesPagedCallable() { + return stub.listGlossariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   ListGlossariesRequest request =
+   *       ListGlossariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListGlossariesResponse response =
+   *         translationServiceClient.listGlossariesCallable().call(request);
+   *     for (Glossary element : response.getGlossariesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGlossariesCallable() { + return stub.listGlossariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GlossaryName name) { + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   Glossary response = translationServiceClient.getGlossary(name);
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(String name) { + GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); + return getGlossary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   Glossary response = translationServiceClient.getGlossary(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Glossary getGlossary(GetGlossaryRequest request) { + return getGlossaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GetGlossaryRequest request =
+   *       GetGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.getGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Glossary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getGlossaryCallable() { + return stub.getGlossaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + GlossaryName name) { + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the glossary to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + String name) { + DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); + return deleteGlossaryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGlossaryAsync( + DeleteGlossaryRequest request) { + return deleteGlossaryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeleteGlossaryResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable() { + return stub.deleteGlossaryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns + * NOT_FOUND, if the glossary doesn't exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+   *   DeleteGlossaryRequest request =
+   *       DeleteGlossaryRequest.newBuilder()
+   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteGlossaryCallable() { + return stub.deleteGlossaryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListGlossariesPagedResponse + extends AbstractPagedListResponse< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGlossariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGlossariesPagedResponse(ListGlossariesPage page) { + super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGlossariesPage + extends AbstractPage< + ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { + + private ListGlossariesPage( + PageContext context, + ListGlossariesResponse response) { + super(context, response); + } + + private static ListGlossariesPage createEmptyPage() { + return new ListGlossariesPage(null, null); + } + + @Override + protected ListGlossariesPage createPage( + PageContext context, + ListGlossariesResponse response) { + return new ListGlossariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGlossariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGlossariesRequest, + ListGlossariesResponse, + Glossary, + ListGlossariesPage, + ListGlossariesFixedSizeCollection> { + + private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGlossariesFixedSizeCollection createEmptyCollection() { + return new ListGlossariesFixedSizeCollection(null, 0); + } + + @Override + protected ListGlossariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGlossariesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java new file mode 100644 index 000000000000..33915307ad62 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java @@ -0,0 +1,376 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateTextOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()) + .batchTranslateDocumentOperationSettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); + } + + public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) + throws IOException { + return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TranslationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TranslationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TranslationServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TranslationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TranslationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TranslationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TranslationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TranslationServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); + } + + public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TranslationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return getStubSettingsBuilder().translateTextSettings(); + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return getStubSettingsBuilder().detectLanguageSettings(); + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getStubSettingsBuilder().getSupportedLanguagesSettings(); + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return getStubSettingsBuilder().translateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return getStubSettingsBuilder().batchTranslateTextSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return getStubSettingsBuilder().batchTranslateTextOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return getStubSettingsBuilder().batchTranslateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return getStubSettingsBuilder().createGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return getStubSettingsBuilder().createGlossaryOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return getStubSettingsBuilder().listGlossariesSettings(); + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getStubSettingsBuilder().getGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return getStubSettingsBuilder().deleteGlossarySettings(); + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return getStubSettingsBuilder().deleteGlossaryOperationSettings(); + } + + @Override + public TranslationServiceSettings build() throws IOException { + return new TranslationServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json new file mode 100644 index 000000000000..5cf5bb9020d7 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json @@ -0,0 +1,48 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.translation.v3beta1", + "libraryPackage": "com.google.cloud.translate.v3beta1", + "services": { + "TranslationService": { + "clients": { + "grpc": { + "libraryClient": "TranslationServiceClient", + "rpcs": { + "BatchTranslateDocument": { + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + }, + "BatchTranslateText": { + "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] + }, + "CreateGlossary": { + "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] + }, + "DeleteGlossary": { + "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] + }, + "DetectLanguage": { + "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] + }, + "GetGlossary": { + "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] + }, + "GetSupportedLanguages": { + "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] + }, + "ListGlossaries": { + "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] + }, + "TranslateDocument": { + "methods": ["translateDocument", "translateDocumentCallable"] + }, + "TranslateText": { + "methods": ["translateText", "translateTextCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java new file mode 100644 index 000000000000..46b58825f0fb --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Translation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TranslationServiceClient ======================= + * + *

Service Description: Provides natural language translation operations. + * + *

Sample for TranslationServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
+ *   TranslateTextRequest request =
+ *       TranslateTextRequest.newBuilder()
+ *           .addAllContents(new ArrayList())
+ *           .setMimeType("mimeType-1392120434")
+ *           .setSourceLanguageCode("sourceLanguageCode1645917472")
+ *           .setTargetLanguageCode("targetLanguageCode-106414698")
+ *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ *           .setModel("model104069929")
+ *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
+ *           .putAllLabels(new HashMap())
+ *           .build();
+ *   TranslateTextResponse response = translationServiceClient.translateText(request);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.translate.v3beta1; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..f623f52746f8 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java new file mode 100644 index 000000000000..d77b266c740e --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java @@ -0,0 +1,556 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTranslationServiceStub extends TranslationServiceStub { + private static final MethodDescriptor + translateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + detectLanguageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") + .setRequestMarshaller( + ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getSupportedLanguagesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + translateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchTranslateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGlossariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") + .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGlossaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTranslationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTranslationServiceStub( + TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings translateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + detectLanguageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getSupportedLanguagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + translateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings batchTranslateTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchTranslateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGlossariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteGlossaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + operationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + operationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + operationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java new file mode 100644 index 000000000000..0e01b94ccf16 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TranslationService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTranslationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java new file mode 100644 index 000000000000..df047db06e10 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java @@ -0,0 +1,916 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTranslationServiceStub extends TranslationServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(BatchTranslateDocumentResponse.getDescriptor()) + .add(Glossary.getDescriptor()) + .add(DeleteGlossaryMetadata.getDescriptor()) + .add(CreateGlossaryMetadata.getDescriptor()) + .add(BatchTranslateMetadata.getDescriptor()) + .add(BatchTranslateDocumentMetadata.getDescriptor()) + .add(DeleteGlossaryResponse.getDescriptor()) + .add(BatchTranslateResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + translateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:translateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3beta1/{parent=projects/*}:translateText") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + detectLanguageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:detectLanguage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3beta1/{parent=projects/*}:detectLanguage") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSupportedLanguagesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}/supportedLanguages", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v3beta1/{parent=projects/*}/supportedLanguages") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "displayLanguageCode", request.getDisplayLanguageCode()); + serializer.putQueryParam(fields, "model", request.getModel()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SupportedLanguages.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + translateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:translateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchTranslateTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:batchTranslateText", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateTextRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + batchTranslateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:batchTranslateDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchTranslateDocumentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("glossary", request.getGlossary(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listGlossariesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}/glossaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Glossary.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteGlossaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{name=projects/*/locations/*/glossaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteGlossaryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable translateTextCallable; + private final UnaryCallable detectLanguageCallable; + private final UnaryCallable + getSupportedLanguagesCallable; + private final UnaryCallable + translateDocumentCallable; + private final UnaryCallable batchTranslateTextCallable; + private final OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable; + private final UnaryCallable + batchTranslateDocumentCallable; + private final OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable; + private final UnaryCallable createGlossaryCallable; + private final OperationCallable + createGlossaryOperationCallable; + private final UnaryCallable listGlossariesCallable; + private final UnaryCallable + listGlossariesPagedCallable; + private final UnaryCallable getGlossaryCallable; + private final UnaryCallable deleteGlossaryCallable; + private final OperationCallable< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) + throws IOException { + return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTranslationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTranslationServiceStub( + TranslationServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTranslationServiceStub( + TranslationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v3beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v3beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v3beta1/{name=projects/*/locations/*}/operations") + .build()) + .put( + "google.longrunning.Operations.WaitOperation", + HttpRule.newBuilder() + .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:wait") + .build()) + .build()); + + HttpJsonCallSettings + translateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + detectLanguageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(detectLanguageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getSupportedLanguagesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + translateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(translateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings batchTranslateTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchTranslateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGlossariesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGlossariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteGlossaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteGlossaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.translateTextCallable = + callableFactory.createUnaryCallable( + translateTextTransportSettings, settings.translateTextSettings(), clientContext); + this.detectLanguageCallable = + callableFactory.createUnaryCallable( + detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); + this.getSupportedLanguagesCallable = + callableFactory.createUnaryCallable( + getSupportedLanguagesTransportSettings, + settings.getSupportedLanguagesSettings(), + clientContext); + this.translateDocumentCallable = + callableFactory.createUnaryCallable( + translateDocumentTransportSettings, + settings.translateDocumentSettings(), + clientContext); + this.batchTranslateTextCallable = + callableFactory.createUnaryCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextSettings(), + clientContext); + this.batchTranslateTextOperationCallable = + callableFactory.createOperationCallable( + batchTranslateTextTransportSettings, + settings.batchTranslateTextOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.batchTranslateDocumentCallable = + callableFactory.createUnaryCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentSettings(), + clientContext); + this.batchTranslateDocumentOperationCallable = + callableFactory.createOperationCallable( + batchTranslateDocumentTransportSettings, + settings.batchTranslateDocumentOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createGlossaryCallable = + callableFactory.createUnaryCallable( + createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); + this.createGlossaryOperationCallable = + callableFactory.createOperationCallable( + createGlossaryTransportSettings, + settings.createGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listGlossariesCallable = + callableFactory.createUnaryCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.listGlossariesPagedCallable = + callableFactory.createPagedCallable( + listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); + this.getGlossaryCallable = + callableFactory.createUnaryCallable( + getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); + this.deleteGlossaryCallable = + callableFactory.createUnaryCallable( + deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); + this.deleteGlossaryOperationCallable = + callableFactory.createOperationCallable( + deleteGlossaryTransportSettings, + settings.deleteGlossaryOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(translateTextMethodDescriptor); + methodDescriptors.add(detectLanguageMethodDescriptor); + methodDescriptors.add(getSupportedLanguagesMethodDescriptor); + methodDescriptors.add(translateDocumentMethodDescriptor); + methodDescriptors.add(batchTranslateTextMethodDescriptor); + methodDescriptors.add(batchTranslateDocumentMethodDescriptor); + methodDescriptors.add(createGlossaryMethodDescriptor); + methodDescriptors.add(listGlossariesMethodDescriptor); + methodDescriptors.add(getGlossaryMethodDescriptor); + methodDescriptors.add(deleteGlossaryMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable translateTextCallable() { + return translateTextCallable; + } + + @Override + public UnaryCallable detectLanguageCallable() { + return detectLanguageCallable; + } + + @Override + public UnaryCallable + getSupportedLanguagesCallable() { + return getSupportedLanguagesCallable; + } + + @Override + public UnaryCallable + translateDocumentCallable() { + return translateDocumentCallable; + } + + @Override + public UnaryCallable batchTranslateTextCallable() { + return batchTranslateTextCallable; + } + + @Override + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + return batchTranslateTextOperationCallable; + } + + @Override + public UnaryCallable batchTranslateDocumentCallable() { + return batchTranslateDocumentCallable; + } + + @Override + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + return batchTranslateDocumentOperationCallable; + } + + @Override + public UnaryCallable createGlossaryCallable() { + return createGlossaryCallable; + } + + @Override + public OperationCallable + createGlossaryOperationCallable() { + return createGlossaryOperationCallable; + } + + @Override + public UnaryCallable listGlossariesCallable() { + return listGlossariesCallable; + } + + @Override + public UnaryCallable + listGlossariesPagedCallable() { + return listGlossariesPagedCallable; + } + + @Override + public UnaryCallable getGlossaryCallable() { + return getGlossaryCallable; + } + + @Override + public UnaryCallable deleteGlossaryCallable() { + return deleteGlossaryCallable; + } + + @Override + public OperationCallable + deleteGlossaryOperationCallable() { + return deleteGlossaryOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java new file mode 100644 index 000000000000..7c8a11caf086 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java @@ -0,0 +1,145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TranslationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class TranslationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable translateTextCallable() { + throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); + } + + public UnaryCallable detectLanguageCallable() { + throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); + } + + public UnaryCallable + getSupportedLanguagesCallable() { + throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); + } + + public UnaryCallable + translateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); + } + + public OperationCallable< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateTextOperationCallable()"); + } + + public UnaryCallable batchTranslateTextCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); + } + + public OperationCallable< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchTranslateDocumentOperationCallable()"); + } + + public UnaryCallable batchTranslateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); + } + + public OperationCallable + createGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); + } + + public UnaryCallable createGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); + } + + public UnaryCallable + listGlossariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); + } + + public UnaryCallable listGlossariesCallable() { + throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); + } + + public UnaryCallable getGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); + } + + public OperationCallable + deleteGlossaryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); + } + + public UnaryCallable deleteGlossaryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java new file mode 100644 index 000000000000..8db1ff5aae6d --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java @@ -0,0 +1,869 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.stub; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; +import com.google.cloud.translate.v3beta1.BatchTranslateResponse; +import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; +import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; +import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; +import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; +import com.google.cloud.translate.v3beta1.DetectLanguageRequest; +import com.google.cloud.translate.v3beta1.DetectLanguageResponse; +import com.google.cloud.translate.v3beta1.GetGlossaryRequest; +import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3beta1.Glossary; +import com.google.cloud.translate.v3beta1.ListGlossariesRequest; +import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.SupportedLanguages; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslateTextRequest; +import com.google.cloud.translate.v3beta1.TranslateTextResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TranslationServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (translate.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of translateText to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
+ *     TranslationServiceStubSettings.newBuilder();
+ * translationServiceSettingsBuilder
+ *     .translateTextSettings()
+ *     .setRetrySettings(
+ *         translationServiceSettingsBuilder
+ *             .translateTextSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TranslationServiceStubSettings translationServiceSettings =
+ *     translationServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TranslationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-translation") + .build(); + + private final UnaryCallSettings + translateTextSettings; + private final UnaryCallSettings + detectLanguageSettings; + private final UnaryCallSettings + getSupportedLanguagesSettings; + private final UnaryCallSettings + translateDocumentSettings; + private final UnaryCallSettings batchTranslateTextSettings; + private final OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings + batchTranslateDocumentSettings; + private final OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings createGlossarySettings; + private final OperationCallSettings + createGlossaryOperationSettings; + private final PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings getGlossarySettings; + private final UnaryCallSettings deleteGlossarySettings; + private final OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + + private static final PagedListDescriptor + LIST_GLOSSARIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { + return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGlossariesRequest injectPageSize( + ListGlossariesRequest payload, int pageSize) { + return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGlossariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGlossariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGlossariesResponse payload) { + return payload.getGlossariesList() == null + ? ImmutableList.of() + : payload.getGlossariesList(); + } + }; + + private static final PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + LIST_GLOSSARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGlossariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); + return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to translateText. */ + public UnaryCallSettings translateTextSettings() { + return translateTextSettings; + } + + /** Returns the object with the settings used for calls to detectLanguage. */ + public UnaryCallSettings detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the object with the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the object with the settings used for calls to translateDocument. */ + public UnaryCallSettings + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public UnaryCallSettings batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateText. */ + public OperationCallSettings< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the object with the settings used for calls to batchTranslateDocument. */ + public OperationCallSettings< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public UnaryCallSettings createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the object with the settings used for calls to createGlossary. */ + public OperationCallSettings + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the object with the settings used for calls to listGlossaries. */ + public PagedCallSettings< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the object with the settings used for calls to getGlossary. */ + public UnaryCallSettings getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public UnaryCallSettings deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the object with the settings used for calls to deleteGlossary. */ + public OperationCallSettings< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + public TranslationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTranslationServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTranslationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "translate.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "translate.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + translateTextSettings = settingsBuilder.translateTextSettings().build(); + detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); + getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); + translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); + batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); + batchTranslateTextOperationSettings = + settingsBuilder.batchTranslateTextOperationSettings().build(); + batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); + batchTranslateDocumentOperationSettings = + settingsBuilder.batchTranslateDocumentOperationSettings().build(); + createGlossarySettings = settingsBuilder.createGlossarySettings().build(); + createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); + listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); + getGlossarySettings = settingsBuilder.getGlossarySettings().build(); + deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); + deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); + } + + /** Builder for TranslationServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + translateTextSettings; + private final UnaryCallSettings.Builder + detectLanguageSettings; + private final UnaryCallSettings.Builder + getSupportedLanguagesSettings; + private final UnaryCallSettings.Builder + translateDocumentSettings; + private final UnaryCallSettings.Builder + batchTranslateTextSettings; + private final OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings; + private final UnaryCallSettings.Builder + batchTranslateDocumentSettings; + private final OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings; + private final UnaryCallSettings.Builder + createGlossarySettings; + private final OperationCallSettings.Builder< + CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> + createGlossaryOperationSettings; + private final PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings; + private final UnaryCallSettings.Builder getGlossarySettings; + private final UnaryCallSettings.Builder + deleteGlossarySettings; + private final OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); + batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); + createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGlossaryOperationSettings = OperationCallSettings.newBuilder(); + listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); + getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + initDefaults(this); + } + + protected Builder(TranslationServiceStubSettings settings) { + super(settings); + + translateTextSettings = settings.translateTextSettings.toBuilder(); + detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); + getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); + translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); + batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); + batchTranslateTextOperationSettings = + settings.batchTranslateTextOperationSettings.toBuilder(); + batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); + batchTranslateDocumentOperationSettings = + settings.batchTranslateDocumentOperationSettings.toBuilder(); + createGlossarySettings = settings.createGlossarySettings.toBuilder(); + createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); + listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); + getGlossarySettings = settings.getGlossarySettings.toBuilder(); + deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); + deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + translateTextSettings, + detectLanguageSettings, + getSupportedLanguagesSettings, + translateDocumentSettings, + batchTranslateTextSettings, + batchTranslateDocumentSettings, + createGlossarySettings, + listGlossariesSettings, + getGlossarySettings, + deleteGlossarySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .translateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .detectLanguageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getSupportedLanguagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .translateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .batchTranslateTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .batchTranslateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listGlossariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteGlossarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .batchTranslateTextOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .batchTranslateDocumentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchTranslateDocumentResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchTranslateDocumentMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteGlossaryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to translateText. */ + public UnaryCallSettings.Builder + translateTextSettings() { + return translateTextSettings; + } + + /** Returns the builder for the settings used for calls to detectLanguage. */ + public UnaryCallSettings.Builder + detectLanguageSettings() { + return detectLanguageSettings; + } + + /** Returns the builder for the settings used for calls to getSupportedLanguages. */ + public UnaryCallSettings.Builder + getSupportedLanguagesSettings() { + return getSupportedLanguagesSettings; + } + + /** Returns the builder for the settings used for calls to translateDocument. */ + public UnaryCallSettings.Builder + translateDocumentSettings() { + return translateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + public UnaryCallSettings.Builder + batchTranslateTextSettings() { + return batchTranslateTextSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateText. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> + batchTranslateTextOperationSettings() { + return batchTranslateTextOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + public UnaryCallSettings.Builder + batchTranslateDocumentSettings() { + return batchTranslateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to batchTranslateDocument. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BatchTranslateDocumentRequest, + BatchTranslateDocumentResponse, + BatchTranslateDocumentMetadata> + batchTranslateDocumentOperationSettings() { + return batchTranslateDocumentOperationSettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + public UnaryCallSettings.Builder createGlossarySettings() { + return createGlossarySettings; + } + + /** Returns the builder for the settings used for calls to createGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createGlossaryOperationSettings() { + return createGlossaryOperationSettings; + } + + /** Returns the builder for the settings used for calls to listGlossaries. */ + public PagedCallSettings.Builder< + ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> + listGlossariesSettings() { + return listGlossariesSettings; + } + + /** Returns the builder for the settings used for calls to getGlossary. */ + public UnaryCallSettings.Builder getGlossarySettings() { + return getGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + public UnaryCallSettings.Builder deleteGlossarySettings() { + return deleteGlossarySettings; + } + + /** Returns the builder for the settings used for calls to deleteGlossary. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> + deleteGlossaryOperationSettings() { + return deleteGlossaryOperationSettings; + } + + @Override + public TranslationServiceStubSettings build() throws IOException { + return new TranslationServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json new file mode 100644 index 000000000000..d3385a0a400e --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json @@ -0,0 +1,1946 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DetectedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentTranslation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.DocumentTranslation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.InputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.InputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.OutputConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.OutputConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguages", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.SupportedLanguages$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Translation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.Translation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java new file mode 100644 index 000000000000..6a2b27a48654 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationService implements MockGrpcService { + private final MockTranslationServiceImpl serviceImpl; + + public MockTranslationService() { + serviceImpl = new MockTranslationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java new file mode 100644 index 000000000000..fa60bcd84b2f --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java @@ -0,0 +1,271 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.translate.v3beta1.TranslationServiceGrpc.TranslationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTranslationServiceImpl extends TranslationServiceImplBase { + private List requests; + private Queue responses; + + public MockTranslationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void translateText( + TranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateTextResponse) { + requests.add(request); + responseObserver.onNext(((TranslateTextResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateTextResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void detectLanguage( + DetectLanguageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DetectLanguageResponse) { + requests.add(request); + responseObserver.onNext(((DetectLanguageResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DetectLanguage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DetectLanguageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSupportedLanguages( + GetSupportedLanguagesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SupportedLanguages) { + requests.add(request); + responseObserver.onNext(((SupportedLanguages) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SupportedLanguages.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void translateDocument( + TranslateDocumentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TranslateDocumentResponse) { + requests.add(request); + responseObserver.onNext(((TranslateDocumentResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TranslateDocumentResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateText( + BatchTranslateTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchTranslateDocument( + BatchTranslateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGlossary( + CreateGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGlossaries( + ListGlossariesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGlossariesResponse) { + requests.add(request); + responseObserver.onNext(((ListGlossariesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGlossaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGlossariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Glossary) { + requests.add(request); + responseObserver.onNext(((Glossary) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Glossary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGlossary( + DeleteGlossaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..833b24cd2ee2 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java @@ -0,0 +1,1036 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.translate.v3beta1.stub.HttpJsonTranslationServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTranslationServiceStub.getMethodDescriptors(), + TranslationServiceSettings.getDefaultEndpoint()); + TranslationServiceSettings settings = + TranslationServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateTextResponse actualResponse = client.translateText(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateText(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("projects/project-5833/locations/location-5833") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java new file mode 100644 index 000000000000..49f53b41e820 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1; + +import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TranslationServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTranslationService mockTranslationService; + private LocalChannelProvider channelProvider; + private TranslationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTranslationService = new MockTranslationService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TranslationServiceSettings settings = + TranslationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TranslationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void translateTextTest() throws Exception { + TranslateTextResponse expectedResponse = + TranslateTextResponse.newBuilder() + .addAllTranslations(new ArrayList()) + .addAllGlossaryTranslations(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateTextResponse actualResponse = client.translateText(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList()); + Assert.assertEquals(request.getMimeType(), actualRequest.getMimeType()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .addAllContents(new ArrayList()) + .setMimeType("mimeType-1392120434") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateText(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detectLanguageTest2() throws Exception { + DetectLanguageResponse expectedResponse = + DetectLanguageResponse.newBuilder() + .addAllLanguages(new ArrayList()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + + DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(mimeType, actualRequest.getMimeType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void detectLanguageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String model = "model104069929"; + String mimeType = "mimeType-1392120434"; + client.detectLanguage(parent, model, mimeType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSupportedLanguagesTest2() throws Exception { + SupportedLanguages expectedResponse = + SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + + SupportedLanguages actualResponse = + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSupportedLanguagesRequest actualRequest = + ((GetSupportedLanguagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSupportedLanguagesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String displayLanguageCode = "displayLanguageCode-1457478841"; + String model = "model104069929"; + client.getSupportedLanguages(parent, displayLanguageCode, model); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void translateDocumentTest() throws Exception { + TranslateDocumentResponse expectedResponse = + TranslateDocumentResponse.newBuilder() + .setDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + + TranslateDocumentResponse actualResponse = client.translateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); + Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); + Assert.assertEquals(request.getModel(), actualRequest.getModel()); + Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void translateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent("parent-995424086") + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) + .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) + .setModel("model104069929") + .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + client.translateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchTranslateTextTest() throws Exception { + BatchTranslateResponse expectedResponse = + BatchTranslateResponse.newBuilder() + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateTextTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + + BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals( + request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); + Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); + Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); + Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); + Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .addAllTargetLanguageCodes(new ArrayList()) + .putAllModels(new HashMap()) + .addAllInputConfigs(new ArrayList()) + .setOutputConfig(OutputConfig.newBuilder().build()) + .putAllGlossaries(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + client.batchTranslateTextAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchTranslateDocumentTest2() throws Exception { + BatchTranslateDocumentResponse expectedResponse = + BatchTranslateDocumentResponse.newBuilder() + .setTotalPages(-396186871) + .setTranslatedPages(-1652747493) + .setFailedPages(-2002254526) + .setTotalBillablePages(1292117569) + .setTotalCharacters(-1368640955) + .setTranslatedCharacters(-1337326221) + .setFailedCharacters(1723028396) + .setTotalBillableCharacters(1242495501) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchTranslateDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + + BatchTranslateDocumentResponse actualResponse = + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchTranslateDocumentRequest actualRequest = + ((BatchTranslateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); + Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); + Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); + Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchTranslateDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String sourceLanguageCode = "sourceLanguageCode1645917472"; + List targetLanguageCodes = new ArrayList<>(); + List inputConfigs = new ArrayList<>(); + BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + + Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(glossary, actualRequest.getGlossary()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + Glossary glossary = Glossary.newBuilder().build(); + client.createGlossaryAsync(parent, glossary).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGlossariesTest() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGlossariesTest2() throws Exception { + Glossary responsesElement = Glossary.newBuilder().build(); + ListGlossariesResponse expectedResponse = + ListGlossariesResponse.newBuilder() + .setNextPageToken("") + .addAllGlossaries(Arrays.asList(responsesElement)) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + + ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGlossariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + client.listGlossaries(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGlossaryTest2() throws Exception { + Glossary expectedResponse = + Glossary.newBuilder() + .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) + .setInputConfig(GlossaryInputConfig.newBuilder().build()) + .setEntryCount(-811131134) + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockTranslationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Glossary actualResponse = client.getGlossary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.getGlossary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGlossaryTest() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGlossaryTest2() throws Exception { + DeleteGlossaryResponse expectedResponse = + DeleteGlossaryResponse.newBuilder() + .setName("name3373707") + .setSubmitTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGlossaryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTranslationService.addResponse(resultOperation); + + String name = "name3373707"; + + DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGlossaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGlossaryAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java index bf8e7906ee95..90086bd0466e 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -37,134 +20,113 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.ListLocationsRequest,
-          com.google.cloud.location.ListLocationsResponse>
-      getListLocationsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.ListLocationsRequest,
-            com.google.cloud.location.ListLocationsResponse>
-        getListLocationsMethod;
+  public static io.grpc.MethodDescriptor getListLocationsMethod() {
+    io.grpc.MethodDescriptor getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod =
-              getListLocationsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-                      .build();
+          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+              .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-      getGetLocationMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
-        getGetLocationMethod;
+  public static io.grpc.MethodDescriptor getGetLocationMethod() {
+    io.grpc.MethodDescriptor getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod =
-              getGetLocationMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.location.Location.getDefaultInstance()))
-                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-                      .build();
+          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.location.Location.getDefaultInstance()))
+              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+              .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsStub(channel, callOptions);
+        }
+      };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsBlockingStub(channel, callOptions);
+        }
+      };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static LocationsFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public LocationsFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new LocationsFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new LocationsFutureStub(channel, callOptions);
+        }
+      };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -174,108 +136,88 @@ public LocationsFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); + default void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - default void getLocation( - com.google.cloud.location.GetLocationRequest request, + default void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class LocationsImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub + extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** - * - * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listLocations(com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, + public void getLocation(com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -284,7 +226,8 @@ public void getLocation(
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -295,27 +238,21 @@ protected LocationsBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -323,7 +260,6 @@ public com.google.cloud.location.Location getLocation( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. - * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -332,38 +268,35 @@ public com.google.cloud.location.Location getLocation(
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -372,11 +305,11 @@ protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_LOCATIONS = 0; private static final int METHODID_GET_LOCATION = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -390,14 +323,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -419,24 +349,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>( + service, METHODID_GET_LOCATION))) .build(); } - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -478,13 +408,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java new file mode 100644 index 000000000000..c48a6cfe3d9c --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java @@ -0,0 +1,1157 @@ +package com.google.cloud.translate.v3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateTextMethod() { + io.grpc.MethodDescriptor getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetectLanguageMethod() { + io.grpc.MethodDescriptor getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { + io.grpc.MethodDescriptor getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { + io.grpc.MethodDescriptor getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListGlossariesMethod() { + io.grpc.MethodDescriptor getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3beta1.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetGlossaryMethod() { + io.grpc.MethodDescriptor getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TranslationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static abstract class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.Glossary getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText((com.google.cloud.translate.v3beta1.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage((com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries((com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary((com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary>( + service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private static abstract class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java similarity index 77% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java index 76528b7c481e..9b454d2bb90c 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentInputConfig() {} + private BatchDocumentInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -133,7 +107,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -141,8 +114,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -166,19 +137,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -206,13 +174,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,7 +191,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -238,9 +206,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -250,18 +217,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other =
-        (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -291,136 +258,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -455,11 +417,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = - new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -469,11 +428,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentInput int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -482,39 +441,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -522,18 +480,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -561,19 +516,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,12 +538,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -601,13 +556,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -631,7 +581,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -639,8 +588,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -664,7 +611,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -682,8 +628,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -722,8 +666,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -760,8 +702,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -788,13 +728,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -810,8 +747,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -853,8 +788,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -883,8 +816,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -921,8 +852,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -948,19 +877,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -970,9 +894,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -982,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3beta1.BatchDocumentInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig();
   }
@@ -996,27 +920,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1031,4 +955,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
index 2f203da680ed..3406b688b235 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentInputConfigOrBuilder
-    extends
+public interface BatchDocumentInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -49,13 +31,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +58,10 @@ public interface BatchDocumentInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
similarity index 84%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
index cab80a6095d9..514d7133b009 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
@@ -1,78 +1,56 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentOutputConfig() {} + private BatchDocumentOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -159,7 +133,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -167,8 +140,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -218,19 +189,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -284,13 +252,12 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -302,7 +269,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -316,9 +284,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -328,18 +295,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other =
-        (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -369,136 +336,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -512,14 +474,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance(); } @@ -534,26 +495,22 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = - new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -562,39 +519,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -602,19 +558,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other) { - if (other - == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -642,19 +594,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -664,12 +616,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -682,13 +634,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -738,7 +685,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -746,8 +692,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -797,7 +741,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -815,8 +758,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -881,8 +822,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -945,8 +884,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -999,14 +936,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_
-                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -1022,8 +955,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1091,8 +1022,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1147,8 +1076,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1211,8 +1138,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1264,19 +1189,14 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination,
-            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsDestination,
-                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1286,9 +1206,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       onChanged();
       return gcsDestinationBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1298,13 +1218,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
-  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig();
   }
@@ -1313,27 +1232,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchDocumentOutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchDocumentOutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1348,4 +1267,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
similarity index 92%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
index 4efe695d3514..7f63ba313509 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentOutputConfigOrBuilder
-    extends
+public interface BatchDocumentOutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -75,13 +57,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -131,13 +110,10 @@ public interface BatchDocumentOutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
index 8bf67fed5ae8..7f495e9b0317 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
@@ -1,81 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -84,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -94,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -104,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +123,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -170,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The batch is done and no item was successfully processed.
      * 
@@ -180,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -203,6 +158,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,57 +183,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -297,52 +248,38 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -353,15 +290,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -372,15 +306,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -391,15 +322,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -410,14 +338,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -428,15 +353,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -447,15 +369,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -466,15 +385,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -485,14 +401,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -500,14 +413,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ @java.lang.Override @@ -515,8 +425,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -529,7 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -541,10 +448,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -583,37 +489,45 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -623,26 +537,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() != other.getTotalPages()) return false; - if (getTranslatedPages() != other.getTranslatedPages()) return false; - if (getFailedPages() != other.getFailedPages()) return false; - if (getTotalBillablePages() != other.getTotalBillablePages()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (getTotalPages() + != other.getTotalPages()) return false; + if (getTranslatedPages() + != other.getTranslatedPages()) return false; + if (getFailedPages() + != other.getFailedPages()) return false; + if (getTotalBillablePages() + != other.getTotalBillablePages()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() + != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -658,21 +580,29 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -683,138 +613,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } - // Construct using - // com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() - private Builder() {} + // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -837,14 +760,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -859,17 +781,13 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = - new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -899,7 +817,9 @@ private void buildPartial0( result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -907,50 +827,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { + if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1007,73 +923,64 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1083,36 +990,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1123,40 +1020,28 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { + public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1166,15 +1051,11 @@ public Builder setState( return this; } /** - * - * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * - * + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; * @return This builder for chaining. */ public Builder clearState() { @@ -1184,17 +1065,14 @@ public Builder clearState() { return this; } - private long totalPages_; + private long totalPages_ ; /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return The totalPages. */ @java.lang.Override @@ -1202,15 +1080,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1222,15 +1097,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1240,17 +1112,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ @java.lang.Override @@ -1258,15 +1127,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1278,15 +1144,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1296,17 +1159,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ @java.lang.Override @@ -1314,15 +1174,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1334,15 +1191,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1352,17 +1206,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1370,15 +1221,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1390,15 +1238,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1408,16 +1253,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ @java.lang.Override @@ -1425,14 +1267,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1444,14 +1283,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1461,17 +1297,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1479,15 +1312,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1499,15 +1329,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1517,17 +1344,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ @java.lang.Override @@ -1535,15 +1359,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1555,15 +1376,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1573,17 +1391,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1591,15 +1406,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1611,15 +1423,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1631,47 +1440,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1692,15 +1488,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1711,8 +1506,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1721,9 +1514,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1736,8 +1529,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1755,8 +1546,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1769,8 +1558,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1781,14 +1568,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1796,24 +1580,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1823,43 +1604,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1871,8 +1650,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java index ee61a8cc79bf..d6562ae29804 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,191 +1,137 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentMetadataOrBuilder - extends +public interface BatchTranslateDocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState(); /** - * - * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java index 995377d556f9..1376e05c8509 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java @@ -1,63 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -66,27 +51,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -99,10 +79,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -111,15 +88,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -132,18 +108,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -152,12 +127,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -165,7 +137,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -174,15 +145,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -190,15 +160,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -207,53 +178,41 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -261,30 +220,24 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List inputConfigs_; /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -292,18 +245,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -311,19 +259,14 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,17 +274,13 @@ public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -349,17 +288,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -367,31 +302,24 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder - getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( + int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -399,76 +327,60 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -490,21 +402,20 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -530,8 +441,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -553,19 +462,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -587,11 +494,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -599,126 +506,94 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
-
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        defaultEntry =
+        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.translate.v3beta1.TranslationServiceProto
-                            .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-      glossaries_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-      internalGetGlossaries() {
+      java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
+  private com.google.protobuf.MapField
+  internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
-
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -726,36 +601,32 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; - private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -769,26 +640,23 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -802,17 +670,13 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -826,24 +690,20 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -857,16 +717,14 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -874,7 +732,6 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -886,7 +743,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -902,11 +760,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModels(), + ModelsDefaultEntryHolder.defaultEntry, + 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetGlossaries(), + GlossariesDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -935,43 +802,42 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry : - internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry models__ = - ModelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - entry : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - GlossariesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry : - internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry formatConversions__ = - FormatConversionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry + : internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry + models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, models__); + } + for (java.util.Map.Entry entry + : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry + glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry + : internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry + formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, formatConversions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -981,25 +847,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = - (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList() + .equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList() + .equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals(other.internalGetModels())) return false; - if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals( + other.internalGetModels())) return false; + if (!internalGetGlossaries().equals( + other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals( + other.internalGetFormatConversions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1045,121 +918,116 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetModels(); @@ -1168,12 +1036,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 8: return internalGetFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1182,34 +1051,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1229,14 +1100,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance(); } @@ -1251,18 +1121,14 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = - new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1274,8 +1140,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1288,8 +1153,9 @@ private void buildPartial0( result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1309,50 +1175,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { + if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1391,10 +1253,9 @@ public Builder mergeFrom( inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1403,11 +1264,14 @@ public Builder mergeFrom( if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom( + other.internalGetFormatConversions()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1435,92 +1299,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry - formatConversions__ = - input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFormatConversions() - .getMutableMap() - .put(formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + formatConversions__ = input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFormatConversions().getMutableMap().put( + formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1530,13 +1377,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1549,16 +1393,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1567,8 +1409,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1581,17 +1421,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1599,8 +1438,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1613,25 +1450,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1644,10 +1475,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1657,8 +1485,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1671,17 +1497,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1691,8 +1513,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1700,13 +1520,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1715,8 +1535,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1724,14 +1542,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1739,8 +1558,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1748,22 +1565,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1771,7 +1584,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1781,8 +1593,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1790,14 +1600,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1807,7 +1615,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1815,49 +1622,38 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1865,41 +1661,33 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1907,23 +1695,18 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1931,64 +1714,53 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1997,27 +1769,19 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) return this; } - private java.util.List - inputConfigs_ = java.util.Collections.emptyList(); - + private java.util.List inputConfigs_ = + java.util.Collections.emptyList(); private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = - new java.util.ArrayList( - inputConfigs_); + inputConfigs_ = new java.util.ArrayList(inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> - inputConfigsBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2025,12 +1789,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsList() { + public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -2038,8 +1799,6 @@ private void ensureInputConfigsIsMutable() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2047,9 +1806,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2059,8 +1816,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2068,9 +1823,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2080,8 +1833,6 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2089,9 +1840,7 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -2108,8 +1857,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2117,13 +1864,10 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( - int index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.set(index, builderForValue.build()); @@ -2134,8 +1878,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2143,12 +1885,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addInputConfigs( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { + public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2162,8 +1901,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2171,9 +1908,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -2190,8 +1925,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2199,9 +1932,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { @@ -2215,8 +1946,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2224,13 +1953,10 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( - int index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.add(index, builderForValue.build()); @@ -2241,8 +1967,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2250,16 +1974,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2267,8 +1989,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2276,9 +1996,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2291,8 +2009,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2300,9 +2016,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2315,8 +2029,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2324,17 +2036,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - getInputConfigsBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder getInputConfigsBuilder( + int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2342,21 +2050,16 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder - getInputConfigsOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( + int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2364,13 +2067,10 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2378,8 +2078,6 @@ public Builder removeInputConfigs(int index) { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2387,19 +2085,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2407,20 +2099,14 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder - addInputConfigsBuilder(int index) { - return getInputConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder( + int index) { + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2428,27 +2114,22 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2456,67 +2137,47 @@ public Builder removeInputConfigs(int index) { private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOutputConfig( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder setOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2530,17 +2191,13 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2554,26 +2211,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2586,17 +2236,13 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2609,90 +2255,74 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder - getOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2701,13 +2331,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2729,21 +2356,20 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2769,8 +2395,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2792,19 +2416,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2826,25 +2448,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2865,22 +2485,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2901,20 +2522,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2935,18 +2553,17 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        glossaries_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
+    private com.google.protobuf.MapField
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -2954,13 +2571,11 @@ public Builder putAllModels(java.util.Map va
       }
       return glossaries_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+    private com.google.protobuf.MapField
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ =
-            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ = com.google.protobuf.MapField.newMapField(
+            GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2969,181 +2584,140 @@ public Builder putAllModels(java.util.Map va
       onChanged();
       return glossaries_;
     }
-
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField formatConversions_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> formatConversions_; private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -3152,13 +2726,11 @@ public Builder putAllGlossaries( } return formatConversions_; } - private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = - com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -3167,13 +2739,10 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } - public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3187,26 +2756,23 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetFormatConversions().getMap().containsKey(key); } - /** Use {@link #getFormatConversionsMap()} instead. */ + /** + * Use {@link #getFormatConversionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3220,17 +2786,13 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3244,25 +2806,20 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getFormatConversionsOrDefault( + public /* nullable */ +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3276,15 +2833,12 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getFormatConversionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -3292,15 +2846,13 @@ public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap().clear(); + internalGetMutableFormatConversions().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3314,26 +2866,25 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeFormatConversions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFormatConversions().getMutableMap().remove(key); + public Builder removeFormatConversions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFormatConversions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableFormatConversions() { + public java.util.Map + getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3347,24 +2898,19 @@ public java.util.Map getMutableFormatConvers
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putFormatConversions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFormatConversions().getMutableMap().put(key, value); + public Builder putFormatConversions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableFormatConversions().getMutableMap() + .put(key, value); bitField0_ |= 0x00000080; return this; } /** - * - * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3378,19 +2924,18 @@ public Builder putFormatConversions(java.lang.String key, java.lang.String value
      * original file.
      * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap().putAll(values); + internalGetMutableFormatConversions().getMutableMap() + .putAll(values); bitField0_ |= 0x00000080; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3400,43 +2945,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3448,8 +2991,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java index 417f5d3bcc93..fb24daa5c499 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentRequestOrBuilder - extends +public interface BatchTranslateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -60,17 +37,13 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -78,13 +51,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -92,73 +62,57 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,14 +120,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -181,14 +132,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -196,14 +143,10 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -211,15 +154,11 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -227,63 +166,45 @@ public interface BatchTranslateDocumentRequestOrBuilder
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -306,8 +227,6 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -328,13 +247,15 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -355,10 +276,9 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -380,13 +300,11 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -407,82 +325,64 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -496,14 +396,10 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getFormatConversionsCount(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -517,17 +413,17 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsFormatConversions( + java.lang.String key); + /** + * Use {@link #getFormatConversionsMap()} instead. */ - boolean containsFormatConversions(java.lang.String key); - /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map getFormatConversions(); + java.util.Map + getFormatConversions(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -541,14 +437,11 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getFormatConversionsMap(); + java.util.Map + getFormatConversionsMap(); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -562,18 +455,14 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getFormatConversionsOrDefault( +java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -587,9 +476,8 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getFormatConversionsOrThrow(java.lang.String key); + java.lang.String getFormatConversionsOrThrow( + java.lang.String key); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java index 5719acca8c95..195df291224e 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,52 +13,47 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateDocumentResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateDocumentResponse() {}
+  private BatchTranslateDocumentResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -86,15 +64,12 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -105,15 +80,12 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -124,15 +96,12 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -143,14 +112,11 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -161,15 +127,12 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -180,15 +143,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -199,15 +159,12 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -218,14 +175,11 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -233,14 +187,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ @java.lang.Override @@ -248,8 +199,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -264,8 +213,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -273,7 +220,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -281,8 +227,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -290,7 +234,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ @java.lang.Override @@ -298,8 +241,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -314,7 +255,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -326,7 +266,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -367,34 +308,44 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -404,29 +355,38 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages() != other.getTotalPages()) return false;
-    if (getTranslatedPages() != other.getTranslatedPages()) return false;
-    if (getFailedPages() != other.getFailedPages()) return false;
-    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages()
+        != other.getTotalPages()) return false;
+    if (getTranslatedPages()
+        != other.getTranslatedPages()) return false;
+    if (getFailedPages()
+        != other.getFailedPages()) return false;
+    if (getTotalBillablePages()
+        != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters()
+        != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -440,21 +400,29 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -469,105 +437,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -577,33 +538,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -630,14 +591,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -652,17 +612,13 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse build()
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result =
-          new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -689,10 +645,14 @@ private void buildPartial0(
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -700,50 +660,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
-      if (other
-          == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -800,73 +756,66 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalPages_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedPages_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedPages_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                totalBillablePages_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 48:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 64:
-              {
-                totalBillableCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalPages_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedPages_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedPages_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              totalBillablePages_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 48: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 64: {
+              totalBillableCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -876,20 +825,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalPages_;
+    private long totalPages_ ;
     /**
-     *
-     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return The totalPages. */ @java.lang.Override @@ -897,15 +842,12 @@ public long getTotalPages() { return totalPages_; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -917,15 +859,12 @@ public Builder setTotalPages(long value) { return this; } /** - * - * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; - * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -935,17 +874,14 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_; + private long translatedPages_ ; /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ @java.lang.Override @@ -953,15 +889,12 @@ public long getTranslatedPages() { return translatedPages_; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -973,15 +906,12 @@ public Builder setTranslatedPages(long value) { return this; } /** - * - * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -991,17 +921,14 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_; + private long failedPages_ ; /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ @java.lang.Override @@ -1009,15 +936,12 @@ public long getFailedPages() { return failedPages_; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1029,15 +953,12 @@ public Builder setFailedPages(long value) { return this; } /** - * - * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; - * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1047,17 +968,14 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_; + private long totalBillablePages_ ; /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ @java.lang.Override @@ -1065,15 +983,12 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1085,15 +1000,12 @@ public Builder setTotalBillablePages(long value) { return this; } /** - * - * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; - * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1103,16 +1015,13 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ @java.lang.Override @@ -1120,14 +1029,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1139,14 +1045,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1156,17 +1059,14 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ @java.lang.Override @@ -1174,15 +1074,12 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1194,15 +1091,12 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1212,17 +1106,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ @java.lang.Override @@ -1230,15 +1121,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1250,15 +1138,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1268,17 +1153,14 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_; + private long totalBillableCharacters_ ; /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1286,15 +1168,12 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1306,15 +1185,12 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** - * - * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; - * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1326,47 +1202,34 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1387,15 +1250,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1406,8 +1268,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1416,9 +1276,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1431,8 +1291,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1450,8 +1308,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1464,8 +1320,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1476,14 +1330,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1491,17 +1342,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1509,13 +1357,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1523,15 +1366,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1539,7 +1379,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1550,8 +1389,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1574,8 +1411,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1584,7 +1419,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1595,8 +1431,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1607,9 +1441,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1622,8 +1456,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1643,8 +1475,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1659,8 +1489,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1673,12 +1501,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1688,24 +1515,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1715,43 +1539,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse();
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      getDefaultInstance() {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateDocumentResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateDocumentResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1763,8 +1585,9 @@ public com.google.protobuf.Parser getParserForTy
   }
 
   @java.lang.Override
-  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
index 4806876f2ba6..48ae35448d03 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,166 +1,118 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateDocumentResponseOrBuilder
-    extends
+public interface BatchTranslateDocumentResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; - * * @return The totalPages. */ long getTotalPages(); /** - * - * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; - * * @return The translatedPages. */ long getTranslatedPages(); /** - * - * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; - * * @return The failedPages. */ long getFailedPages(); /** - * - * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; - * * @return The totalBillablePages. */ long getTotalBillablePages(); /** - * - * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; - * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -170,8 +122,6 @@ public interface BatchTranslateDocumentResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -179,13 +129,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -193,13 +140,10 @@ public interface BatchTranslateDocumentResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 10; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
index 5288b093f430..66d3a6f7dc36 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
@@ -1,80 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } /** - * - * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -83,8 +61,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -93,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -104,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCEEDED(2),
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -114,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -125,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -171,8 +133,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -181,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -192,8 +150,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -204,6 +160,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -228,57 +185,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return RUNNING;
-        case 2:
-          return SUCCEEDED;
-        case 3:
-          return FAILED;
-        case 4:
-          return CANCELLING;
-        case 5:
-          return CANCELLED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return RUNNING;
+        case 2: return SUCCEEDED;
+        case 3: return FAILED;
+        case 4: return CANCELLING;
+        case 5: return CANCELLED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -298,51 +250,37 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -353,15 +291,12 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -372,8 +307,6 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -381,7 +314,6 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -392,14 +324,11 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -407,14 +336,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ @java.lang.Override @@ -422,8 +348,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -436,7 +360,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,10 +371,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -475,22 +397,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -500,21 +425,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = - (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() != other.getFailedCharacters()) return false; - if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() + != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() + != other.getFailedCharacters()) return false; + if (getTotalCharacters() + != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -530,11 +458,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -545,136 +476,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.cloud.translate.v3beta1.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -692,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -713,11 +639,8 @@ public com.google.cloud.translate.v3beta1.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = - new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -737,7 +660,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } } @@ -745,39 +670,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata)other); } else { super.mergeFrom(other); return this; @@ -785,8 +709,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -828,43 +751,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -874,34 +793,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -912,33 +823,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -952,14 +854,11 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateMetadat return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -969,16 +868,13 @@ public Builder clearState() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -986,14 +882,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1005,14 +898,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1022,17 +912,14 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -1040,15 +927,12 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1060,15 +944,12 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1078,10 +959,8 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_; + private long totalCharacters_ ; /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1089,7 +968,6 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ @java.lang.Override @@ -1097,8 +975,6 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1106,7 +982,6 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1118,8 +993,6 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1127,7 +1000,6 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1139,47 +1011,34 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1200,15 +1059,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1219,8 +1077,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1229,9 +1085,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1244,8 +1100,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1263,8 +1117,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1277,8 +1129,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1289,14 +1139,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -1304,24 +1151,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1331,12 +1175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) private static final com.google.cloud.translate.v3beta1.BatchTranslateMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(); } @@ -1345,27 +1189,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1380,4 +1224,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java index 2911ae114fc0..24288b893c13 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java @@ -1,83 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateMetadataOrBuilder - extends +public interface BatchTranslateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; - * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState(); /** - * - * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -85,38 +55,29 @@ public interface BatchTranslateMetadataOrBuilder
    * 
* * int64 total_characters = 4; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java index f779d3c1d97e..eb2e9d32ebce 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -30,50 +13,46 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchTranslateResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchTranslateResponse() {}
+  private BatchTranslateResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -84,14 +63,11 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -102,14 +78,11 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -120,14 +93,11 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -135,14 +105,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ @java.lang.Override @@ -150,8 +117,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -166,8 +131,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,7 +138,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -183,8 +145,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -192,7 +152,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -200,8 +159,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -216,7 +173,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -228,7 +184,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -254,19 +211,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -276,24 +238,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateResponse other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3beta1.BatchTranslateResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters() != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalCharacters()
+        != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters()
+        != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters()
+        != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -307,11 +273,14 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -326,104 +295,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -433,32 +396,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.BatchTranslateResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -501,11 +465,8 @@ public com.google.cloud.translate.v3beta1.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateResponse result =
-          new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -522,10 +483,14 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -533,39 +498,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -573,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance()) return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -616,43 +579,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                totalCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                translatedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                failedCharacters_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              totalCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              translatedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              failedCharacters_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -662,19 +623,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long totalCharacters_;
+    private long totalCharacters_ ;
     /**
-     *
-     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ @java.lang.Override @@ -682,14 +639,11 @@ public long getTotalCharacters() { return totalCharacters_; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -701,14 +655,11 @@ public Builder setTotalCharacters(long value) { return this; } /** - * - * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; - * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -718,16 +669,13 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_; + private long translatedCharacters_ ; /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ @java.lang.Override @@ -735,14 +683,11 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -754,14 +699,11 @@ public Builder setTranslatedCharacters(long value) { return this; } /** - * - * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; - * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -771,16 +713,13 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_; + private long failedCharacters_ ; /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ @java.lang.Override @@ -788,14 +727,11 @@ public long getFailedCharacters() { return failedCharacters_; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -807,14 +743,11 @@ public Builder setFailedCharacters(long value) { return this; } /** - * - * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; - * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -826,47 +759,34 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -887,15 +807,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -906,8 +825,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -916,9 +833,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -931,8 +848,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -950,8 +865,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -964,8 +877,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -976,14 +887,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Time when the operation was submitted.
      * 
@@ -991,17 +899,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1009,13 +914,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1023,15 +923,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1039,7 +936,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1050,8 +946,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1074,8 +968,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1084,7 +976,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1095,8 +988,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1107,9 +998,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1122,8 +1013,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1143,8 +1032,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1159,8 +1046,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1173,12 +1058,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1188,24 +1072,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1215,12 +1096,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3beta1.BatchTranslateResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateResponse();
   }
@@ -1229,27 +1110,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1264,4 +1145,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
index 33739b257319..3c63f05430e4 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
@@ -1,94 +1,61 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateResponseOrBuilder
-    extends
+public interface BatchTranslateResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; - * * @return The totalCharacters. */ long getTotalCharacters(); /** - * - * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; - * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** - * - * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; - * * @return The failedCharacters. */ long getFailedCharacters(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Time when the operation was submitted.
    * 
@@ -98,8 +65,6 @@ public interface BatchTranslateResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +72,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -121,13 +83,10 @@ public interface BatchTranslateResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
similarity index 65%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
index 8cedb8afe7cd..c952917b2f13 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
@@ -1,63 +1,48 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchTranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -66,27 +51,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -99,10 +79,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -111,15 +88,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -132,18 +108,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -152,18 +127,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -172,29 +143,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -203,50 +174,38 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { return targetLanguageCodes_; } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -254,51 +213,46 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; - private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -320,21 +274,20 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsModels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetModels().getMap().containsKey(key);
   }
-  /** Use {@link #getModelsMap()} instead. */
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -360,8 +313,6 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -383,19 +334,17 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getModelsOrDefault(
+  public /* nullable */
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -417,11 +366,11 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -429,12 +378,9 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -442,17 +388,13 @@ public java.lang.String getModelsOrThrow(java.lang.String key) {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -460,18 +402,14 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -479,17 +417,13 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -497,17 +431,13 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -515,9 +445,7 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( @@ -528,18 +456,13 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -547,171 +470,126 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; - private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - defaultEntry = + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -719,34 +597,32 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -761,21 +637,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -794,8 +669,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -810,19 +683,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -837,11 +708,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -849,7 +720,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -861,7 +731,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -871,18 +742,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetModels(),
+        ModelsDefaultEntryHolder.defaultEntry,
+        4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetGlossaries(),
+        GlossariesDefaultEntryHolder.defaultEntry,
+        7);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        9);
     getUnknownFields().writeTo(output);
   }
 
@@ -906,44 +789,43 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry :
-        internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry models__ =
-          ModelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry
+         : internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry<
-            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-        entry : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
-          glossaries__ =
-              GlossariesDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -953,25 +835,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other =
-        (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
-
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(other.internalGetModels())) return false;
-    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
+
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList()
+        .equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(
+        other.internalGetModels())) return false;
+    if (!getInputConfigsList()
+        .equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig()
+          .equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(
+        other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1017,121 +906,116 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) com.google.cloud.translate.v3beta1.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModels(); @@ -1140,12 +1024,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1154,34 +1039,36 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1201,14 +1088,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance(); } @@ -1223,18 +1109,14 @@ public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = - new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1246,8 +1128,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1264,8 +1145,9 @@ private void buildPartial0( result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1281,39 +1163,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1321,9 +1202,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other) { - if (other - == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1344,7 +1223,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe } onChanged(); } - internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableModels().mergeFrom( + other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1364,10 +1244,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputConfigsFieldBuilder() - : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputConfigsFieldBuilder() : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1376,9 +1255,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom( + other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1406,90 +1287,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry models__ = - input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModels() - .getMutableMap() - .put(models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.translate.v3beta1.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries__ = - input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableGlossaries() - .getMutableMap() - .put(glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + models__ = input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModels().getMutableMap().put( + models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.cloud.translate.v3beta1.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.InputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + glossaries__ = input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableGlossaries().getMutableMap().put( + glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1499,13 +1365,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1518,16 +1381,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1536,8 +1397,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1550,17 +1409,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1568,8 +1426,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1582,25 +1438,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1613,10 +1463,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1626,8 +1473,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1640,17 +1485,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1660,20 +1501,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1682,21 +1521,20 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1704,35 +1542,28 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1742,21 +1573,17 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1766,7 +1593,6 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1774,46 +1600,35 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1821,39 +1636,31 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1861,22 +1668,17 @@ public Builder setTargetLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1884,61 +1686,50 @@ public Builder addTargetLanguageCodes(java.lang.String value) { return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes( + java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTargetLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1947,19 +1738,21 @@ public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.MapField models_; - - private com.google.protobuf.MapField internalGetModels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> models_; + private com.google.protobuf.MapField + internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ModelsDefaultEntryHolder.defaultEntry); } return models_; } - private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField( + ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1968,13 +1761,10 @@ private com.google.protobuf.MapField interna onChanged(); return models_; } - public int getModelsCount() { return internalGetModels().getMap().size(); } /** - * - * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1996,21 +1786,20 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetModels().getMap().containsKey(key);
     }
-    /** Use {@link #getModelsMap()} instead. */
+    /**
+     * Use {@link #getModelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2036,8 +1825,6 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2059,19 +1846,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getModelsOrDefault(
+    public /* nullable */
+java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2093,25 +1878,23 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap().clear();
+      internalGetMutableModels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2132,22 +1915,23 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableModels().getMutableMap().remove(key);
+    public Builder removeModels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableModels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableModels() {
+    public java.util.Map
+        getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2168,20 +1952,17 @@ public java.util.Map getMutableModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableModels().getMutableMap().put(key, value);
+    public Builder putModels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableModels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -2202,32 +1983,27 @@ public Builder putModels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(java.util.Map values) {
-      internalGetMutableModels().getMutableMap().putAll(values);
+    public Builder putAllModels(
+        java.util.Map values) {
+      internalGetMutableModels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ =
-            new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.InputConfig,
-            com.google.cloud.translate.v3beta1.InputConfig.Builder,
-            com.google.cloud.translate.v3beta1.InputConfigOrBuilder>
-        inputConfigsBuilder_;
+        com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> inputConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2235,9 +2011,7 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2247,8 +2021,6 @@ public java.util.List getInputCo } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2256,9 +2028,7 @@ public java.util.List getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2268,8 +2038,6 @@ public int getInputConfigsCount() { } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2277,9 +2045,7 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2289,8 +2055,6 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2298,9 +2062,7 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2317,8 +2079,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2326,9 +2086,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2342,8 +2100,6 @@ public Builder setInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2351,9 +2107,7 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2369,8 +2123,6 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2378,9 +2130,7 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2397,8 +2147,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2406,9 +2154,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2422,8 +2168,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2431,9 +2175,7 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2447,8 +2189,6 @@ public Builder addInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2456,15 +2196,14 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2472,8 +2211,6 @@ public Builder addAllInputConfigs( return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2481,9 +2218,7 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2496,8 +2231,6 @@ public Builder clearInputConfigs() { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2505,9 +2238,7 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2520,8 +2251,6 @@ public Builder removeInputConfigs(int index) { return this; } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2529,17 +2258,13 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2547,21 +2272,16 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); - } else { + return inputConfigs_.get(index); } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2569,12 +2289,10 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2582,8 +2300,6 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr } } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2591,17 +2307,13 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2609,18 +2321,14 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2628,27 +2336,22 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, - com.google.cloud.translate.v3beta1.InputConfig.Builder, - com.google.cloud.translate.v3beta1.InputConfigOrBuilder> + com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, - com.google.cloud.translate.v3beta1.InputConfig.Builder, - com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( - inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( + inputConfigs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2656,64 +2359,45 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2729,17 +2413,13 @@ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig v return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.OutputConfig.Builder builderForValue) { @@ -2753,24 +2433,19 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2783,17 +2458,13 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2806,17 +2477,13 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2824,63 +2491,48 @@ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBu return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, - com.google.cloud.translate.v3beta1.OutputConfig.Builder, - com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - glossaries_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; + private com.google.protobuf.MapField internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2888,13 +2540,11 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO } return glossaries_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + private com.google.protobuf.MapField internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = - com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2903,199 +2553,160 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO onChanged(); return glossaries_; } - public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetGlossaries().getMap().containsKey(key); } - /** Use {@link #getGlossariesMap()} instead. */ + /** + * Use {@link #getGlossariesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossaries() { + public java.util.Map getGlossaries() { return getGlossariesMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - getGlossariesMap() { + public java.util.Map getGlossariesMap() { return internalGetGlossaries().getMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getGlossariesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + public /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - map = internalGetGlossaries().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap().clear(); + internalGetMutableGlossaries().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeGlossaries(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableGlossaries().getMutableMap().remove(key); + public Builder removeGlossaries( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableGlossaries().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + public java.util.Map getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableGlossaries().getMutableMap().put(key, value); + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableGlossaries().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllGlossaries( - java.util.Map< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> - values) { - internalGetMutableGlossaries().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableGlossaries().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3104,13 +2715,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3125,21 +2733,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3158,8 +2765,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3174,19 +2779,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3201,25 +2804,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3233,22 +2834,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3262,20 +2864,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -3289,14 +2888,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3306,13 +2907,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest();
   }
@@ -3321,27 +2921,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchTranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchTranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3356,4 +2956,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
index 910797b64825..4a36ace0b91d 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateTextRequestOrBuilder
-    extends
+public interface BatchTranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -38,16 +20,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -60,97 +37,74 @@ public interface BatchTranslateTextRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the targetLanguageCodes. */ - java.util.List getTargetLanguageCodesList(); + java.util.List + getTargetLanguageCodesList(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** - * - * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getTargetLanguageCodesBytes(int index); /** - * - * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -173,8 +127,6 @@ public interface BatchTranslateTextRequestOrBuilder
    */
   int getModelsCount();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -195,13 +147,15 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(java.lang.String key);
-  /** Use {@link #getModelsMap()} instead. */
+  boolean containsModels(
+      java.lang.String key);
+  /**
+   * Use {@link #getModelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getModels();
+  java.util.Map
+  getModels();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -222,10 +176,9 @@ public interface BatchTranslateTextRequestOrBuilder
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getModelsMap();
+  java.util.Map
+  getModelsMap();
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -247,13 +200,11 @@ public interface BatchTranslateTextRequestOrBuilder
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getModelsOrDefault(
+java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,11 +225,10 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(java.lang.String key);
+  java.lang.String getModelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -286,14 +236,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getInputConfigsList(); + java.util.List + getInputConfigsList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -301,14 +248,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -316,14 +259,10 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ int getInputConfigsCount(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -331,15 +270,11 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** - * - * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -347,138 +282,104 @@ java.lang.String getModelsOrDefault(
    * The files must use UTF-8 encoding.
    * 
* - * - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index); + com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( + int index); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getGlossariesCount(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsGlossaries( + java.lang.String key); + /** + * Use {@link #getGlossariesMap()} instead. */ - boolean containsGlossaries(java.lang.String key); - /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); +com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** - * - * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -494,8 +395,6 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -509,13 +408,15 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -529,10 +430,9 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -547,13 +447,11 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -567,5 +465,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
similarity index 70%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
index f7237dc2e115..3127085cac39 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully created.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to create the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully created.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to create the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = - (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,104 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -624,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
       com.google.cloud.translate.v3beta1.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -665,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -686,11 +609,8 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result =
-          new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -704,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -712,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -752,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -791,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -852,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -874,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -912,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -936,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -969,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1009,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3beta1.CreateGlossaryMetadat return this; } /** - * - * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1028,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1089,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1108,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1118,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1133,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1152,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1166,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1178,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1193,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.CreateGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(); } @@ -1234,27 +1090,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1269,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java index 9408918bc8e2..e5de66c9d72a 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface CreateGlossaryMetadataOrBuilder - extends +public interface CreateGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java similarity index 60% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java index a345727ae32f..97c241454aee 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,16 +93,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.Glossary glossary_; /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ @java.lang.Override @@ -137,44 +105,30 @@ public boolean hasGlossary() { return glossary_ != null; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary getGlossary() { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } /** - * - * *
    * Required. The glossary to create.
    * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -206,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,18 +172,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = - (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary().equals(other.getGlossary())) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -252,136 +209,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) com.google.cloud.translate.v3beta1.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -417,11 +369,8 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = - new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -432,7 +381,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null + ? glossary_ + : glossaryBuilder_.build(); } } @@ -440,39 +391,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -480,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -516,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,27 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -573,23 +516,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -597,39 +537,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -639,23 +568,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project name.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -665,58 +588,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> - glossaryBuilder_; + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossaryBuilder_; /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The glossary. */ public com.google.cloud.translate.v3beta1.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { @@ -732,15 +636,11 @@ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGlossary( com.google.cloud.translate.v3beta1.Glossary.Builder builderForValue) { @@ -754,21 +654,17 @@ public Builder setGlossary( return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossary_ != null - && glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossary_ != null && + glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -781,15 +677,11 @@ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -802,15 +694,11 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -818,55 +706,43 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() return getGlossaryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null - ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() - : glossary_; + return glossary_ == null ? + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; } } /** - * - * *
      * Required. The glossary to create.
      * 
* - * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - getGlossary(), getParentForChildren(), isClean()); + glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + getGlossary(), + getParentForChildren(), + isClean()); glossary_ = null; } return glossaryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) private static final com.google.cloud.translate.v3beta1.CreateGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(); } @@ -890,27 +766,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -925,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..148408b6d92a --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface CreateGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The glossary. + */ + com.google.cloud.translate.v3beta1.Glossary getGlossary(); + /** + *
+   * Required. The glossary to create.
+   * 
+ * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java index bb6208859ee1..94664c7475ac 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -46,38 +28,34 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -106,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -116,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCELLING(4),
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The glossary was successfully deleted.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * Failed to delete the glossary.
      * 
@@ -180,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -191,8 +149,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCELLING_VALUE = 4;
     /**
-     *
-     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -201,6 +157,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,57 +182,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLING; + case 5: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -293,18 +245,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -313,29 +261,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -346,51 +294,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -398,14 +332,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ @java.lang.Override @@ -413,8 +344,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -427,7 +356,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,13 +367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -463,13 +390,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,19 +406,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = - (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -518,104 +446,98 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -624,32 +546,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3beta1.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -665,9 +588,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -686,11 +609,8 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result =
-          new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -704,7 +624,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
     }
 
@@ -712,39 +634,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -752,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -791,31 +711,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,25 +743,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -852,21 +767,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -874,35 +788,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -912,21 +819,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -936,29 +839,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -969,33 +865,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1009,14 +896,11 @@ public Builder setState(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadat return this; } /** - * - * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1028,47 +912,34 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1089,15 +960,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1108,8 +978,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1118,9 +986,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1133,8 +1001,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1152,8 +1018,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1166,8 +1030,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1178,14 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -1193,24 +1052,21 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(); } @@ -1234,27 +1090,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1269,4 +1125,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java index 3ff86a529e4c..c5b1c95fbbcd 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DeleteGlossaryMetadataOrBuilder - extends +public interface DeleteGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; - * * @return The state. */ com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java similarity index 63% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java index b84dcc7a1214..62933e0cb9e8 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = - (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) com.google.cloud.translate.v3beta1.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = - new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -486,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -510,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -552,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(); } @@ -601,27 +537,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..0285761073ae --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface DeleteGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java similarity index 71% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java index aac9812103e2..7ce6185f0757 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -29,54 +12,48 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteGlossaryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -133,14 +107,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ @java.lang.Override @@ -148,8 +119,6 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -164,8 +133,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,7 +140,6 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -181,8 +147,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -190,7 +154,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -198,8 +161,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -214,7 +175,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -226,7 +186,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -249,10 +210,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -262,22 +225,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other =
-        (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other = (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime()
+          .equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime().equals(other.getEndTime())) return false;
+      if (!getEndTime()
+          .equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -306,104 +271,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -412,32 +371,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
       com.google.cloud.translate.v3beta1.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -457,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -478,11 +438,8 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result =
-          new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -493,10 +450,14 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null
+            ? submitTime_
+            : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
     }
 
@@ -504,39 +465,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -544,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -583,31 +542,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSubmitTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,25 +576,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -644,21 +600,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -666,35 +621,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -704,21 +652,17 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the deleted glossary.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -728,47 +672,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -789,15 +720,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -808,8 +738,6 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -818,9 +746,9 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -833,8 +761,6 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -852,8 +778,6 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -866,8 +790,6 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -878,14 +800,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * The time when the operation was submitted to the server.
      * 
@@ -893,17 +812,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -911,13 +827,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -925,15 +836,12 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -941,7 +849,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -952,8 +859,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -976,8 +881,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -986,7 +889,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -997,8 +901,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1009,9 +911,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1024,8 +926,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1045,8 +945,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1061,8 +959,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1075,12 +971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1090,24 +985,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1117,12 +1009,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3beta1.DeleteGlossaryResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse();
   }
@@ -1131,27 +1023,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteGlossaryResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteGlossaryResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1166,4 +1058,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
similarity index 74%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
index d3c3e76f020d..3f333cae33e7 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
@@ -1,80 +1,51 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DeleteGlossaryResponseOrBuilder
-    extends
+public interface DeleteGlossaryResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the deleted glossary.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; - * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * The time when the operation was submitted to the server.
    * 
@@ -84,8 +55,6 @@ public interface DeleteGlossaryResponseOrBuilder com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -93,13 +62,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -107,13 +73,10 @@ public interface DeleteGlossaryResponseOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
index 48a14238139e..60e64a3a8567 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) DetectLanguageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -45,49 +27,45 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -103,31 +81,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -142,10 +115,7 @@ public SourceCase getSourceCase() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -154,15 +124,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -177,18 +146,17 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,12 +165,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -216,7 +181,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -225,15 +189,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -247,15 +210,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -265,28 +229,22 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ public java.lang.String getContent() { @@ -297,7 +255,8 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -306,24 +265,23 @@ public java.lang.String getContent() { } } /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -334,19 +292,15 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -355,30 +309,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -387,34 +341,32 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -429,21 +381,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -462,8 +413,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -478,19 +427,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -505,11 +452,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -517,7 +464,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -529,7 +475,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -542,8 +489,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     getUnknownFields().writeTo(output);
   }
 
@@ -565,15 +516,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -583,22 +534,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageRequest other =
-        (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageRequest other = (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent().equals(other.getContent())) return false;
+        if (!getContent()
+            .equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -638,156 +593,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) com.google.cloud.translate.v3beta1.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -802,9 +754,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -823,11 +775,8 @@ public com.google.cloud.translate.v3beta1.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageRequest result = - new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DetectLanguageRequest result = new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -850,8 +799,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageRequ } } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; } @@ -860,39 +808,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest)other); } else { super.mergeFrom(other); return this; @@ -900,8 +847,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -917,20 +863,19 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageReques bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -958,50 +903,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1011,12 +948,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -1030,8 +967,6 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1046,16 +981,14 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1064,8 +997,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1080,17 +1011,16 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1098,8 +1028,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1114,25 +1042,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1147,10 +1069,7 @@ public Builder setParent(java.lang.String value) {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1160,8 +1079,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1176,17 +1093,13 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1196,8 +1109,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1211,13 +1122,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1226,8 +1137,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1241,14 +1150,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1256,8 +1166,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1271,22 +1179,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1300,7 +1204,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1310,8 +1213,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The language detection model to be used.
      *
@@ -1325,14 +1226,12 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1341,14 +1240,11 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1356,14 +1252,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The content. */ @java.lang.Override @@ -1373,7 +1266,8 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1384,25 +1278,24 @@ public java.lang.String getContent() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { + public com.google.protobuf.ByteString + getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1412,35 +1305,28 @@ public com.google.protobuf.ByteString getContentBytes() { } } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1452,21 +1338,17 @@ public Builder clearContent() { return this; } /** - * - * *
      * The content of the input stored as a string.
      * 
* * string content = 1; - * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1476,21 +1358,19 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1499,22 +1379,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1522,37 +1401,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1562,22 +1434,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1585,19 +1453,21 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1606,13 +1476,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1627,21 +1494,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1660,8 +1526,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1676,19 +1540,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1703,25 +1565,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1735,22 +1595,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1764,20 +1625,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1791,14 +1649,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1808,12 +1668,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageRequest();
   }
@@ -1822,27 +1682,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1857,4 +1717,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
index 775b7874f4f5..203bc5697745 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageRequestOrBuilder
-    extends
+public interface DetectLanguageRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -40,16 +22,11 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -64,17 +41,13 @@ public interface DetectLanguageRequestOrBuilder
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -88,13 +61,10 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The language detection model to be used.
    *
@@ -108,78 +78,63 @@ public interface DetectLanguageRequestOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The content. */ java.lang.String getContent(); /** - * - * *
    * The content of the input stored as a string.
    * 
* * string content = 1; - * * @return The bytes for content. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString + getContentBytes(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -195,8 +150,6 @@ public interface DetectLanguageRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -210,13 +163,15 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -230,10 +185,9 @@ public interface DetectLanguageRequestOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -248,13 +202,11 @@ public interface DetectLanguageRequestOrBuilder
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -268,7 +220,8 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   com.google.cloud.translate.v3beta1.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
similarity index 73%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
index 564f1d3b3d84..a62e0d3ed065 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
@@ -1,74 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectLanguageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) DetectLanguageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -81,8 +59,6 @@ public java.util.List getLa
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -91,13 +67,11 @@ public java.util.List getLa
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -140,7 +110,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -166,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -176,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageResponse other =
-        (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageResponse other = (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -206,136 +177,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) com.google.cloud.translate.v3beta1.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -372,18 +338,14 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageResponse result = - new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); + com.google.cloud.translate.v3beta1.DetectLanguageResponse result = new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -403,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse)other); } else { super.mergeFrom(other); return this; @@ -443,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -463,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRespon languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -498,27 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3beta1.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,30 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList( - languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.DetectedLanguage, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, - com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -567,8 +515,6 @@ public java.util.List getLa
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -584,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -601,8 +545,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -625,8 +567,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -646,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -669,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.DetectedLanguage
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -693,8 +629,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -714,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -735,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -748,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -756,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -776,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -796,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -810,8 +735,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -822,14 +745,11 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
     public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -837,8 +757,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -846,8 +766,6 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
       }
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -856,12 +774,10 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -871,13 +787,10 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -885,30 +798,27 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.DetectedLanguage,
-            com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
-            com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>
+        com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.DetectedLanguage,
-                com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
-                com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageResponse();
   }
@@ -932,27 +842,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetectLanguageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetectLanguageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -967,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
index 7de0a0538e17..efeecfb6a1aa 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageResponseOrBuilder
-    extends
+public interface DetectLanguageResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -33,10 +15,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -46,8 +27,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -57,8 +36,6 @@ public interface DetectLanguageResponseOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -66,11 +43,9 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -78,5 +53,6 @@ public interface DetectLanguageResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
similarity index 68%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
index d021195a01f0..09a9eb377ea0 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
@@ -1,81 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ -public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectedLanguage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectedLanguage) DetectedLanguageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -84,30 +61,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -118,14 +95,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -134,7 +108,6 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,7 +119,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -166,7 +140,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,17 +151,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DetectedLanguage other = - (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; + com.google.cloud.translate.v3beta1.DetectedLanguage other = (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,142 +177,139 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectedLanguage) com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, - com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectedLanguage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override @@ -368,11 +341,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3beta1.DetectedLanguage result = - new com.google.cloud.translate.v3beta1.DetectedLanguage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DetectedLanguage result = new com.google.cloud.translate.v3beta1.DetectedLanguage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -391,39 +361,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectedLanguage r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage)other); } else { super.mergeFrom(other); return this; @@ -431,8 +400,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectedLanguage other) { - if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000001; @@ -467,25 +435,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,26 +460,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object languageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -523,22 +485,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -546,37 +507,30 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -586,22 +540,18 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -609,16 +559,13 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -626,14 +573,11 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ @@ -645,14 +589,11 @@ public Builder setConfidence(float value) { return this; } /** - * - * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -661,9 +602,9 @@ public Builder clearConfidence() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -673,12 +614,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectedLanguage) private static final com.google.cloud.translate.v3beta1.DetectedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectedLanguage(); } @@ -687,27 +628,27 @@ public static com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -722,4 +663,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java similarity index 56% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java index cf19cfed0cc0..18315afd3353 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java @@ -1,64 +1,40 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DetectedLanguageOrBuilder - extends +public interface DetectedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java index 153fd3fc46ef..914665d42172 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ -public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentInputConfig) DocumentInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -91,36 +68,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CONTENT; - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CONTENT; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -128,14 +99,11 @@ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -148,15 +116,12 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -164,27 +129,22 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -195,18 +155,15 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -221,7 +178,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
    * 
* * string mime_type = 4; - * * @return The mimeType. */ @java.lang.Override @@ -230,15 +186,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -253,15 +208,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -270,7 +226,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,9 +237,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) source_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); @@ -302,14 +259,13 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.translate.v3beta1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -322,22 +278,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentInputConfig other = - (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentInputConfig other = (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -373,136 +331,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -517,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override @@ -538,11 +491,8 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentInputConfig result = - new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DocumentInputConfig result = new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -558,7 +508,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -567,39 +518,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInput public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig)other); } else { super.mergeFrom(other); return this; @@ -607,28 +557,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: - { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CONTENT: { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -656,31 +602,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -690,12 +634,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -708,28 +652,22 @@ public Builder clearSource() { private int bitField0_; /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -739,35 +677,27 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** - * - * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -780,20 +710,14 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -801,15 +725,12 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -827,8 +748,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -850,8 +769,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -871,8 +788,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -882,13 +797,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -904,8 +816,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -930,8 +840,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -943,8 +851,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -964,8 +870,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -974,19 +878,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -999,8 +898,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
 
     private java.lang.Object mimeType_ = "";
     /**
-     *
-     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -1015,13 +912,13 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * 
* * string mime_type = 4; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1030,8 +927,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1046,14 +941,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1061,8 +957,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1077,22 +971,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 4; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1107,7 +997,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 4; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1117,8 +1006,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Specifies the input document's mime_type.
      *
@@ -1133,23 +1020,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1159,12 +1044,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentInputConfig) private static final com.google.cloud.translate.v3beta1.DocumentInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentInputConfig(); } @@ -1173,27 +1058,27 @@ public static com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,4 +1093,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java index 11b3263e5212..06e08725269c 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentInputConfigOrBuilder - extends +public interface DocumentInputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -87,8 +57,6 @@ public interface DocumentInputConfigOrBuilder
   com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -103,13 +71,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Specifies the input document's mime_type.
    *
@@ -124,10 +89,10 @@ public interface DocumentInputConfigOrBuilder
    * 
* * string mime_type = 4; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java similarity index 81% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java index ecdf6ea09af0..9f0503508260 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) DocumentOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -90,28 +67,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -158,10 +131,7 @@ public DestinationCase getDestinationCase() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -169,8 +139,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -217,22 +185,17 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -279,25 +242,20 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -311,7 +269,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -320,15 +277,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -342,15 +298,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -359,7 +316,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } @@ -388,9 +345,8 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -403,19 +359,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentOutputConfig other = - (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentOutputConfig other = (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -447,136 +404,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -591,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -612,11 +564,8 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentOutputConfig result = - new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.DocumentOutputConfig result = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -629,11 +578,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentOutputConf } } - private void buildPartialOneofs( - com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -642,39 +591,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -682,23 +630,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -726,25 +671,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -754,12 +698,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -772,13 +716,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -825,10 +764,7 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -836,8 +772,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -884,10 +818,7 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ @java.lang.Override @@ -905,8 +836,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -953,9 +882,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -971,8 +898,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1019,9 +944,7 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcsDestination( com.google.cloud.translate.v3beta1.GcsDestination.Builder builderForValue) { @@ -1035,8 +958,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1083,20 +1004,14 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.translate.v3beta1.GcsDestination.newBuilder( - (com.google.cloud.translate.v3beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1112,8 +1027,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1160,9 +1073,7 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1181,8 +1092,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1229,16 +1138,12 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1285,9 +1190,7 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1301,8 +1204,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat } } /** - * - * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1349,24 +1250,17 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * bucket.
      * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3beta1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1379,8 +1273,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1394,13 +1286,13 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1409,8 +1301,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1424,14 +1314,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1439,8 +1330,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1454,22 +1343,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1483,7 +1368,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1493,8 +1377,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1508,23 +1390,21 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1534,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) private static final com.google.cloud.translate.v3beta1.DocumentOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(); } @@ -1548,27 +1428,27 @@ public static com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1583,4 +1463,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java similarity index 87% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java index 463254c21d21..17316468ae28 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentOutputConfigOrBuilder - extends +public interface DocumentOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -72,16 +54,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -128,16 +105,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -184,15 +156,11 @@ public interface DocumentOutputConfigOrBuilder
    * bucket.
    * 
* - * - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -206,13 +174,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -226,10 +191,10 @@ public interface DocumentOutputConfigOrBuilder
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java index 8ea93fed3c5a..89708b96024f 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ -public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentTranslation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentTranslation) DocumentTranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -45,32 +27,28 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -78,16 +56,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List getByteStreamOutputsList() { + public java.util.List + getByteStreamOutputsList() { return byteStreamOutputs_; } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -95,15 +71,12 @@ public java.util.List getByteStreamOutputsList()
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -111,7 +84,6 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -171,12 +139,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -186,7 +151,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -195,15 +159,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -213,15 +176,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -230,7 +194,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -264,8 +228,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -284,17 +248,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentTranslation other = - (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; + com.google.cloud.translate.v3beta1.DocumentTranslation other = (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; - if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList() + .equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,136 +286,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentTranslation) com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override @@ -482,18 +443,14 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3beta1.DocumentTranslation result = - new com.google.cloud.translate.v3beta1.DocumentTranslation(this); + com.google.cloud.translate.v3beta1.DocumentTranslation result = new com.google.cloud.translate.v3beta1.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.DocumentTranslation result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -515,39 +472,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentTranslatio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation) other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation)other); } else { super.mergeFrom(other); return this; @@ -555,8 +511,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -603,32 +558,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -638,22 +589,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List byteStreamOutputs_ = - java.util.Collections.emptyList(); - + private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = - new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -661,17 +606,14 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ - public java.util.List getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(byteStreamOutputs_) - : byteStreamOutputs_; + public java.util.List + getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -679,15 +621,12 @@ public java.util.List getByteStreamOutputsList()
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -695,7 +634,6 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -703,8 +641,6 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -712,23 +648,19 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setByteStreamOutputs( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -736,22 +668,17 @@ public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString va
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -759,20 +686,18 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, byteStreamOutputs_); onChanged(); return this; } /** - * - * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -780,7 +705,6 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; - * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -792,20 +716,18 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -814,21 +736,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -836,35 +757,28 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -874,21 +788,17 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -898,8 +808,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -909,13 +817,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -924,8 +832,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -935,14 +841,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -950,8 +857,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -961,22 +866,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 3; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -986,7 +887,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 3; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -996,8 +896,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -1007,23 +905,21 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentTranslation) private static final com.google.cloud.translate.v3beta1.DocumentTranslation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentTranslation(); } @@ -1047,27 +943,27 @@ public static com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,4 +978,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java similarity index 76% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java index 542dcda58c23..8dc2ef1084d3 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentTranslationOrBuilder - extends +public interface DocumentTranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -33,13 +15,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -47,13 +26,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** - * - * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -61,40 +37,32 @@ public interface DocumentTranslationOrBuilder
    * 
* * repeated bytes byte_stream_outputs = 1; - * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -104,13 +72,10 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -120,8 +85,8 @@ public interface DocumentTranslationOrBuilder
    * 
* * string detected_language_code = 3; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java index fbafb7e18b90..f3eba776ada7 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, - com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ @java.lang.Override @@ -85,15 +62,14 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -101,15 +77,16 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -154,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsDestination other = - (com.google.cloud.translate.v3beta1.GcsDestination) obj; + com.google.cloud.translate.v3beta1.GcsDestination other = (com.google.cloud.translate.v3beta1.GcsDestination) obj; - if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix() + .equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,135 +159,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsDestination) com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, - com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsDestination.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override @@ -341,11 +314,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination buildPartial() { - com.google.cloud.translate.v3beta1.GcsDestination result = - new com.google.cloud.translate.v3beta1.GcsDestination(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GcsDestination result = new com.google.cloud.translate.v3beta1.GcsDestination(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +331,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsDestination res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -401,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GcsDestination other) { - if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) return this; if (!other.getOutputUriPrefix().isEmpty()) { outputUriPrefix_ = other.outputUriPrefix_; bitField0_ |= 0x00000001; @@ -434,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,13 +422,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -470,13 +433,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -485,8 +448,6 @@ public java.lang.String getOutputUriPrefix() { } } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -494,14 +455,15 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString + getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -509,8 +471,6 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -518,22 +478,18 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -541,7 +497,6 @@ public Builder setOutputUriPrefix(java.lang.String value) {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -551,8 +506,6 @@ public Builder clearOutputUriPrefix() { return this; } /** - * - * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -560,23 +513,21 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOutputUriPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -586,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsDestination) private static final com.google.cloud.translate.v3beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsDestination(); } @@ -600,27 +551,27 @@ public static com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java similarity index 59% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java index f9f1a7cb3a5c..7b92ba408335 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -33,13 +15,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** - * - * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -47,8 +26,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString getOutputUriPrefixBytes(); + com.google.protobuf.ByteString + getOutputUriPrefixBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java similarity index 67% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java index e7120cf316d9..bf6227f61875 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, - com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -150,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsSource other = - (com.google.cloud.translate.v3beta1.GcsSource) obj; + com.google.cloud.translate.v3beta1.GcsSource other = (com.google.cloud.translate.v3beta1.GcsSource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsSource) com.google.cloud.translate.v3beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, - com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsSource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -316,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override @@ -337,11 +310,8 @@ public com.google.cloud.translate.v3beta1.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource buildPartial() { - com.google.cloud.translate.v3beta1.GcsSource result = - new com.google.cloud.translate.v3beta1.GcsSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GcsSource result = new com.google.cloud.translate.v3beta1.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -357,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsSource result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -429,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -451,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -478,21 +442,20 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString getInputUriBytes() { + public com.google.protobuf.ByteString + getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputUri_ = b; return b; } else { @@ -500,35 +463,28 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -538,30 +494,26 @@ public Builder clearInputUri() { return this; } /** - * - * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsSource) private static final com.google.cloud.translate.v3beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsSource(); } @@ -585,27 +537,27 @@ public static com.google.cloud.translate.v3beta1.GcsSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -620,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java similarity index 52% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java index f38f9d999c8b..317cdff9cb9a 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java similarity index 62% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java index 79a98bca6ee3..ee785a9bf764 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGlossaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) GetGlossaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the glossary to retrieve.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetGlossaryRequest other = - (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.GetGlossaryRequest other = (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) com.google.cloud.translate.v3beta1.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetGlossaryRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.cloud.translate.v3beta1.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetGlossaryRequest result = - new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GetGlossaryRequest result = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +327,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GetGlossaryRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -486,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -510,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -552,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the glossary to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) private static final com.google.cloud.translate.v3beta1.GetGlossaryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(); } @@ -601,27 +537,27 @@ public static com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..28d83bb94b87 --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface GetGlossaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java index 6a2ca76cb00a..44ea1950af9a 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSupportedLanguagesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -45,32 +27,28 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -87,10 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -99,15 +74,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -124,18 +98,17 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -144,12 +117,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -157,7 +127,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ @java.lang.Override @@ -166,15 +135,14 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -182,15 +150,16 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -199,12 +168,9 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -222,7 +188,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -257,15 +221,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -274,7 +239,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -322,17 +287,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = - (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; - if (!getModel().equals(other.getModel())) return false; + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getDisplayLanguageCode() + .equals(other.getDisplayLanguageCode())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,136 +323,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +459,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance(); } @@ -519,17 +480,13 @@ public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = - new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,50 +503,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { - if (other - == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { + if (other == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -631,31 +584,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,13 +614,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -688,16 +634,14 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -706,8 +650,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -724,17 +666,16 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -742,8 +683,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -760,25 +699,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -795,10 +728,7 @@ public Builder setParent(java.lang.String value) {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -808,8 +738,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -826,17 +754,13 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -846,8 +770,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayLanguageCode_ = ""; /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -855,13 +777,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -870,8 +792,6 @@ public java.lang.String getDisplayLanguageCode() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -879,14 +799,15 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -894,8 +815,6 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -903,22 +822,18 @@ public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -926,7 +841,6 @@ public Builder setDisplayLanguageCode(java.lang.String value) {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -936,8 +850,6 @@ public Builder clearDisplayLanguageCode() { return this; } /** - * - * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -945,14 +857,12 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -962,8 +872,6 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object model_ = ""; /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -981,13 +889,13 @@ public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value)
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -996,8 +904,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1015,14 +921,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1030,8 +937,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1049,22 +954,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1082,7 +983,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1092,8 +992,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. Get supported languages of this model.
      *
@@ -1111,23 +1009,21 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1137,43 +1033,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) - private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,8 +1079,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java index 35383185f638..05467be3d1ae 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GetSupportedLanguagesRequestOrBuilder - extends +public interface GetSupportedLanguagesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -42,16 +24,11 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -68,17 +45,13 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -86,13 +59,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** - * - * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -100,14 +70,12 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString + getDisplayLanguageCodeBytes(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -125,13 +93,10 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. Get supported languages of this model.
    *
@@ -149,8 +114,8 @@ public interface GetSupportedLanguagesRequestOrBuilder
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java similarity index 71% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java index 9d415396e551..c664292ae449 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java @@ -1,145 +1,112 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Represents a glossary built from user provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ -public final class Glossary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Glossary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary) GlossaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Glossary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, - com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder - extends + public interface LanguageCodePairOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodePair extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -147,39 +114,34 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -188,30 +150,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -220,19 +182,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -241,30 +199,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -273,7 +231,6 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +242,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -315,16 +273,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode() + .equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode() + .equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,94 +305,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -443,41 +397,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -488,14 +440,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } @@ -510,17 +461,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = - new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sourceLanguageCode_ = sourceLanguageCode_; @@ -534,41 +481,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)other); } else { super.mergeFrom(other); return this; @@ -576,9 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other) { - if (other - == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -615,25 +557,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,26 +582,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -671,22 +607,21 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -694,37 +629,30 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -734,22 +662,18 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -759,21 +683,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -782,22 +704,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -805,37 +726,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -845,29 +759,24 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -880,44 +789,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,20 +835,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LanguageCodesSetOrBuilder - extends + public interface LanguageCodesSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -950,13 +853,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -964,13 +865,10 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -978,14 +876,11 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -993,64 +888,58 @@ public interface LanguageCodesSetOrBuilder
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LanguageCodesSet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LanguageCodesSet() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1058,15 +947,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1074,15 +961,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1090,7 +974,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1098,8 +981,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1107,16 +988,15 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1128,7 +1008,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1157,15 +1038,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1187,94 +1068,89 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1284,58 +1160,56 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1350,17 +1224,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = - new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { languageCodes_.makeImmutable(); @@ -1372,41 +1242,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)other); } else { super.mergeFrom(other); return this; @@ -1414,9 +1281,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other) { - if (other - == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1453,20 +1318,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1476,12 +1339,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1489,8 +1350,6 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1498,16 +1357,14 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1515,15 +1372,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
        * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1531,7 +1385,6 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1539,8 +1392,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1548,16 +1399,14 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1565,15 +1414,13 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
        * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1581,8 +1428,6 @@ public Builder setLanguageCodes(int index, java.lang.String value) { return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1590,14 +1435,12 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1605,8 +1448,6 @@ public Builder addLanguageCodes(java.lang.String value) { return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1614,20 +1455,19 @@ public Builder addLanguageCodes(java.lang.String value) {
        * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1635,19 +1475,16 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
        * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + languageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1655,14 +1492,12 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1670,7 +1505,6 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1683,44 +1517,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1732,26 +1563,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int languagesCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object languages_; - public enum LanguagesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; - private LanguagesCase(int value) { this.value = value; } @@ -1767,40 +1594,33 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: - return LANGUAGE_PAIR; - case 4: - return LANGUAGE_CODES_SET; - case 0: - return LANGUAGES_NOT_SET; - default: - return null; + case 3: return LANGUAGE_PAIR; + case 4: return LANGUAGE_CODES_SET; + case 0: return LANGUAGES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -1809,30 +1629,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1842,14 +1662,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1857,26 +1674,21 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -1884,25 +1696,20 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1910,39 +1717,31 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1950,15 +1749,12 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1966,26 +1762,19 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1995,22 +1784,17 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null
-        ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
-        : inputConfig_;
+    return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -2021,15 +1805,11 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ @java.lang.Override @@ -2037,15 +1817,11 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ @java.lang.Override @@ -2053,14 +1829,11 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -2070,15 +1843,11 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -2086,15 +1855,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -2102,14 +1867,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -2117,7 +1879,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2129,17 +1890,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (languagesCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + output.writeMessage(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + output.writeMessage(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { output.writeMessage(5, getInputConfig()); @@ -2166,26 +1926,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2195,35 +1957,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary other = - (com.google.cloud.translate.v3beta1.Glossary) obj; + com.google.cloud.translate.v3beta1.Glossary other = (com.google.cloud.translate.v3beta1.Glossary) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } - if (getEntryCount() != other.getEntryCount()) return false; + if (getEntryCount() + != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; + if (!getSubmitTime() + .equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair().equals(other.getLanguagePair())) return false; + if (!getLanguagePair() + .equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet() + .equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2272,136 +2040,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a glossary built from user provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary) com.google.cloud.translate.v3beta1.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, - com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2435,9 +2199,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override @@ -2456,11 +2220,8 @@ public com.google.cloud.translate.v3beta1.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary buildPartial() { - com.google.cloud.translate.v3beta1.Glossary result = - new com.google.cloud.translate.v3beta1.Glossary(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Glossary result = new com.google.cloud.translate.v3beta1.Glossary(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -2472,27 +2233,34 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = - inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); + result.inputConfig_ = inputConfigBuilder_ == null + ? inputConfig_ + : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null + ? submitTime_ + : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && languagePairBuilder_ != null) { + if (languagesCase_ == 3 && + languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && + languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2501,39 +2269,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary)other); } else { super.mergeFrom(other); return this; @@ -2560,20 +2327,17 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary other) { mergeEndTime(other.getEndTime()); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: - { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: - { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: - { - break; - } + case LANGUAGE_PAIR: { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2601,56 +2365,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: - { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getLanguagePairFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), + extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + input.readMessage( + getSubmitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2660,12 +2425,12 @@ public Builder mergeFrom( } // finally return this; } - private int languagesCase_ = 0; private java.lang.Object languages_; - - public LanguagesCase getLanguagesCase() { - return LanguagesCase.forNumber(languagesCase_); + public LanguagesCase + getLanguagesCase() { + return LanguagesCase.forNumber( + languagesCase_); } public Builder clearLanguages() { @@ -2679,21 +2444,19 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2702,22 +2465,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2725,37 +2487,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2765,22 +2520,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2789,19 +2540,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> - languagePairBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2809,14 +2554,11 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ @java.lang.Override @@ -2834,16 +2576,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder setLanguagePair( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2857,8 +2596,6 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2877,26 +2614,18 @@ public Builder setLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 - && languages_ - != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair - .getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 3 && + languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -2912,8 +2641,6 @@ public Builder mergeLanguagePair( return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2937,21 +2664,16 @@ public Builder clearLanguagePair() { return this; } /** - * - * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder - getLanguagePairBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2959,8 +2681,7 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder - getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -2971,8 +2692,6 @@ public Builder clearLanguagePair() { } } /** - * - * *
      * Used with unidirectional glossaries.
      * 
@@ -2980,20 +2699,14 @@ public Builder clearLanguagePair() { * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -3005,20 +2718,13 @@ public Builder clearLanguagePair() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> - languageCodesSetBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -3026,15 +2732,11 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ @java.lang.Override @@ -3052,17 +2754,13 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3076,14 +2774,11 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ public Builder setLanguageCodesSet( com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder builderForValue) { @@ -3097,27 +2792,18 @@ public Builder setLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 - && languages_ - != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet - .getDefaultInstance()) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder( - (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value) - .buildPartial(); + if (languagesCase_ == 4 && + languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value).buildPartial(); } else { languages_ = value; } @@ -3133,14 +2819,11 @@ public Builder mergeLanguageCodesSet( return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ public Builder clearLanguageCodesSet() { if (languageCodesSetBuilder_ == null) { @@ -3159,32 +2842,24 @@ public Builder clearLanguageCodesSet() { return this; } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder - getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -3195,30 +2870,21 @@ public Builder clearLanguageCodesSet() { } } /** - * - * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { - languages_ = - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); + languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -3231,49 +2897,36 @@ public Builder clearLanguageCodesSet() { private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GlossaryInputConfig, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, - com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3295,8 +2948,6 @@ public Builder setInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputCo
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3316,8 +2967,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3327,10 +2976,9 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && inputConfig_ != null
-            && inputConfig_
-                != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          inputConfig_ != null &&
+          inputConfig_ != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -3343,8 +2991,6 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInput
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3363,8 +3009,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3378,8 +3022,6 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3387,19 +3029,15 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      *
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
-    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder
-        getInputConfigOrBuilder() {
+    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3408,32 +3046,26 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig,
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
-            com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>
+        com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GlossaryInputConfig,
-                com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
-                com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_;
+    private int entryCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ @java.lang.Override @@ -3441,14 +3073,11 @@ public int getEntryCount() { return entryCount_; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3460,14 +3089,11 @@ public Builder setEntryCount(int value) { return this; } /** - * - * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3479,58 +3105,39 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3546,17 +3153,14 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3567,21 +3171,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + submitTime_ != null && + submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3594,15 +3194,11 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3615,15 +3211,11 @@ public Builder clearSubmitTime() { return this; } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3631,48 +3223,36 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return submitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** - * - * *
      * Output only. When CreateGlossary was called.
      * 
* - * - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); + submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), + getParentForChildren(), + isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3680,35 +3260,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3719,14 +3288,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3742,16 +3308,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3762,20 +3326,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3788,14 +3349,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3808,14 +3366,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3823,51 +3378,43 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3877,12 +3424,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary) private static final com.google.cloud.translate.v3beta1.Glossary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary(); } @@ -3891,27 +3438,27 @@ public static com.google.cloud.translate.v3beta1.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3926,4 +3473,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java index 6db570106ae1..d5d80ac45297 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GlossaryInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) GlossaryInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GlossaryInputConfig() {} + private GlossaryInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -136,7 +110,6 @@ public SourceCase getSourceCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -144,8 +117,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -172,19 +143,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -215,13 +183,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -233,7 +200,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -247,9 +215,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -259,18 +226,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.GlossaryInputConfig other =
-        (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3beta1.GlossaryInputConfig other = (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -300,136 +267,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -464,11 +426,8 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.GlossaryInputConfig result = - new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.GlossaryInputConfig result = new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -481,7 +440,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GlossaryInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -490,39 +450,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInput public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig)other); } else { super.mergeFrom(other); return this; @@ -530,18 +489,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -569,19 +525,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,12 +547,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -609,13 +565,8 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -642,7 +593,6 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -650,8 +600,6 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -678,7 +626,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -696,8 +643,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -739,8 +684,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -780,8 +723,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -811,13 +752,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -833,8 +771,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -879,8 +815,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -912,8 +846,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -953,8 +885,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -983,19 +913,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1005,9 +930,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1017,12 +942,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3beta1.GlossaryInputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GlossaryInputConfig();
   }
@@ -1031,27 +956,27 @@ public static com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GlossaryInputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GlossaryInputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1066,4 +991,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
similarity index 85%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
index 02eb6c051740..cac321359c9f 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryInputConfigOrBuilder
-    extends
+public interface GlossaryInputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -52,13 +34,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -85,13 +64,10 @@ public interface GlossaryInputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
similarity index 100%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
similarity index 79%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
index f81f9ca76e95..bb8954758e80 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
@@ -1,82 +1,53 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryOrBuilder
-    extends
+public interface GlossaryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; - * * @return The languagePair. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair(); /** - * - * *
    * Used with unidirectional glossaries.
    * 
@@ -86,73 +57,53 @@ public interface GlossaryOrBuilder com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; * @return The languageCodesSet. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet(); /** - * - * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; - * + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; */ - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder - getLanguageCodesSetOrBuilder(); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; - * * @return The inputConfig. */ com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig(); /** - * - * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -163,91 +114,66 @@ public interface GlossaryOrBuilder
   com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entryCount. */ int getEntryCount(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** - * - * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java index 508d508c7c7d..47d8b92b8df0 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, - com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -90,31 +67,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -123,7 +95,6 @@ public SourceCase getSourceCase() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -132,15 +103,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -149,15 +119,16 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -167,8 +138,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -191,7 +160,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -199,8 +167,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -223,19 +189,16 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -262,13 +225,12 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -280,7 +242,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -300,9 +263,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -312,19 +274,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.InputConfig other =
-        (com.google.cloud.translate.v3beta1.InputConfig) obj;
+    com.google.cloud.translate.v3beta1.InputConfig other = (com.google.cloud.translate.v3beta1.InputConfig) obj;
 
-    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -355,136 +318,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3beta1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.InputConfig) com.google.cloud.translate.v3beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, - com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.InputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override @@ -520,11 +479,8 @@ public com.google.cloud.translate.v3beta1.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig buildPartial() { - com.google.cloud.translate.v3beta1.InputConfig result = - new com.google.cloud.translate.v3beta1.InputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.InputConfig result = new com.google.cloud.translate.v3beta1.InputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -540,7 +496,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.InputConfig result private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -549,39 +506,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -596,15 +552,13 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -632,25 +586,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,12 +613,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -679,8 +632,6 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -689,13 +640,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -704,8 +655,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -714,14 +663,15 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -729,8 +679,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -739,22 +687,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -763,7 +707,6 @@ public Builder setMimeType(java.lang.String value) {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -773,8 +716,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -783,14 +724,12 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -799,13 +738,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, - com.google.cloud.translate.v3beta1.GcsSource.Builder, - com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -828,7 +762,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -836,8 +769,6 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -860,7 +791,6 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -878,8 +808,6 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -917,8 +845,6 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -954,8 +880,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -981,13 +905,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2
-            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 2 &&
+            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1003,8 +924,6 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1045,8 +964,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1074,8 +991,6 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1111,8 +1026,6 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1137,19 +1050,14 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource,
-            com.google.cloud.translate.v3beta1.GcsSource.Builder,
-            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsSource,
-                com.google.cloud.translate.v3beta1.GcsSource.Builder,
-                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1159,9 +1067,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1171,12 +1079,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.InputConfig)
   private static final com.google.cloud.translate.v3beta1.InputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.InputConfig();
   }
@@ -1185,27 +1093,27 @@ public static com.google.cloud.translate.v3beta1.InputConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1220,4 +1128,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
similarity index 86%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
index 76cde0ffa5ee..327cbca77222 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface InputConfigOrBuilder
-    extends
+public interface InputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -34,13 +16,10 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -49,14 +28,12 @@ public interface InputConfigOrBuilder
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -79,13 +56,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -108,13 +82,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** - * - * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
similarity index 75%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
index 2f4b0893b854..be23ee907b9d 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) ListGlossariesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,40 +27,33 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,15 +95,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -139,12 +109,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -153,7 +120,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +128,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -179,15 +144,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -196,12 +162,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -222,7 +185,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -231,15 +193,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -260,15 +221,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -277,7 +239,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -315,7 +277,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -331,18 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesRequest other = - (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.translate.v3beta1.ListGlossariesRequest other = (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,136 +334,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.cloud.translate.v3beta1.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -531,11 +492,8 @@ public com.google.cloud.translate.v3beta1.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesRequest result = - new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.ListGlossariesRequest result = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -560,39 +518,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest)other); } else { super.mergeFrom(other); return this; @@ -600,8 +557,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -646,37 +602,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -686,27 +637,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -715,23 +661,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -739,39 +682,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -781,23 +713,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -805,17 +731,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -823,15 +746,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -843,15 +763,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -863,8 +780,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -873,13 +788,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -888,8 +803,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -898,14 +811,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -913,8 +827,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -923,22 +835,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -947,7 +855,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -957,8 +864,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -967,14 +872,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -984,8 +887,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1006,13 +907,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1021,8 +922,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1043,14 +942,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1058,8 +958,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1080,22 +978,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1116,7 +1010,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1126,8 +1019,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1148,23 +1039,21 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1174,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) private static final com.google.cloud.translate.v3beta1.ListGlossariesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(); } @@ -1188,27 +1077,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1223,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java index be11c428891c..2e12d3cd5f33 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java @@ -1,74 +1,44 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesRequestOrBuilder - extends +public interface ListGlossariesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -77,13 +47,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -92,14 +59,12 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -120,13 +85,10 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -147,8 +109,8 @@ public interface ListGlossariesRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java similarity index 72% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java index 7c1f6a877695..860706a571b6 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGlossariesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) ListGlossariesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List glossaries_; /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -81,8 +59,6 @@ public java.util.List getGlossaries return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -90,13 +66,11 @@ public java.util.List getGlossaries * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -108,8 +82,6 @@ public int getGlossariesCount() { return glossaries_.size(); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -130,17 +100,15 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -148,7 +116,6 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -219,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesResponse other = - (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; + com.google.cloud.translate.v3beta1.ListGlossariesResponse other = (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; - if (!getGlossariesList().equals(other.getGlossariesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getGlossariesList() + .equals(other.getGlossariesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.cloud.translate.v3beta1.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -432,18 +396,14 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesResponse result = - new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); + com.google.cloud.translate.v3beta1.ListGlossariesResponse result = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -466,39 +426,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse)other); } else { super.mergeFrom(other); return this; @@ -506,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -526,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRespon glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlossariesFieldBuilder() - : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGlossariesFieldBuilder() : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -566,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.Glossary m = - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3beta1.Glossary m = + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.parser(), + extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,29 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - glossaries_ = - new java.util.ArrayList(glossaries_); + glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> - glossariesBuilder_; + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossariesBuilder_; /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -638,8 +585,6 @@ public java.util.List getGlossaries } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -654,8 +599,6 @@ public int getGlossariesCount() { } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -670,15 +613,14 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder setGlossaries( + int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,8 +634,6 @@ public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Gloss return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -712,8 +652,6 @@ public Builder setGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -734,15 +672,14 @@ public Builder addGlossaries(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder addGlossaries( + int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,8 +693,6 @@ public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Gloss return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -776,8 +711,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -796,8 +729,6 @@ public Builder addGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -808,7 +739,8 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -816,8 +748,6 @@ public Builder addAllGlossaries( return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -835,8 +765,6 @@ public Builder clearGlossaries() { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -854,44 +782,39 @@ public Builder removeGlossaries(int index) { return this; } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder(int index) { + public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder( + int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); - } else { + return glossaries_.get(index); } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -899,8 +822,6 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild } } /** - * - * *
      * The list of glossaries for a project.
      * 
@@ -908,48 +829,42 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(int index) { - return getGlossariesFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( + int index) { + return getGlossariesFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** - * - * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, - com.google.cloud.translate.v3beta1.Glossary.Builder, - com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + glossaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -957,8 +872,6 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -966,13 +879,13 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -990,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1005,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1014,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1037,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1047,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -1056,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1082,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) private static final com.google.cloud.translate.v3beta1.ListGlossariesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(); } @@ -1096,27 +997,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java index eba0cb31b8ad..4642bd830907 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesResponseOrBuilder - extends +public interface ListGlossariesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List getGlossariesList(); + java.util.List + getGlossariesList(); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -44,8 +25,6 @@ public interface ListGlossariesResponseOrBuilder */ com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index); /** - * - * *
    * The list of glossaries for a project.
    * 
@@ -54,30 +33,25 @@ public interface ListGlossariesResponseOrBuilder */ int getGlossariesCount(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** - * - * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index); + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( + int index); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -85,13 +59,10 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -99,8 +70,8 @@ public interface ListGlossariesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java similarity index 100% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java similarity index 88% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java index d50960132abc..cf4bf3fa1c41 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, - com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -88,28 +66,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -185,7 +159,6 @@ public DestinationCase getDestinationCase() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -193,8 +166,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -270,19 +241,16 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -362,13 +330,12 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -380,7 +347,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -394,9 +362,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -406,18 +373,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.OutputConfig other =
-        (com.google.cloud.translate.v3beta1.OutputConfig) obj;
+    com.google.cloud.translate.v3beta1.OutputConfig other = (com.google.cloud.translate.v3beta1.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination()
+            .equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -446,136 +413,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.translate.v3beta1.OutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.OutputConfig) com.google.cloud.translate.v3beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, - com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.OutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override @@ -610,11 +573,8 @@ public com.google.cloud.translate.v3beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.OutputConfig result = - new com.google.cloud.translate.v3beta1.OutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.OutputConfig result = new com.google.cloud.translate.v3beta1.OutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -627,7 +587,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.OutputConfig resul private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -636,39 +597,38 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -676,18 +636,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.OutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -715,19 +672,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -737,12 +694,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -755,13 +712,8 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, - com.google.cloud.translate.v3beta1.GcsDestination.Builder, - com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -837,7 +789,6 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -845,8 +796,6 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -922,7 +871,6 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -940,8 +888,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1032,8 +978,6 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1122,8 +1066,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1202,14 +1144,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_
-                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
-                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -1225,8 +1163,6 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1320,8 +1256,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1402,8 +1336,6 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1492,8 +1424,6 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
-     *
-     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1571,19 +1501,14 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination,
-            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
+        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.GcsDestination,
-                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
-                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1593,9 +1518,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       onChanged();
       return gcsDestinationBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1605,12 +1530,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.OutputConfig)
   private static final com.google.cloud.translate.v3beta1.OutputConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.OutputConfig();
   }
@@ -1619,27 +1544,27 @@ public static com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public OutputConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public OutputConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1654,4 +1579,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
similarity index 94%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
index f52b193db66f..3c96e59668b6 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface OutputConfigOrBuilder
-    extends
+public interface OutputConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -101,13 +83,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -183,13 +162,10 @@ public interface OutputConfigOrBuilder
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
index bb7e028c6a16..94104c7b5560 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
  */
-public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SupportedLanguage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguage)
     SupportedLanguageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -45,32 +27,28 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.SupportedLanguage.class,
-            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
-   *
-   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -88,15 +65,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -105,15 +81,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -122,19 +99,15 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -143,30 +116,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -177,14 +150,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -195,14 +165,11 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -211,7 +178,6 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -252,10 +219,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,18 +234,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.SupportedLanguage other = - (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; + com.google.cloud.translate.v3beta1.SupportedLanguage other = (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getSupportSource() != other.getSupportSource()) return false; - if (getSupportTarget() != other.getSupportTarget()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getSupportSource() + != other.getSupportSource()) return false; + if (getSupportTarget() + != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,112 +265,109 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -406,32 +375,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguage)
       com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.SupportedLanguage.class,
-              com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.SupportedLanguage.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -465,11 +435,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3beta1.SupportedLanguage result =
-          new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.SupportedLanguage result = new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -494,39 +461,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguage
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance()) return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -578,37 +543,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                supportSource_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                supportTarget_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              supportSource_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              supportTarget_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,13 +578,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -633,13 +590,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -648,8 +605,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -658,14 +613,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -673,8 +629,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -683,22 +637,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -707,7 +657,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -717,8 +666,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -727,14 +674,12 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -744,21 +689,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -767,22 +710,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -790,37 +732,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -830,22 +765,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -853,16 +784,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean supportSource_; + private boolean supportSource_ ; /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return The supportSource. */ @java.lang.Override @@ -870,14 +798,11 @@ public boolean getSupportSource() { return supportSource_; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -889,14 +814,11 @@ public Builder setSupportSource(boolean value) { return this; } /** - * - * *
      * Can be used as source language.
      * 
* * bool support_source = 3; - * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -906,16 +828,13 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_; + private boolean supportTarget_ ; /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return The supportTarget. */ @java.lang.Override @@ -923,14 +842,11 @@ public boolean getSupportTarget() { return supportTarget_; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -942,14 +858,11 @@ public Builder setSupportTarget(boolean value) { return this; } /** - * - * *
      * Can be used as target language.
      * 
* * bool support_target = 4; - * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -958,9 +871,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguage) private static final com.google.cloud.translate.v3beta1.SupportedLanguage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguage(); } @@ -984,27 +897,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java similarity index 69% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java index f514bf7fb8b8..58290ccfb950 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface SupportedLanguageOrBuilder - extends +public interface SupportedLanguageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -34,13 +16,10 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -49,60 +28,49 @@ public interface SupportedLanguageOrBuilder
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Can be used as source language.
    * 
* * bool support_source = 3; - * * @return The supportSource. */ boolean getSupportSource(); /** - * - * *
    * Can be used as target language.
    * 
* * bool support_target = 4; - * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java similarity index 74% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java index 458b7e8bbb64..2b25540df510 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ -public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SupportedLanguages extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguages) SupportedLanguagesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, - com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List languages_; /** - * - * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -81,8 +59,6 @@ public java.util.List getL
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -91,13 +67,11 @@ public java.util.List getL
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -110,8 +84,6 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -124,8 +96,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
     return languages_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -140,7 +110,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,7 +121,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -166,7 +136,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -176,15 +147,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.SupportedLanguages other =
-        (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
+    com.google.cloud.translate.v3beta1.SupportedLanguages other = (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
 
-    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList()
+        .equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -206,136 +177,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguages) com.google.cloud.translate.v3beta1.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, - com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.SupportedLanguages.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override @@ -372,18 +338,14 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3beta1.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3beta1.SupportedLanguages result = - new com.google.cloud.translate.v3beta1.SupportedLanguages(this); + com.google.cloud.translate.v3beta1.SupportedLanguages result = new com.google.cloud.translate.v3beta1.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.translate.v3beta1.SupportedLanguages result) { + private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -403,39 +365,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguages public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages) other); + return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages)other); } else { super.mergeFrom(other); return this; @@ -443,8 +404,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -463,10 +423,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages o languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLanguagesFieldBuilder() - : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLanguagesFieldBuilder() : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -498,27 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.translate.v3beta1.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.translate.v3beta1.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,30 +485,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = - new java.util.ArrayList( - languages_); + languages_ = new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.SupportedLanguage, - com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, - com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> - languagesBuilder_; + com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> languagesBuilder_; /** - * - * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -567,8 +515,6 @@ public java.util.List getL
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -584,8 +530,6 @@ public int getLanguagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -601,8 +545,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -625,8 +567,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -646,8 +586,6 @@ public Builder setLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -669,8 +607,6 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.SupportedLanguage
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -693,8 +629,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -714,8 +648,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -735,8 +667,6 @@ public Builder addLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -748,7 +678,8 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -756,8 +687,6 @@ public Builder addAllLanguages(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -776,8 +705,6 @@ public Builder clearLanguages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -796,8 +723,6 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -810,8 +735,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -822,14 +745,11 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
     public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);
-      } else {
+        return languages_.get(index);  } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -837,8 +757,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesOrBuilderList() {
+    public java.util.List 
+         getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -846,8 +766,6 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
       }
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -856,12 +774,10 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -871,13 +787,10 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -885,30 +798,27 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List
-        getLanguagesBuilderList() {
+    public java.util.List 
+         getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.SupportedLanguage,
-            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
-            com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>
+        com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> 
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.SupportedLanguage,
-                com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
-                com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
-                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
+                languages_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +828,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   private static final com.google.cloud.translate.v3beta1.SupportedLanguages DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguages();
   }
@@ -932,27 +842,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SupportedLanguages parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SupportedLanguages parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -967,4 +877,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
index c3e2f4007068..e457d1adcc8a 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface SupportedLanguagesOrBuilder
-    extends
+public interface SupportedLanguagesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -33,10 +15,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List getLanguagesList();
+  java.util.List 
+      getLanguagesList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -46,8 +27,6 @@ public interface SupportedLanguagesOrBuilder
    */
   com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int index);
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -57,8 +36,6 @@ public interface SupportedLanguagesOrBuilder
    */
   int getLanguagesCount();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -66,11 +43,9 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List
+  java.util.List 
       getLanguagesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -78,5 +53,6 @@ public interface SupportedLanguagesOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
+      int index);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
similarity index 69%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
index e1d973149b45..046270e794d9 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -46,43 +28,40 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -98,7 +77,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -107,15 +85,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -131,15 +108,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -148,12 +126,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -164,7 +139,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -173,15 +147,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -192,15 +165,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -209,19 +183,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -230,30 +200,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -264,16 +234,11 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -281,48 +246,32 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -331,10 +280,7 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputCo
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -342,8 +288,6 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -352,21 +296,14 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -375,25 +312,17 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -411,7 +340,6 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -420,15 +348,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -446,15 +373,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -465,18 +393,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -484,76 +407,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -569,21 +476,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -603,8 +509,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -620,19 +524,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -648,11 +550,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -660,7 +562,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -672,7 +573,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -694,8 +596,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        8);
     getUnknownFields().writeTo(output);
   }
 
@@ -715,27 +621,29 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getDocumentInputConfig());
     }
     if (documentOutputConfig_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getDocumentOutputConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(8, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -745,31 +653,38 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other =
-        (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
+    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
     if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false;
     if (hasDocumentInputConfig()) {
-      if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false;
+      if (!getDocumentInputConfig()
+          .equals(other.getDocumentInputConfig())) return false;
     }
     if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false;
     if (hasDocumentOutputConfig()) {
-      if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false;
+      if (!getDocumentOutputConfig()
+          .equals(other.getDocumentOutputConfig())) return false;
     }
-    if (!getModel().equals(other.getModel())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -811,156 +726,153 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) com.google.cloud.translate.v3beta1.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -989,9 +901,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1010,11 +922,8 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = - new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1031,23 +940,22 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = - documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = - documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1059,39 +967,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -1099,8 +1006,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1130,7 +1036,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentReq if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1158,69 +1065,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1230,13 +1130,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1252,13 +1149,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1267,8 +1164,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1284,14 +1179,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1299,8 +1195,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1316,22 +1210,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1347,7 +1237,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -1357,8 +1246,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Location to make a regional call.
      *
@@ -1374,14 +1261,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1391,8 +1276,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1403,13 +1286,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1418,8 +1301,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1430,14 +1311,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1445,8 +1327,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1457,22 +1337,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1483,7 +1359,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1493,8 +1368,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1505,14 +1378,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1522,21 +1393,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1545,22 +1414,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1568,37 +1436,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1608,22 +1469,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1633,61 +1490,41 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> - documentInputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDocumentInputConfig( - com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder setDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1701,15 +1538,11 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder builderForValue) { @@ -1723,23 +1556,17 @@ public Builder setDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDocumentInputConfig( - com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && documentInputConfig_ != null - && documentInputConfig_ - != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + documentInputConfig_ != null && + documentInputConfig_ != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1752,15 +1579,11 @@ public Builder mergeDocumentInputConfig( return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1773,66 +1596,48 @@ public Builder clearDocumentInputConfig() { return this; } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder - getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder - getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() - : documentInputConfig_; + return documentInputConfig_ == null ? + com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; } } /** - * - * *
      * Required. Input configurations.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), getParentForChildren(), isClean()); + documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), + getParentForChildren(), + isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1840,13 +1645,8 @@ public Builder clearDocumentInputConfig() { private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> - documentOutputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1855,18 +1655,13 @@ public Builder clearDocumentInputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1875,24 +1670,17 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1901,12 +1689,9 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDocumentOutputConfig( - com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1920,8 +1705,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1930,9 +1713,7 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder builderForValue) { @@ -1946,8 +1727,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1956,17 +1735,13 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDocumentOutputConfig( - com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && documentOutputConfig_ != null - && documentOutputConfig_ - != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + documentOutputConfig_ != null && + documentOutputConfig_ != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -1979,8 +1754,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1989,9 +1762,7 @@ public Builder mergeDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2004,8 +1775,6 @@ public Builder clearDocumentOutputConfig() { return this; } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2014,19 +1783,14 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder - getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2035,23 +1799,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null - ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? + com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } } /** - * - * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -2060,22 +1818,17 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), getParentForChildren(), isClean()); + documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), + getParentForChildren(), + isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2083,8 +1836,6 @@ public Builder clearDocumentOutputConfig() { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2102,13 +1853,13 @@ public Builder clearDocumentOutputConfig() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2117,8 +1868,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2136,14 +1885,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2151,8 +1901,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2170,22 +1918,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2203,7 +1947,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2213,8 +1956,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2232,14 +1973,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2249,67 +1988,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2323,17 +2042,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2347,26 +2062,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2379,17 +2087,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2402,90 +2106,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2494,13 +2182,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2516,21 +2201,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2550,8 +2234,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2567,19 +2249,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2595,25 +2275,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2628,22 +2306,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2658,20 +2337,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2686,14 +2362,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2703,12 +2381,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateDocumentRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest();
   }
@@ -2717,27 +2395,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateDocumentRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateDocumentRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2752,4 +2430,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
similarity index 78%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
index 0d7adac307e9..6e25f8caa4f9 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateDocumentRequestOrBuilder
-    extends
+public interface TranslateDocumentRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Location to make a regional call.
    *
@@ -41,13 +23,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Location to make a regional call.
    *
@@ -63,14 +42,12 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -81,13 +58,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -98,82 +72,61 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The documentInputConfig. */ com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig(); /** - * - * *
    * Required. Input configurations.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -182,16 +135,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -200,16 +148,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentOutputConfig. */ com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig(); /** - * - * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -218,16 +161,11 @@ public interface TranslateDocumentRequestOrBuilder
    * the same as the input file's mime type.
    * 
* - * - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -245,13 +183,10 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -269,62 +204,45 @@ public interface TranslateDocumentRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -341,8 +259,6 @@ public interface TranslateDocumentRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -357,13 +273,15 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -378,10 +296,9 @@ public interface TranslateDocumentRequestOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -397,13 +314,11 @@ public interface TranslateDocumentRequestOrBuilder
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -418,5 +333,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
similarity index 67%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
index 08635eb4923a..e7e13e27cd26 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
@@ -1,78 +1,56 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateDocumentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -80,25 +58,18 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } /** - * - * *
    * Translated document.
    * 
@@ -106,27 +77,20 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTransla * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -134,52 +98,37 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -192,7 +141,6 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumen
    * 
* * string model = 3; - * * @return The model. */ @java.lang.Override @@ -201,15 +149,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -222,15 +169,16 @@ public java.lang.String getModel() {
    * 
* * string model = 3; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -241,14 +189,11 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -256,25 +201,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -282,15 +220,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +236,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -325,18 +260,19 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getGlossaryDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -346,27 +282,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = - (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation() + .equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) - return false; + if (!getGlossaryDocumentTranslation() + .equals(other.getGlossaryDocumentTranslation())) return false; } - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -399,136 +337,131 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.cloud.translate.v3beta1.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -553,14 +486,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance(); } @@ -575,36 +507,31 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = - new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { + private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = - documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = - glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -612,39 +539,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse)other); } else { super.mergeFrom(other); return this; @@ -652,9 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentResponse other) { - if (other - == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -695,39 +619,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -737,60 +660,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> - documentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> documentTranslationBuilder_; /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder setDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -804,8 +712,6 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -824,21 +730,17 @@ public Builder setDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && documentTranslation_ != null - && documentTranslation_ - != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + documentTranslation_ != null && + documentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -851,8 +753,6 @@ public Builder mergeDocumentTranslation( return this; } /** - * - * *
      * Translated document.
      * 
@@ -870,42 +770,33 @@ public Builder clearDocumentTranslation() { return this; } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder - getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : documentTranslation_; + return documentTranslation_ == null ? + com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; } } /** - * - * *
      * Translated document.
      * 
@@ -913,17 +804,14 @@ public Builder clearDocumentTranslation() { * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getDocumentTranslation(), getParentForChildren(), isClean()); + documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getDocumentTranslation(), + getParentForChildren(), + isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -931,67 +819,47 @@ public Builder clearDocumentTranslation() { private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> - glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public Builder setGlossaryDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1005,17 +873,13 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3beta1.DocumentTranslation.Builder builderForValue) { @@ -1029,25 +893,19 @@ public Builder setGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public Builder mergeGlossaryDocumentTranslation( - com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && glossaryDocumentTranslation_ != null - && glossaryDocumentTranslation_ - != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + glossaryDocumentTranslation_ != null && + glossaryDocumentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -1060,17 +918,13 @@ public Builder mergeGlossaryDocumentTranslation( return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1083,72 +937,54 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder - getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null - ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() - : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null ? + com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; } } /** - * - * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); + glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), + getParentForChildren(), + isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -1156,8 +992,6 @@ public Builder clearGlossaryDocumentTranslation() { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1170,13 +1004,13 @@ public Builder clearGlossaryDocumentTranslation() {
      * 
* * string model = 3; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1185,8 +1019,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1199,14 +1031,15 @@ public java.lang.String getModel() {
      * 
* * string model = 3; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1214,8 +1047,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1228,22 +1059,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 3; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1256,7 +1083,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 3; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -1266,8 +1092,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1280,14 +1104,12 @@ public Builder clearModel() {
      * 
* * string model = 3; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1297,58 +1119,41 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1362,14 +1167,11 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1383,23 +1185,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1412,14 +1208,11 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1432,70 +1225,55 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1505,13 +1283,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) - private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(); } @@ -1520,27 +1297,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1555,4 +1332,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java similarity index 79% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java index f107a6051686..a4631438ec4c 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateDocumentResponseOrBuilder - extends +public interface TranslateDocumentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; - * * @return The documentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation(); /** - * - * *
    * Translated document.
    * 
@@ -59,53 +35,39 @@ public interface TranslateDocumentResponseOrBuilder com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation(); /** - * - * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; - * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; */ - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder - getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -118,13 +80,10 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -137,44 +96,35 @@ public interface TranslateDocumentResponseOrBuilder
    * 
* * string model = 3; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java similarity index 67% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java index 78be4e17b6f2..a99f5402f33e 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -28,55 +11,49 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranslateTextGlossaryConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
-   *
-   *
    * 
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ @java.lang.Override @@ -85,30 +62,30 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -119,15 +96,12 @@ public com.google.protobuf.ByteString getGlossaryBytes() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -136,7 +110,6 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -168,7 +142,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,16 +153,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = - (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; - if (!getGlossary().equals(other.getGlossary())) return false; - if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (!getGlossary() + .equals(other.getGlossary())) return false; + if (getIgnoreCase() + != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,111 +178,106 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { + public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -314,32 +285,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,14 +322,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance();
     }
 
@@ -372,17 +343,13 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result =
-          new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
+    private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.glossary_ = glossary_;
@@ -396,39 +363,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -436,9 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other) {
-      if (other
-          == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -473,25 +437,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                glossary_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                ignoreCase_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              glossary_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              ignoreCase_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -501,26 +462,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
-     *
-     *
      * 
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -529,22 +487,21 @@ public java.lang.String getGlossary() { } } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString getGlossaryBytes() { + public com.google.protobuf.ByteString + getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); glossary_ = b; return b; } else { @@ -552,37 +509,30 @@ public com.google.protobuf.ByteString getGlossaryBytes() { } } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -592,22 +542,18 @@ public Builder clearGlossary() { return this; } /** - * - * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGlossaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -615,17 +561,14 @@ public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { return this; } - private boolean ignoreCase_; + private boolean ignoreCase_ ; /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ @java.lang.Override @@ -633,15 +576,12 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -653,15 +593,12 @@ public Builder setIgnoreCase(boolean value) { return this; } /** - * - * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -670,9 +607,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -682,43 +619,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) - private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,8 +665,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java similarity index 61% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java index 25b7f1dab52b..e89e78055fa2 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java @@ -1,65 +1,41 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextGlossaryConfigOrBuilder - extends +public interface TranslateTextGlossaryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The glossary. */ java.lang.String getGlossary(); /** - * - * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for glossary. */ - com.google.protobuf.ByteString getGlossaryBytes(); + com.google.protobuf.ByteString + getGlossaryBytes(); /** - * - * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java similarity index 73% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java index 9202f20107c6..910b2c66cff2 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java @@ -1,44 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** - * - * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ -public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranslateTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextRequest) TranslateTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranslateTextRequest() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -48,44 +31,41 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -94,15 +74,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { return contents_; } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -111,15 +89,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -128,7 +103,6 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -136,8 +110,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -146,28 +118,24 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ @java.lang.Override @@ -176,30 +144,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -208,12 +176,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -223,7 +188,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ @java.lang.Override @@ -232,15 +196,14 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -250,15 +213,16 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -267,19 +231,15 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ @java.lang.Override @@ -288,30 +248,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -320,12 +280,9 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } public static final int PARENT_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -343,10 +300,7 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -355,15 +309,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -381,18 +334,17 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -401,12 +353,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -427,7 +376,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ @java.lang.Override @@ -436,15 +384,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -465,15 +412,16 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -484,18 +432,13 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -503,76 +446,60 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -587,21 +514,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -620,8 +546,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -636,19 +560,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -663,11 +585,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -675,7 +597,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -687,7 +608,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -709,8 +631,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        10);
     getUnknownFields().writeTo(output);
   }
 
@@ -741,20 +667,21 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -764,25 +691,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextRequest other =
-        (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
-
-    if (!getContentsList().equals(other.getContentsList())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
-    if (!getParent().equals(other.getParent())) return false;
-    if (!getModel().equals(other.getModel())) return false;
+    com.google.cloud.translate.v3beta1.TranslateTextRequest other = (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
+
+    if (!getContentsList()
+        .equals(other.getContentsList())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode()
+        .equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode()
+        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (!getModel()
+        .equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig()
+          .equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -822,161 +756,159 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextRequest) com.google.cloud.translate.v3beta1.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateTextRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -992,9 +924,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @java.lang.Override @@ -1013,11 +945,8 @@ public com.google.cloud.translate.v3beta1.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateTextRequest result = - new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.TranslateTextRequest result = new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1044,8 +973,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1057,39 +987,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest) other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1097,8 +1026,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1137,7 +1065,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1165,68 +1094,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1236,12 +1156,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1249,8 +1167,6 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1259,16 +1175,14 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList getContentsList() { + public com.google.protobuf.ProtocolStringList + getContentsList() { contents_.makeImmutable(); return contents_; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1277,15 +1191,12 @@ public com.google.protobuf.ProtocolStringList getContentsList() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1294,7 +1205,6 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1302,8 +1212,6 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1312,16 +1220,14 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString getContentsBytes(int index) { + public com.google.protobuf.ByteString + getContentsBytes(int index) { return contents_.getByteString(index); } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1330,15 +1236,13 @@ public com.google.protobuf.ByteString getContentsBytes(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContents( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1346,8 +1250,6 @@ public Builder setContents(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1356,14 +1258,12 @@ public Builder setContents(int index, java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContents( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1371,8 +1271,6 @@ public Builder addContents(java.lang.String value) { return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1381,20 +1279,19 @@ public Builder addContents(java.lang.String value) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents(java.lang.Iterable values) { + public Builder addAllContents( + java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1403,19 +1300,16 @@ public Builder addAllContents(java.lang.Iterable values) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + contents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1424,14 +1318,12 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1442,21 +1334,19 @@ public Builder addContentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1465,22 +1355,21 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1488,37 +1377,30 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1528,22 +1410,18 @@ public Builder clearMimeType() { return this; } /** - * - * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1553,8 +1431,6 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceLanguageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1564,13 +1440,13 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1579,8 +1455,6 @@ public java.lang.String getSourceLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1590,14 +1464,15 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString + getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1605,8 +1480,6 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1616,22 +1489,18 @@ public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1641,7 +1510,6 @@ public Builder setSourceLanguageCode(java.lang.String value) {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1651,8 +1519,6 @@ public Builder clearSourceLanguageCode() { return this; } /** - * - * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1662,14 +1528,12 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1679,21 +1543,19 @@ public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetLanguageCode_ = ""; /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1702,22 +1564,21 @@ public java.lang.String getTargetLanguageCode() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString + getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1725,37 +1586,30 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { } } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1765,22 +1619,18 @@ public Builder clearTargetLanguageCode() { return this; } /** - * - * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1790,8 +1640,6 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1809,16 +1657,14 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1827,8 +1673,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1846,17 +1690,16 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1864,8 +1707,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1883,25 +1724,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1919,10 +1754,7 @@ public Builder setParent(java.lang.String value) {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1932,8 +1764,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1951,17 +1781,13 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1971,8 +1797,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1993,13 +1817,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2008,8 +1832,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2030,14 +1852,15 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2045,8 +1868,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2067,22 +1888,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2103,7 +1920,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2113,8 +1929,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2135,14 +1949,12 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2152,67 +1964,47 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2226,17 +2018,13 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2250,26 +2038,19 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2282,17 +2063,13 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2305,90 +2082,74 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2397,13 +2158,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2418,21 +2176,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2451,8 +2208,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2467,19 +2222,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2494,25 +2247,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2526,22 +2277,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2555,20 +2307,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2582,14 +2331,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2599,12 +2350,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateTextRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextRequest();
   }
@@ -2613,27 +2364,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TranslateTextRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TranslateTextRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2648,4 +2399,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
similarity index 81%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
index a2b67beb8821..8c4f854d1c1f 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateTextRequestOrBuilder
-    extends
+public interface TranslateTextRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -34,13 +16,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the contents. */ - java.util.List getContentsList(); + java.util.List + getContentsList(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -49,13 +29,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of contents. */ int getContentsCount(); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -64,14 +41,11 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** - * - * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -80,42 +54,35 @@ public interface TranslateTextRequestOrBuilder
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString getContentsBytes(int index); + com.google.protobuf.ByteString + getContentsBytes(int index); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -125,13 +92,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -141,41 +105,34 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString + getSourceLanguageCodeBytes(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** - * - * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString + getTargetLanguageCodeBytes(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -193,16 +150,11 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -220,17 +172,13 @@ public interface TranslateTextRequestOrBuilder
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -251,13 +199,10 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Optional. The `model` type requested for this translation.
    *
@@ -278,62 +223,45 @@ public interface TranslateTextRequestOrBuilder
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** - * - * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -349,8 +277,6 @@ public interface TranslateTextRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -364,13 +290,15 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -384,10 +312,9 @@ public interface TranslateTextRequestOrBuilder
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -402,13 +329,11 @@ public interface TranslateTextRequestOrBuilder
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -422,5 +347,6 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
similarity index 78%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
index 133b0fc1347a..b4ef91e7dab4 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
@@ -1,34 +1,20 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-/** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
-public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+/**
+ * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
+ */
+public final class TranslateTextResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -36,32 +22,28 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto
-        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -75,8 +57,6 @@ public java.util.List getTransla
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -86,13 +66,11 @@ public java.util.List getTransla
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -106,8 +84,6 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -121,8 +97,6 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
     return translations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -138,12 +112,9 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -155,13 +126,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getGlossaryTranslationsList() {
+  public java.util.List getGlossaryTranslationsList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -173,13 +141,11 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -195,8 +161,6 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -212,8 +176,6 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
     return glossaryTranslations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -231,7 +193,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -243,7 +204,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -260,11 +222,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,16 +237,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextResponse other =
-        (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3beta1.TranslateTextResponse other = (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
 
-    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList()
+        .equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList()
+        .equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -309,128 +273,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
       com.google.cloud.translate.v3beta1.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +416,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto
-          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -474,18 +437,14 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextResponse result =
-          new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
+      com.google.cloud.translate.v3beta1.TranslateTextResponse result = new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -514,39 +473,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextRespo
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse) other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -554,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance()) return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -574,10 +531,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTranslationsFieldBuilder()
-                    : null;
+            translationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTranslationsFieldBuilder() : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -601,10 +557,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getGlossaryTranslationsFieldBuilder()
-                    : null;
+            glossaryTranslationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getGlossaryTranslationsFieldBuilder() : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -636,39 +591,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.translate.v3beta1.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
-                if (translationsBuilder_ == null) {
-                  ensureTranslationsIsMutable();
-                  translations_.add(m);
-                } else {
-                  translationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 26:
-              {
-                com.google.cloud.translate.v3beta1.Translation m =
-                    input.readMessage(
-                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
-                if (glossaryTranslationsBuilder_ == null) {
-                  ensureGlossaryTranslationsIsMutable();
-                  glossaryTranslations_.add(m);
-                } else {
-                  glossaryTranslationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.translate.v3beta1.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3beta1.Translation.parser(),
+                      extensionRegistry);
+              if (translationsBuilder_ == null) {
+                ensureTranslationsIsMutable();
+                translations_.add(m);
+              } else {
+                translationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 26: {
+              com.google.cloud.translate.v3beta1.Translation m =
+                  input.readMessage(
+                      com.google.cloud.translate.v3beta1.Translation.parser(),
+                      extensionRegistry);
+              if (glossaryTranslationsBuilder_ == null) {
+                ensureGlossaryTranslationsIsMutable();
+                glossaryTranslations_.add(m);
+              } else {
+                glossaryTranslationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -678,29 +632,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List translations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ =
-            new java.util.ArrayList(translations_);
+        translations_ = new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
-        translationsBuilder_;
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> translationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -717,8 +663,6 @@ public java.util.List getTransla
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -735,8 +679,6 @@ public int getTranslationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -753,8 +695,6 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -778,8 +718,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -800,8 +738,6 @@ public Builder setTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -824,8 +760,6 @@ public Builder addTranslations(com.google.cloud.translate.v3beta1.Translation va
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -849,8 +783,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -871,8 +803,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -893,8 +823,6 @@ public Builder addTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -907,7 +835,8 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -915,8 +844,6 @@ public Builder addAllTranslations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -936,8 +863,6 @@ public Builder clearTranslations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -957,8 +882,6 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -972,8 +895,6 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -985,14 +906,11 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
     public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
         int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);
-      } else {
+        return translations_.get(index);  } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1001,8 +919,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsOrBuilderList() {
+    public java.util.List 
+         getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1010,8 +928,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
       }
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1021,12 +937,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder()
-          .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1037,12 +951,10 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder(
         int index) {
-      return getTranslationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder().addBuilder(
+          index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -1051,49 +963,38 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List
-        getTranslationsBuilderList() {
+    public java.util.List 
+         getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> 
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.translate.v3beta1.Translation,
-                com.google.cloud.translate.v3beta1.Translation.Builder,
-                com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
-                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
+                translations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ =
-            new java.util.ArrayList(
-                glossaryTranslations_);
+        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation,
-            com.google.cloud.translate.v3beta1.Translation.Builder,
-            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
-        glossaryTranslationsBuilder_;
+        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> glossaryTranslationsBuilder_;
 
     /**
-     *
-     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1102,11 +1003,9 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsList() { + public java.util.List getGlossaryTranslationsList() { if (glossaryTranslationsBuilder_ == null) { return java.util.Collections.unmodifiableList(glossaryTranslations_); } else { @@ -1114,8 +1013,6 @@ private void ensureGlossaryTranslationsIsMutable() { } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1124,8 +1021,7 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public int getGlossaryTranslationsCount() { if (glossaryTranslationsBuilder_ == null) { @@ -1135,8 +1031,6 @@ public int getGlossaryTranslationsCount() { } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1145,8 +1039,7 @@ public int getGlossaryTranslationsCount() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1156,8 +1049,6 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1166,8 +1057,7 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1184,8 +1074,6 @@ public Builder setGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1194,8 +1082,7 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1209,8 +1096,6 @@ public Builder setGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1219,8 +1104,7 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Translation value) { if (glossaryTranslationsBuilder_ == null) { @@ -1236,8 +1120,6 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1246,8 +1128,7 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1264,8 +1145,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1274,8 +1153,7 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1289,8 +1167,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1299,8 +1175,7 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1314,8 +1189,6 @@ public Builder addGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1324,14 +1197,14 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder addAllGlossaryTranslations( java.lang.Iterable values) { if (glossaryTranslationsBuilder_ == null) { ensureGlossaryTranslationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, glossaryTranslations_); onChanged(); } else { glossaryTranslationsBuilder_.addAllMessages(values); @@ -1339,8 +1212,6 @@ public Builder addAllGlossaryTranslations( return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1349,8 +1220,7 @@ public Builder addAllGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder clearGlossaryTranslations() { if (glossaryTranslationsBuilder_ == null) { @@ -1363,8 +1233,6 @@ public Builder clearGlossaryTranslations() { return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1373,8 +1241,7 @@ public Builder clearGlossaryTranslations() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public Builder removeGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1387,8 +1254,6 @@ public Builder removeGlossaryTranslations(int index) { return this; } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1397,16 +1262,13 @@ public Builder removeGlossaryTranslations(int index) {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTranslationsBuilder( int index) { return getGlossaryTranslationsFieldBuilder().getBuilder(index); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1415,20 +1277,16 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTranslationsOrBuilder( int index) { if (glossaryTranslationsBuilder_ == null) { - return glossaryTranslations_.get(index); - } else { + return glossaryTranslations_.get(index); } else { return glossaryTranslationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1437,11 +1295,10 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsOrBuilderList() { + public java.util.List + getGlossaryTranslationsOrBuilderList() { if (glossaryTranslationsBuilder_ != null) { return glossaryTranslationsBuilder_.getMessageOrBuilderList(); } else { @@ -1449,8 +1306,6 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl } } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1459,16 +1314,13 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder() { - return getGlossaryTranslationsFieldBuilder() - .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder().addBuilder( + com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1477,17 +1329,14 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder( int index) { - return getGlossaryTranslationsFieldBuilder() - .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder().addBuilder( + index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** - * - * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1496,25 +1345,18 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; - * + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; */ - public java.util.List - getGlossaryTranslationsBuilderList() { + public java.util.List + getGlossaryTranslationsBuilderList() { return getGlossaryTranslationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, - com.google.cloud.translate.v3beta1.Translation.Builder, - com.google.cloud.translate.v3beta1.TranslationOrBuilder> + com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> getGlossaryTranslationsFieldBuilder() { if (glossaryTranslationsBuilder_ == null) { - glossaryTranslationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, - com.google.cloud.translate.v3beta1.Translation.Builder, - com.google.cloud.translate.v3beta1.TranslationOrBuilder>( + glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>( glossaryTranslations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1523,9 +1365,9 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla } return glossaryTranslationsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1535,12 +1377,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextResponse) private static final com.google.cloud.translate.v3beta1.TranslateTextResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextResponse(); } @@ -1549,27 +1391,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1584,4 +1426,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java similarity index 85% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java index c887d44f9b2a..3fb798bbb0fa 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextResponseOrBuilder - extends +public interface TranslateTextResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -34,10 +16,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List getTranslationsList();
+  java.util.List 
+      getTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -48,8 +29,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -60,8 +39,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -70,11 +47,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List
+  java.util.List 
       getTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -83,11 +58,10 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(int index);
+  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -98,10 +72,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List getGlossaryTranslationsList();
+  java.util.List 
+      getGlossaryTranslationsList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -114,8 +87,6 @@ public interface TranslateTextResponseOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index);
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -128,8 +99,6 @@ public interface TranslateTextResponseOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -140,11 +109,9 @@ public interface TranslateTextResponseOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List
+  java.util.List 
       getGlossaryTranslationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
similarity index 72%
rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
index 7731461b8598..5ad5286246b5 100644
--- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
+++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
- *
- *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ -public final class Translation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Translation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Translation) TranslationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Translation() { translatedText_ = ""; model_ = ""; @@ -45,32 +27,28 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, - com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string translated_text = 1; - * * @return The translatedText. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -103,15 +79,16 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -138,7 +112,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
    * 
* * string model = 2; - * * @return The model. */ @java.lang.Override @@ -147,15 +120,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -168,15 +140,16 @@ public java.lang.String getModel() {
    * 
* * string model = 2; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -185,12 +158,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -199,7 +169,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ @java.lang.Override @@ -208,15 +177,14 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -225,15 +193,16 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -244,14 +213,11 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -259,25 +225,18 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } /** - * - * *
    * The `glossary_config` used for this translation.
    * 
@@ -285,15 +244,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -334,7 +290,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -347,20 +304,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Translation other = - (com.google.cloud.translate.v3beta1.Translation) obj; + com.google.cloud.translate.v3beta1.Translation other = (com.google.cloud.translate.v3beta1.Translation) obj; - if (!getTranslatedText().equals(other.getTranslatedText())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText() + .equals(other.getTranslatedText())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getDetectedLanguageCode() + .equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig() + .equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -388,136 +348,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Translation) com.google.cloud.translate.v3beta1.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, - com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Translation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto - .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override @@ -555,11 +511,8 @@ public com.google.cloud.translate.v3beta1.Translation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Translation buildPartial() { - com.google.cloud.translate.v3beta1.Translation result = - new com.google.cloud.translate.v3beta1.Translation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.translate.v3beta1.Translation result = new com.google.cloud.translate.v3beta1.Translation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -576,8 +529,9 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = - glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = glossaryConfigBuilder_ == null + ? glossaryConfig_ + : glossaryConfigBuilder_.build(); } } @@ -585,39 +539,38 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Translation) { - return mergeFrom((com.google.cloud.translate.v3beta1.Translation) other); + return mergeFrom((com.google.cloud.translate.v3beta1.Translation)other); } else { super.mergeFrom(other); return this; @@ -670,37 +623,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getGlossaryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,13 +660,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object translatedText_ = ""; /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -724,13 +671,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; - * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -739,8 +686,6 @@ public java.lang.String getTranslatedText() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -748,14 +693,15 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString getTranslatedTextBytes() { + public com.google.protobuf.ByteString + getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); translatedText_ = b; return b; } else { @@ -763,8 +709,6 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() { } } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -772,22 +716,18 @@ public com.google.protobuf.ByteString getTranslatedTextBytes() {
      * 
* * string translated_text = 1; - * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -795,7 +735,6 @@ public Builder setTranslatedText(java.lang.String value) {
      * 
* * string translated_text = 1; - * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -805,8 +744,6 @@ public Builder clearTranslatedText() { return this; } /** - * - * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -814,14 +751,12 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; - * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranslatedTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -831,8 +766,6 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -845,13 +778,13 @@ public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 2; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -860,8 +793,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -874,14 +805,15 @@ public java.lang.String getModel() {
      * 
* * string model = 2; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -889,8 +821,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -903,22 +833,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 2; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -931,7 +857,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 2; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -941,8 +866,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -955,14 +878,12 @@ public Builder clearModel() {
      * 
* * string model = 2; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -972,8 +893,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object detectedLanguageCode_ = ""; /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -982,13 +901,13 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -997,8 +916,6 @@ public java.lang.String getDetectedLanguageCode() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1007,14 +924,15 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -1022,8 +940,6 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { } } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1032,22 +948,18 @@ public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() {
      * 
* * string detected_language_code = 4; - * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1056,7 +968,6 @@ public Builder setDetectedLanguageCode(java.lang.String value) {
      * 
* * string detected_language_code = 4; - * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -1066,8 +977,6 @@ public Builder clearDetectedLanguageCode() { return this; } /** - * - * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -1076,14 +985,12 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; - * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetectedLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1093,58 +1000,41 @@ public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> - glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1158,14 +1048,11 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1179,23 +1066,17 @@ public Builder setGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig( - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && glossaryConfig_ != null - && glossaryConfig_ - != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + glossaryConfig_ != null && + glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1208,14 +1089,11 @@ public Builder mergeGlossaryConfig( return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1228,70 +1106,55 @@ public Builder clearGlossaryConfig() { return this; } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder - getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null - ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() - : glossaryConfig_; + return glossaryConfig_ == null ? + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; } } /** - * - * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), getParentForChildren(), isClean()); + glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), + getParentForChildren(), + isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1301,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Translation) private static final com.google.cloud.translate.v3beta1.Translation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Translation(); } @@ -1315,27 +1178,27 @@ public static com.google.cloud.translate.v3beta1.Translation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java similarity index 78% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java index 0708e2df6059..ed3732dfbd34 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslationOrBuilder - extends +public interface TranslationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Translation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -33,13 +15,10 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The translatedText. */ java.lang.String getTranslatedText(); /** - * - * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -47,14 +26,12 @@ public interface TranslationOrBuilder
    * 
* * string translated_text = 1; - * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString getTranslatedTextBytes(); + com.google.protobuf.ByteString + getTranslatedTextBytes(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -67,13 +44,10 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -86,14 +60,12 @@ public interface TranslationOrBuilder
    * 
* * string model = 2; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -102,13 +74,10 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** - * - * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -117,44 +86,35 @@ public interface TranslationOrBuilder
    * 
* * string detected_language_code = 4; - * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString + getDetectedLanguageCodeBytes(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; - * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** - * - * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder - getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java new file mode 100644 index 000000000000..47f86e7725fd --- /dev/null +++ b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java @@ -0,0 +1,882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/translate/v3beta1/transla" + + "tion_service.proto\022 google.cloud.transla" + + "tion.v3beta1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032#google/longrunning/operations.p" + + "roto\032\037google/protobuf/timestamp.proto\"P\n" + + "\033TranslateTextGlossaryConfig\022\026\n\010glossary" + + "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" + + "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" + + "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" + + "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" + + "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" + + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" + + "onfig\030\007 \001(\0132=.google.cloud.translation.v" + + "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" + + "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" + + "ion.v3beta1.TranslateTextRequest.LabelsE" + + "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" + + "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" + + ".translation.v3beta1.Translation\022L\n\025glos" + + "sary_translations\030\003 \003(\0132-.google.cloud.t" + + "ranslation.v3beta1.Translation\"\255\001\n\013Trans" + + "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" + + "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" + + "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" + + "ranslation.v3beta1.TranslateTextGlossary" + + "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" + + "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." + + "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" + + "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" + + "\006labels\030\006 \003(\0132C.google.cloud.translation" + + ".v3beta1.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" + + "nguages\030\001 \003(\01322.google.cloud.translation" + + ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" + + "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" + + "\372A#\n!locations.googleapis.com/Location\022#" + + "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" + + "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" + + "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" + + "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" + + "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" + + "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" + + "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" + + "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" + + "(\0132+.google.cloud.translation.v3beta1.Gc" + + "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" + + "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" + + "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" + + ".cloud.translation.v3beta1.GcsDestinatio" + + "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" + + "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" + + "\0132+.google.cloud.translation.v3beta1.Gcs" + + "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" + + "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" + + "n\030\001 \001(\01320.google.cloud.translation.v3bet" + + "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" + + " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" + + "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" + + "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" + + "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" + + "_input_config\030\004 \001(\01325.google.cloud.trans" + + "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" + + "\022\\\n\026document_output_config\030\005 \001(\01326.googl" + + "e.cloud.translation.v3beta1.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" + + "lossary_config\030\007 \001(\0132=.google.cloud.tran" + + "slation.v3beta1.TranslateTextGlossaryCon" + + "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" + + ".translation.v3beta1.TranslateDocumentRe" + + "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" + + "nse\022S\n\024document_translation\030\001 \001(\01325.goog" + + "le.cloud.translation.v3beta1.DocumentTra" + + "nslation\022\\\n\035glossary_document_translatio" + + "n\030\002 \001(\01325.google.cloud.translation.v3bet" + + "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" + + "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" + + "anslation.v3beta1.TranslateTextGlossaryC" + + "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022\"\n\024source_language_code\030" + + "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" + + "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." + + "translation.v3beta1.BatchTranslateTextRe" + + "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" + + "\030\005 \003(\0132-.google.cloud.translation.v3beta" + + "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" + + "(\0132..google.cloud.translation.v3beta1.Ou" + + "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" + + "oogle.cloud.translation.v3beta1.BatchTra" + + "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" + + "]\n\006labels\030\t \003(\0132G.google.cloud.translati" + + "on.v3beta1.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" + + "oud.translation.v3beta1.TranslateTextGlo" + + "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" + + "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." + + "translation.v3beta1.BatchTranslateMetada" + + "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" + + "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" + + "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" + + "_characters\030\001 \001(\003\022\035\n\025translated_characte" + + "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" + + "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" + + "_source\030\001 \001(\0132+.google.cloud.translation" + + ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" + + "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" + + "\030\003 \001(\0132;.google.cloud.translation.v3beta" + + "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" + + "e_codes_set\030\004 \001(\0132;.google.cloud.transla" + + "tion.v3beta1.Glossary.LanguageCodesSetH\000" + + "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" + + "anslation.v3beta1.GlossaryInputConfig\022\031\n" + + "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" + + "e_language_code\030\001 \001(\t\022\034\n\024target_language" + + "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" + + "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" + + "is.com/Glossary\022=projects/{project}/loca" + + "tions/{location}/glossaries/{glossary}B\013" + + "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" + + "ogle.cloud.translation.v3beta1.GlossaryB" + + "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" + + "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" + + "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" + + " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" + + "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" + + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + + "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" + + "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" + + "ssaries\030\001 \003(\0132*.google.cloud.translation" + + ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " + + "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" + + "ation.v3beta1.CreateGlossaryMetadata.Sta" + + "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" + + "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" + + "tate\030\002 \001(\0162>.google.cloud.translation.v3" + + "beta1.DeleteGlossaryMetadata.State\022/\n\013su" + + "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" + + "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" + + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" + + "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + + "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" + + "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" + + "pis.com/Location\022\"\n\024source_language_code" + + "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " + + "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" + + "e.cloud.translation.v3beta1.BatchDocumen" + + "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" + + "\0132;.google.cloud.translation.v3beta1.Bat" + + "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" + + " \003(\0132K.google.cloud.translation.v3beta1." + + "BatchTranslateDocumentRequest.ModelsEntr" + + "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" + + "ud.translation.v3beta1.BatchTranslateDoc" + + "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" + + "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" + + "anslation.v3beta1.BatchTranslateDocument" + + "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" + + "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" + + "alue\030\002 \001(\0132=.google.cloud.translation.v3" + + "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + + "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" + + "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" + + "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" + + "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" + + "tination\030\001 \001(\01320.google.cloud.translatio" + + "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" + + "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" + + "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " + + "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" + + "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" + + "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" + + "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" + + "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" + + "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" + + "F.google.cloud.translation.v3beta1.Batch" + + "TranslateDocumentMetadata.State\022\023\n\013total" + + "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" + + "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" + + "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" + + "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" + + "aracters\030\010 \001(\003\022!\n\031total_billable_charact" + + "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." + + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + + "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" + + "xt\0226.google.cloud.translation.v3beta1.Tr" + + "anslateTextRequest\0327.google.cloud.transl" + + "ation.v3beta1.TranslateTextResponse\"r\202\323\344" + + "\223\002l\"6/v3beta1/{parent=projects/*/locatio" + + "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" + + "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" + + "ctLanguage\0227.google.cloud.translation.v3" + + "beta1.DetectLanguageRequest\0328.google.clo" + + "ud.translation.v3beta1.DetectLanguageRes" + + "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" + + "7/v3beta1/{parent=projects/*/locations/*" + + "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" + + "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" + + "portedLanguages\022>.google.cloud.translati" + + "on.v3beta1.GetSupportedLanguagesRequest\032" + + "4.google.cloud.translation.v3beta1.Suppo" + + "rtedLanguages\"\233\001\332A\"parent,display_langua" + + "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z1\022//v3beta1/{parent=projects/*}/support" + + "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" + + "le.cloud.translation.v3beta1.TranslateDo" + + "cumentRequest\032;.google.cloud.translation" + + ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" + + "\002?\":/v3beta1/{parent=projects/*/location" + + "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" + + "lateText\022;.google.cloud.translation.v3be" + + "ta1.BatchTranslateTextRequest\032\035.google.l" + + "ongrunning.Operation\"y\312A0\n\026BatchTranslat" + + "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" + + ";/v3beta1/{parent=projects/*/locations/*" + + "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" + + "teDocument\022?.google.cloud.translation.v3" + + "beta1.BatchTranslateDocumentRequest\032\035.go" + + "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" + + "ranslateDocumentResponse\022\036BatchTranslate" + + "DocumentMetadata\332AMparent,source_languag" + + "e_code,target_language_codes,input_confi" + + "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" + + "loud.translation.v3beta1.CreateGlossaryR" + + "equest\032\035.google.longrunning.Operation\"|\312" + + "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" + + "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" + + "rojects/*/locations/*}/glossaries:\010gloss" + + "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" + + "anslation.v3beta1.ListGlossariesRequest\032" + + "8.google.cloud.translation.v3beta1.ListG" + + "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" + + "5\0223/v3beta1/{parent=projects/*/locations" + + "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." + + "cloud.translation.v3beta1.GetGlossaryReq" + + "uest\032*.google.cloud.translation.v3beta1." + + "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" + + "projects/*/locations/*/glossaries/*}\022\337\001\n" + + "\016DeleteGlossary\0227.google.cloud.translati" + + "on.v3beta1.DeleteGlossaryRequest\032\035.googl" + + "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" + + "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" + + "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" + + "ations/*/glossaries/*}\032~\312A\030translate.goo" + + "gleapis.com\322A`https://www.googleapis.com" + + "/auth/cloud-platform,https://www.googlea" + + "pis.com/auth/cloud-translationB\360\001\n\"com.g" + + "oogle.cloud.translate.v3beta1B\027Translati" + + "onServiceProtoP\001ZFcloud.google.com/go/tr" + + "anslation/apiv3beta1/translationpb;trans" + + "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" + + "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" + + "Google::Cloud::Translate::V3beta1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { "Glossary", "IgnoreCase", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, + new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, + new java.lang.String[] { "Translations", "GlossaryTranslations", }); + internal_static_google_cloud_translation_v3beta1_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Translation_descriptor, + new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, + new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "Confidence", }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, + new java.lang.String[] { "Languages", }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, + new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, + new java.lang.String[] { "InputUri", }); + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, + new java.lang.String[] { "MimeType", "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, + new java.lang.String[] { "OutputUriPrefix", }); + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, + new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, + new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, + new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, + new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, + new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, + new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "Languages", }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { "LanguageCodes", }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, + new java.lang.String[] { "Parent", "Glossary", }); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, + new java.lang.String[] { "Glossaries", "NextPageToken", }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { "Name", "State", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { "GcsSource", "Source", }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto similarity index 100% rename from java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto rename to owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java b/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java rename to owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java From 229e6e256e302d241efe61414cd486bb7716f018 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 28 Jul 2023 19:14:45 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/location/LocationsGrpc.java | 308 ++- .../translate/v3/TranslationServiceGrpc.java | 1502 ++++++++++++ .../google/cloud/location/LocationsGrpc.java | 308 ++- .../v3beta1/TranslationServiceGrpc.java | 1517 +++++++++++++ .../v3/BatchDocumentInputConfig.java | 384 ++-- .../v3/BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3/BatchDocumentOutputConfig.java | 384 ++-- .../BatchDocumentOutputConfigOrBuilder.java | 26 +- .../v3/BatchTranslateDocumentMetadata.java | 782 ++++--- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../v3/BatchTranslateDocumentRequest.java | 1846 +++++++++------ ...atchTranslateDocumentRequestOrBuilder.java | 263 ++- .../v3/BatchTranslateDocumentResponse.java | 712 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../translate/v3/BatchTranslateMetadata.java | 593 +++-- .../v3/BatchTranslateMetadataOrBuilder.java | 41 +- .../translate/v3/BatchTranslateResponse.java | 524 +++-- .../v3/BatchTranslateResponseOrBuilder.java | 43 +- .../v3/BatchTranslateTextRequest.java | 1742 ++++++++------ .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../translate/v3/CreateGlossaryMetadata.java | 565 +++-- .../v3/CreateGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/CreateGlossaryRequest.java | 492 ++-- .../v3/CreateGlossaryRequestOrBuilder.java | 95 + .../translate/v3/DeleteGlossaryMetadata.java | 565 +++-- .../v3/DeleteGlossaryMetadataOrBuilder.java | 41 +- .../translate/v3/DeleteGlossaryRequest.java | 347 +-- .../v3/DeleteGlossaryRequestOrBuilder.java | 54 + .../translate/v3/DeleteGlossaryResponse.java | 491 ++-- .../v3/DeleteGlossaryResponseOrBuilder.java | 43 +- .../translate/v3/DetectLanguageRequest.java | 868 ++++--- .../v3/DetectLanguageRequestOrBuilder.java | 95 +- .../translate/v3/DetectLanguageResponse.java | 405 ++-- .../v3/DetectLanguageResponseOrBuilder.java | 36 +- .../cloud/translate/v3/DetectedLanguage.java | 346 +-- .../v3/DetectedLanguageOrBuilder.java | 30 +- .../translate/v3/DocumentInputConfig.java | 507 +++-- .../v3/DocumentInputConfigOrBuilder.java | 41 +- .../translate/v3/DocumentOutputConfig.java | 495 ++-- .../v3/DocumentOutputConfigOrBuilder.java | 47 +- .../translate/v3/DocumentTranslation.java | 477 ++-- .../v3/DocumentTranslationOrBuilder.java | 45 +- .../cloud/translate/v3/GcsDestination.java | 312 +-- .../translate/v3/GcsDestinationOrBuilder.java | 27 +- .../google/cloud/translate/v3/GcsSource.java | 309 +-- .../translate/v3/GcsSourceOrBuilder.java | 27 +- .../translate/v3/GetGlossaryRequest.java | 347 +-- .../v3/GetGlossaryRequestOrBuilder.java | 54 + .../v3/GetSupportedLanguagesRequest.java | 496 ++-- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../google/cloud/translate/v3/Glossary.java | 1764 +++++++++------ .../translate/v3/GlossaryInputConfig.java | 381 ++-- .../v3/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3/GlossaryName.java | 0 .../cloud/translate/v3/GlossaryOrBuilder.java | 97 +- .../cloud/translate/v3/InputConfig.java | 443 ++-- .../translate/v3/InputConfigOrBuilder.java | 35 +- .../translate/v3/ListGlossariesRequest.java | 524 +++-- .../v3/ListGlossariesRequestOrBuilder.java | 56 +- .../translate/v3/ListGlossariesResponse.java | 480 ++-- .../v3/ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3/LocationName.java | 0 .../cloud/translate/v3/OutputConfig.java | 371 +-- .../translate/v3/OutputConfigOrBuilder.java | 26 +- .../cloud/translate/v3/SupportedLanguage.java | 455 ++-- .../v3/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3/SupportedLanguages.java | 406 ++-- .../v3/SupportedLanguagesOrBuilder.java | 36 +- .../v3/TranslateDocumentRequest.java | 1435 +++++++----- .../v3/TranslateDocumentRequestOrBuilder.java | 162 +- .../v3/TranslateDocumentResponse.java | 697 ++++-- .../TranslateDocumentResponseOrBuilder.java | 63 +- .../v3/TranslateTextGlossaryConfig.java | 356 +-- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../translate/v3/TranslateTextRequest.java | 1153 ++++++---- .../v3/TranslateTextRequestOrBuilder.java | 139 +- .../translate/v3/TranslateTextResponse.java | 549 +++-- .../v3/TranslateTextResponseOrBuilder.java | 54 +- .../cloud/translate/v3/Translation.java | 567 +++-- .../translate/v3/TranslationOrBuilder.java | 53 +- .../translate/v3/TranslationServiceProto.java | 1021 +++++++++ .../translate/v3/translation_service.proto | 0 .../v3beta1/BatchDocumentInputConfig.java | 384 ++-- .../BatchDocumentInputConfigOrBuilder.java | 26 +- .../v3beta1/BatchDocumentOutputConfig.java | 395 ++-- .../BatchDocumentOutputConfigOrBuilder.java | 26 +- .../BatchTranslateDocumentMetadata.java | 818 ++++--- ...tchTranslateDocumentMetadataOrBuilder.java | 56 +- .../BatchTranslateDocumentRequest.java | 1846 +++++++++------ ...atchTranslateDocumentRequestOrBuilder.java | 254 ++- .../BatchTranslateDocumentResponse.java | 733 +++--- ...tchTranslateDocumentResponseOrBuilder.java | 58 +- .../v3beta1/BatchTranslateMetadata.java | 596 +++-- .../BatchTranslateMetadataOrBuilder.java | 41 +- .../v3beta1/BatchTranslateResponse.java | 527 +++-- .../BatchTranslateResponseOrBuilder.java | 43 +- .../v3beta1/BatchTranslateTextRequest.java | 1746 ++++++++------ .../BatchTranslateTextRequestOrBuilder.java | 237 +- .../v3beta1/CreateGlossaryMetadata.java | 568 +++-- .../CreateGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/CreateGlossaryRequest.java | 492 ++-- .../CreateGlossaryRequestOrBuilder.java | 95 + .../v3beta1/DeleteGlossaryMetadata.java | 568 +++-- .../DeleteGlossaryMetadataOrBuilder.java | 41 +- .../v3beta1/DeleteGlossaryRequest.java | 350 +-- .../DeleteGlossaryRequestOrBuilder.java | 54 + .../v3beta1/DeleteGlossaryResponse.java | 494 ++-- .../DeleteGlossaryResponseOrBuilder.java | 43 +- .../v3beta1/DetectLanguageRequest.java | 874 ++++--- .../DetectLanguageRequestOrBuilder.java | 95 +- .../v3beta1/DetectLanguageResponse.java | 396 ++-- .../DetectLanguageResponseOrBuilder.java | 36 +- .../translate/v3beta1/DetectedLanguage.java | 353 +-- .../v3beta1/DetectedLanguageOrBuilder.java | 30 +- .../v3beta1/DocumentInputConfig.java | 507 +++-- .../v3beta1/DocumentInputConfigOrBuilder.java | 41 +- .../v3beta1/DocumentOutputConfig.java | 502 ++-- .../DocumentOutputConfigOrBuilder.java | 47 +- .../v3beta1/DocumentTranslation.java | 480 ++-- .../v3beta1/DocumentTranslationOrBuilder.java | 45 +- .../translate/v3beta1/GcsDestination.java | 319 +-- .../v3beta1/GcsDestinationOrBuilder.java | 27 +- .../cloud/translate/v3beta1/GcsSource.java | 312 +-- .../translate/v3beta1/GcsSourceOrBuilder.java | 27 +- .../translate/v3beta1/GetGlossaryRequest.java | 350 +-- .../v3beta1/GetGlossaryRequestOrBuilder.java | 54 + .../v3beta1/GetSupportedLanguagesRequest.java | 519 +++-- ...GetSupportedLanguagesRequestOrBuilder.java | 53 +- .../cloud/translate/v3beta1/Glossary.java | 1795 +++++++++------ .../v3beta1/GlossaryInputConfig.java | 381 ++-- .../v3beta1/GlossaryInputConfigOrBuilder.java | 26 +- .../cloud/translate/v3beta1/GlossaryName.java | 0 .../translate/v3beta1/GlossaryOrBuilder.java | 100 +- .../cloud/translate/v3beta1/InputConfig.java | 440 ++-- .../v3beta1/InputConfigOrBuilder.java | 35 +- .../v3beta1/ListGlossariesRequest.java | 527 +++-- .../ListGlossariesRequestOrBuilder.java | 56 +- .../v3beta1/ListGlossariesResponse.java | 483 ++-- .../ListGlossariesResponseOrBuilder.java | 45 +- .../cloud/translate/v3beta1/LocationName.java | 0 .../cloud/translate/v3beta1/OutputConfig.java | 375 +-- .../v3beta1/OutputConfigOrBuilder.java | 26 +- .../translate/v3beta1/SupportedLanguage.java | 459 ++-- .../v3beta1/SupportedLanguageOrBuilder.java | 42 +- .../translate/v3beta1/SupportedLanguages.java | 396 ++-- .../v3beta1/SupportedLanguagesOrBuilder.java | 36 +- .../v3beta1/TranslateDocumentRequest.java | 1274 +++++++---- .../TranslateDocumentRequestOrBuilder.java | 150 +- .../v3beta1/TranslateDocumentResponse.java | 747 +++--- .../TranslateDocumentResponseOrBuilder.java | 66 +- .../v3beta1/TranslateTextGlossaryConfig.java | 376 +-- .../TranslateTextGlossaryConfigOrBuilder.java | 30 +- .../v3beta1/TranslateTextRequest.java | 1157 ++++++---- .../TranslateTextRequestOrBuilder.java | 142 +- .../v3beta1/TranslateTextResponse.java | 594 +++-- .../TranslateTextResponseOrBuilder.java | 51 +- .../cloud/translate/v3beta1/Translation.java | 595 +++-- .../v3beta1/TranslationOrBuilder.java | 56 +- .../v3beta1/TranslationServiceProto.java | 1023 +++++++++ .../v3beta1/translation_service.proto | 0 .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...anguageLocationnameStringStringString.java | 0 ...etectLanguageStringStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationname.java | 0 .../SyncListGlossariesString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 ...slateTextLocationnameStringListstring.java | 0 ...ameStringStringStringStringListstring.java | 0 ...ncTranslateTextStringStringListstring.java | 0 ...ingStringStringStringStringListstring.java | 0 .../translatetext/SyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../AsyncBatchTranslateDocument.java | 0 .../AsyncBatchTranslateDocumentLRO.java | 0 .../SyncBatchTranslateDocument.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 ...tinputconfigBatchdocumentoutputconfig.java | 0 .../AsyncBatchTranslateText.java | 0 .../AsyncBatchTranslateTextLRO.java | 0 .../SyncBatchTranslateText.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createglossary/AsyncCreateGlossary.java | 0 .../AsyncCreateGlossaryLRO.java | 0 .../createglossary/SyncCreateGlossary.java | 0 ...yncCreateGlossaryLocationnameGlossary.java | 0 .../SyncCreateGlossaryStringGlossary.java | 0 .../deleteglossary/AsyncDeleteGlossary.java | 0 .../AsyncDeleteGlossaryLRO.java | 0 .../deleteglossary/SyncDeleteGlossary.java | 0 .../SyncDeleteGlossaryGlossaryname.java | 0 .../SyncDeleteGlossaryString.java | 0 .../detectlanguage/AsyncDetectLanguage.java | 0 .../detectlanguage/SyncDetectLanguage.java | 0 ...etectLanguageLocationnameStringString.java | 0 .../SyncDetectLanguageStringStringString.java | 0 .../getglossary/AsyncGetGlossary.java | 0 .../getglossary/SyncGetGlossary.java | 0 .../SyncGetGlossaryGlossaryname.java | 0 .../getglossary/SyncGetGlossaryString.java | 0 .../AsyncGetSupportedLanguages.java | 0 .../SyncGetSupportedLanguages.java | 0 ...rtedLanguagesLocationnameStringString.java | 0 ...tSupportedLanguagesStringStringString.java | 0 .../listglossaries/AsyncListGlossaries.java | 0 .../AsyncListGlossariesPaged.java | 0 .../listglossaries/SyncListGlossaries.java | 0 .../SyncListGlossariesLocationnameString.java | 0 .../SyncListGlossariesStringString.java | 0 .../AsyncTranslateDocument.java | 0 .../SyncTranslateDocument.java | 0 .../translatetext/AsyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../translatetext/SyncTranslateText.java | 0 .../v3/TranslationServiceClient.java | 2010 ----------------- .../v3/TranslationServiceSettings.java | 375 --- .../cloud/translate/v3/gapic_metadata.json | 48 - .../cloud/translate/v3/package-info.java | 46 - ...GrpcTranslationServiceCallableFactory.java | 113 - .../v3/stub/GrpcTranslationServiceStub.java | 548 ----- ...JsonTranslationServiceCallableFactory.java | 105 - .../stub/HttpJsonTranslationServiceStub.java | 910 -------- .../v3/stub/TranslationServiceStub.java | 143 -- .../stub/TranslationServiceStubSettings.java | 868 ------- .../reflect-config.json | 1946 ---------------- .../translate/v3/MockTranslationService.java | 59 - .../v3/MockTranslationServiceImpl.java | 271 --- .../TranslationServiceClientHttpJsonTest.java | 1197 ---------- .../v3/TranslationServiceClientTest.java | 1161 ---------- .../translate/v3/TranslationServiceGrpc.java | 1157 ---------- .../v3/CreateGlossaryRequestOrBuilder.java | 56 - .../v3/DeleteGlossaryRequestOrBuilder.java | 29 - .../v3/GetGlossaryRequestOrBuilder.java | 29 - .../translate/v3/TranslationServiceProto.java | 879 ------- .../v3beta1/TranslationServiceClient.java | 1790 --------------- .../v3beta1/TranslationServiceSettings.java | 376 --- .../translate/v3beta1/gapic_metadata.json | 48 - .../cloud/translate/v3beta1/package-info.java | 53 - ...GrpcTranslationServiceCallableFactory.java | 115 - .../stub/GrpcTranslationServiceStub.java | 556 ----- ...JsonTranslationServiceCallableFactory.java | 105 - .../stub/HttpJsonTranslationServiceStub.java | 916 -------- .../v3beta1/stub/TranslationServiceStub.java | 145 -- .../stub/TranslationServiceStubSettings.java | 869 ------- .../reflect-config.json | 1946 ---------------- .../v3beta1/MockTranslationService.java | 59 - .../v3beta1/MockTranslationServiceImpl.java | 271 --- .../TranslationServiceClientHttpJsonTest.java | 1036 --------- .../v3beta1/TranslationServiceClientTest.java | 1005 --------- .../v3beta1/TranslationServiceGrpc.java | 1157 ---------- .../CreateGlossaryRequestOrBuilder.java | 56 - .../DeleteGlossaryRequestOrBuilder.java | 29 - .../v3beta1/GetGlossaryRequestOrBuilder.java | 29 - .../v3beta1/TranslationServiceProto.java | 882 -------- 292 files changed, 38317 insertions(+), 42727 deletions(-) rename {owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1 => java-translate/grpc-google-cloud-translate-v3}/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java rename {owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3 => java-translate/grpc-google-cloud-translate-v3beta1}/src/main/java/com/google/cloud/location/LocationsGrpc.java (52%) create mode 100644 java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java (77%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java (83%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java (85%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java (92%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java (66%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java (65%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java (60%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java (63%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java (71%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java (71%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java (80%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java (56%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java (81%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java (87%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java (64%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java (67%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java (52%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java (63%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java (78%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java (84%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java (86%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java (75%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java (88%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java (94%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java (72%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java (71%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java (80%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java (69%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java (78%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java (70%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java (65%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java (79%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java (73%) rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java (79%) create mode 100644 java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java rename {owl-bot-staging/java-translate/v3 => java-translate}/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java (77%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java (83%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java (84%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java (92%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java (63%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java (82%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java (65%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java (60%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java (63%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java (74%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java (80%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java (68%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java (56%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java (81%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java (87%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java (76%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java (59%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java (67%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java (52%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java (62%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java (75%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java (78%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java (85%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java (86%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java (75%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java (88%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java (94%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java (74%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java (71%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java (69%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java (78%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java (67%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java (79%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java (67%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java (61%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java (73%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java (81%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java (78%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java (85%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java (72%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java (78%) create mode 100644 java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java (100%) rename {owl-bot-staging/java-translate/v3 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java (100%) rename {owl-bot-staging/java-translate/v3beta1 => java-translate}/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java (100%) delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java delete mode 100644 owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java delete mode 100644 owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java diff --git a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java index 90086bd0466e..bf8e7906ee95 100644 --- a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -20,113 +37,134 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListLocationsMethod() {
-    io.grpc.MethodDescriptor getListLocationsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.ListLocationsRequest,
+            com.google.cloud.location.ListLocationsResponse>
+        getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-              .build();
+          LocationsGrpc.getListLocationsMethod =
+              getListLocationsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+                      .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetLocationMethod() {
-    io.grpc.MethodDescriptor getGetLocationMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+        getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.Location.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-              .build();
+          LocationsGrpc.getGetLocationMethod =
+              getGetLocationMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.Location.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+                      .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsStub(channel, callOptions);
+          }
+        };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsBlockingStub(channel, callOptions);
+          }
+        };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static LocationsFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsFutureStub(channel, callOptions);
+          }
+        };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -136,88 +174,108 @@ public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + default void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLocationsMethod(), responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - default void getLocation(com.google.cloud.location.GetLocationRequest request, + default void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static abstract class LocationsImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub - extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** + * + * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public void getLocation(com.google.cloud.location.GetLocationRequest request, + public void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -226,8 +284,7 @@ public void getLocation(com.google.cloud.location.GetLocationRequest request,
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -238,21 +295,27 @@ protected LocationsBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -260,6 +323,7 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location. /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -268,35 +332,38 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location.
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.location.ListLocationsResponse> + listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -305,11 +372,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -323,11 +390,14 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listLocations( + (com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation( + (com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -349,24 +419,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>( - service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) .build(); } - private static abstract class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -408,11 +478,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java new file mode 100644 index 000000000000..2d181242ce0a --- /dev/null +++ b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java @@ -0,0 +1,1502 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.translate.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse> + getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse> + getTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse> + getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = + getTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateTextResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse> + getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse> + getDetectLanguageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse> + getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = + getDetectLanguageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DetectLanguageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages> + getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages> + getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages> + getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = + getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.SupportedLanguages + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse> + getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse> + getTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse> + getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = + getTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.TranslateDocumentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> + getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateTextRequest, com.google.longrunning.Operation> + getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = + getBatchTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = + TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = + getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> + getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> + getCreateGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.CreateGlossaryRequest, com.google.longrunning.Operation> + getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = + getCreateGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.CreateGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse> + getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse> + getListGlossariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse> + getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = + getListGlossariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.ListGlossariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> + getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetGlossaryRequest, com.google.cloud.translate.v3.Glossary> + getGetGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary> + getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = + getGetGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.GetGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.Glossary.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> + getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> + getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3.DeleteGlossaryRequest, com.google.longrunning.Operation> + getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = + getDeleteGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3.DeleteGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText( + com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetectLanguageMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGlossariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public abstract static class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText( + com.google.cloud.translate.v3.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateTextResponse translateText( + com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage( + com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument( + com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText( + com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary( + com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries( + com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3.Glossary getGlossary( + com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.TranslateTextResponse> + translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.DetectLanguageResponse> + detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.SupportedLanguages> + getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.TranslateDocumentResponse> + translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of document in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateDocument( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.ListGlossariesResponse> + listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3.Glossary> + getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText( + (com.google.cloud.translate.v3.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage( + (com.google.cloud.translate.v3.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages( + (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument( + (com.google.cloud.translate.v3.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText( + (com.google.cloud.translate.v3.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument( + (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary( + (com.google.cloud.translate.v3.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries( + (com.google.cloud.translate.v3.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary( + (com.google.cloud.translate.v3.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary( + (com.google.cloud.translate.v3.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateTextRequest, + com.google.cloud.translate.v3.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.TranslateDocumentRequest, + com.google.cloud.translate.v3.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.CreateGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary>(service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DeleteGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private abstract static class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java similarity index 52% rename from owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java rename to java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java index 90086bd0466e..bf8e7906ee95 100644 --- a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.location; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * An abstract interface that provides location-related information for
  * a service. Service-specific metadata is provided through the
@@ -20,113 +37,134 @@ private LocationsGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.location.Locations";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListLocationsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListLocations",
       requestType = com.google.cloud.location.ListLocationsRequest.class,
       responseType = com.google.cloud.location.ListLocationsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListLocationsMethod() {
-    io.grpc.MethodDescriptor getListLocationsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.ListLocationsRequest,
+          com.google.cloud.location.ListLocationsResponse>
+      getListLocationsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.ListLocationsRequest,
+            com.google.cloud.location.ListLocationsResponse>
+        getListLocationsMethod;
     if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
-          LocationsGrpc.getListLocationsMethod = getListLocationsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
-              .build();
+          LocationsGrpc.getListLocationsMethod =
+              getListLocationsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
+                      .build();
         }
       }
     }
     return getListLocationsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetLocationMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetLocation",
       requestType = com.google.cloud.location.GetLocationRequest.class,
       responseType = com.google.cloud.location.Location.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetLocationMethod() {
-    io.grpc.MethodDescriptor getGetLocationMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+      getGetLocationMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
+        getGetLocationMethod;
     if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
       synchronized (LocationsGrpc.class) {
         if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
-          LocationsGrpc.getGetLocationMethod = getGetLocationMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.location.Location.getDefaultInstance()))
-              .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
-              .build();
+          LocationsGrpc.getGetLocationMethod =
+              getGetLocationMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.location.Location.getDefaultInstance()))
+                      .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
+                      .build();
         }
       }
     }
     return getGetLocationMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static LocationsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsStub(channel, callOptions);
+          }
+        };
     return LocationsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static LocationsBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsBlockingStub(channel, callOptions);
+          }
+        };
     return LocationsBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static LocationsFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new LocationsFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public LocationsFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new LocationsFutureStub(channel, callOptions);
+          }
+        };
     return LocationsFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -136,88 +174,108 @@ public LocationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - default void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + default void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLocationsMethod(), responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - default void getLocation(com.google.cloud.location.GetLocationRequest request, + default void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLocationMethod(), responseObserver); } } /** * Base class for the server implementation of the service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static abstract class LocationsImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class LocationsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return LocationsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
    * [Location.metadata][google.cloud.location.Location.metadata] field.
    * 
*/ - public static final class LocationsStub - extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { + private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LocationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocationsStub(channel, callOptions); } /** + * + * *
      * Lists information about the supported locations for this service.
      * 
*/ - public void listLocations(com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listLocations( + com.google.cloud.location.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public void getLocation(com.google.cloud.location.GetLocationRequest request, + public void getLocation( + com.google.cloud.location.GetLocationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetLocationMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -226,8 +284,7 @@ public void getLocation(com.google.cloud.location.GetLocationRequest request,
    */
   public static final class LocationsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private LocationsBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -238,21 +295,27 @@ protected LocationsBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.cloud.location.ListLocationsResponse listLocations(com.google.cloud.location.ListLocationsRequest request) { + public com.google.cloud.location.ListLocationsResponse listLocations( + com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request) { + public com.google.cloud.location.Location getLocation( + com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLocationMethod(), getCallOptions(), request); } @@ -260,6 +323,7 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location. /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Locations. + * *
    * An abstract interface that provides location-related information for
    * a service. Service-specific metadata is provided through the
@@ -268,35 +332,38 @@ public com.google.cloud.location.Location getLocation(com.google.cloud.location.
    */
   public static final class LocationsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private LocationsFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected LocationsFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new LocationsFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Lists information about the supported locations for this service.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listLocations( - com.google.cloud.location.ListLocationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.location.ListLocationsResponse> + listLocations(com.google.cloud.location.ListLocationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets information about a location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getLocation( - com.google.cloud.location.GetLocationRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getLocation(com.google.cloud.location.GetLocationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); } @@ -305,11 +372,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -323,11 +390,14 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations((com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listLocations( + (com.google.cloud.location.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_LOCATION: - serviceImpl.getLocation((com.google.cloud.location.GetLocationRequest) request, + serviceImpl.getLocation( + (com.google.cloud.location.GetLocationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -349,24 +419,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.ListLocationsRequest, + com.google.cloud.location.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>( - service, METHODID_GET_LOCATION))) + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>(service, METHODID_GET_LOCATION))) .build(); } - private static abstract class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocationsBaseDescriptorSupplier() {} @java.lang.Override @@ -408,11 +478,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); } } } diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java new file mode 100644 index 000000000000..c3f4d6158c2e --- /dev/null +++ b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java @@ -0,0 +1,1517 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.translate.v3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Provides natural language translation operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TranslationServiceGrpc { + + private TranslationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse> + getTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateText", + requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse> + getTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse> + getTranslateTextMethod; + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { + TranslationServiceGrpc.getTranslateTextMethod = + getTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateTextResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateText")) + .build(); + } + } + } + return getTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + getDetectLanguageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", + requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + getDetectLanguageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + getDetectLanguageMethod; + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { + TranslationServiceGrpc.getDetectLanguageMethod = + getDetectLanguageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DetectLanguageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) + .build(); + } + } + } + return getDetectLanguageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages> + getGetSupportedLanguagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", + requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages> + getGetSupportedLanguagesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages> + getGetSupportedLanguagesMethod; + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) + == null) { + TranslationServiceGrpc.getGetSupportedLanguagesMethod = + getGetSupportedLanguagesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.SupportedLanguages + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) + .build(); + } + } + } + return getGetSupportedLanguagesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + getTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", + requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + getTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + getTranslateDocumentMethod; + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getTranslateDocumentMethod = + getTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) + .build(); + } + } + } + return getTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation> + getBatchTranslateTextMethod; + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateTextMethod = + getBatchTranslateTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) + .build(); + } + } + } + return getBatchTranslateTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", + requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation> + getBatchTranslateDocumentMethod; + if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getBatchTranslateDocumentMethod = + TranslationServiceGrpc.getBatchTranslateDocumentMethod) + == null) { + TranslationServiceGrpc.getBatchTranslateDocumentMethod = + getBatchTranslateDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) + .build(); + } + } + } + return getBatchTranslateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation> + getCreateGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", + requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation> + getCreateGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation> + getCreateGlossaryMethod; + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { + TranslationServiceGrpc.getCreateGlossaryMethod = + getCreateGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) + .build(); + } + } + } + return getCreateGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + getListGlossariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", + requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + getListGlossariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + getListGlossariesMethod; + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { + TranslationServiceGrpc.getListGlossariesMethod = + getListGlossariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.ListGlossariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) + .build(); + } + } + } + return getListGlossariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary> + getGetGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlossary", + requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + responseType = com.google.cloud.translate.v3beta1.Glossary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary> + getGetGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary> + getGetGlossaryMethod; + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { + TranslationServiceGrpc.getGetGlossaryMethod = + getGetGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.GetGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("GetGlossary")) + .build(); + } + } + } + return getGetGlossaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation> + getDeleteGlossaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", + requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation> + getDeleteGlossaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation> + getDeleteGlossaryMethod; + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { + TranslationServiceGrpc.getDeleteGlossaryMethod = + getDeleteGlossaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) + .build(); + } + } + } + return getDeleteGlossaryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TranslationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + }; + return TranslationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + }; + return TranslationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TranslationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + }; + return TranslationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + default void translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + default void detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetectLanguageMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + default void getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + default void translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + default void batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchTranslateDocumentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + default void createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + default void listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGlossariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + default void getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlossaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + default void deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGlossaryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public abstract static class TranslationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TranslationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public void translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public void detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public void getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public void translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public void batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public void createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public void listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public void getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public void deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TranslationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText( + com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectLanguageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateText( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.longrunning.Operation batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation createGlossary( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGlossariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.translate.v3beta1.Glossary getGlossary( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlossaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. + * + *
+   * Provides natural language translation operations.
+   * 
+ */ + public static final class TranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TranslationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TranslationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TranslationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Translates input text and returns translated text.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.TranslateTextResponse> + translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Detects the language of text within a request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.DetectLanguageResponse> + detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of supported languages for translation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.SupportedLanguages> + getSupportedLanguages( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.TranslateDocumentResponse> + translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of text in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can
+     * use google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Translates a large volume of documents in asynchronous batch mode.
+     * This function provides real-time output as the inputs are being processed.
+     * If caller cancels a request, the partial results (for an input file, it's
+     * all or nothing) may still be available on the specified output location.
+     * This call returns immediately and you can use
+     * google.longrunning.Operation.name to poll the status of the call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchTranslateDocument( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a glossary and returns the long-running operation. Returns
+     * NOT_FOUND, if the project doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.ListGlossariesResponse> + listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.Glossary> + getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a glossary, or cancels glossary construction
+     * if the glossary isn't created yet.
+     * Returns NOT_FOUND, if the glossary doesn't exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRANSLATE_TEXT = 0; + private static final int METHODID_DETECT_LANGUAGE = 1; + private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; + private static final int METHODID_TRANSLATE_DOCUMENT = 3; + private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; + private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; + private static final int METHODID_CREATE_GLOSSARY = 6; + private static final int METHODID_LIST_GLOSSARIES = 7; + private static final int METHODID_GET_GLOSSARY = 8; + private static final int METHODID_DELETE_GLOSSARY = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRANSLATE_TEXT: + serviceImpl.translateText( + (com.google.cloud.translate.v3beta1.TranslateTextRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.TranslateTextResponse>) + responseObserver); + break; + case METHODID_DETECT_LANGUAGE: + serviceImpl.detectLanguage( + (com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.DetectLanguageResponse>) + responseObserver); + break; + case METHODID_GET_SUPPORTED_LANGUAGES: + serviceImpl.getSupportedLanguages( + (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_TRANSLATE_DOCUMENT: + serviceImpl.translateDocument( + (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.TranslateDocumentResponse>) + responseObserver); + break; + case METHODID_BATCH_TRANSLATE_TEXT: + serviceImpl.batchTranslateText( + (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_TRANSLATE_DOCUMENT: + serviceImpl.batchTranslateDocument( + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GLOSSARY: + serviceImpl.createGlossary( + (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GLOSSARIES: + serviceImpl.listGlossaries( + (com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.translate.v3beta1.ListGlossariesResponse>) + responseObserver); + break; + case METHODID_GET_GLOSSARY: + serviceImpl.getGlossary( + (com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_GLOSSARY: + serviceImpl.deleteGlossary( + (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateTextRequest, + com.google.cloud.translate.v3beta1.TranslateTextResponse>( + service, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse>( + service, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages>( + service, METHODID_GET_SUPPORTED_LANGUAGES))) + .addMethod( + getTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.TranslateDocumentRequest, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( + service, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>(service, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse>( + service, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary>(service, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) + .build(); + } + + private abstract static class TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TranslationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TranslationService"); + } + } + + private static final class TranslationServiceFileDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier { + TranslationServiceFileDescriptorSupplier() {} + } + + private static final class TranslationServiceMethodDescriptorSupplier + extends TranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TranslationServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TranslationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateTextMethod()) + .addMethod(getDetectLanguageMethod()) + .addMethod(getGetSupportedLanguagesMethod()) + .addMethod(getTranslateDocumentMethod()) + .addMethod(getBatchTranslateTextMethod()) + .addMethod(getBatchTranslateDocumentMethod()) + .addMethod(getCreateGlossaryMethod()) + .addMethod(getListGlossariesMethod()) + .addMethod(getGetGlossaryMethod()) + .addMethod(getDeleteGlossaryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java similarity index 77% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java index 946d7d46a52c..9a81bd5f3586 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentInputConfig() { - } + + private BatchDocumentInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -107,6 +133,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -114,6 +141,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -137,16 +166,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -174,12 +206,13 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -191,8 +224,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -206,8 +238,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,18 +250,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentInputConfig other = (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentInputConfig other =
+        (com.google.cloud.translate.v3.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -258,131 +291,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentInputConfig) com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentInputConfig.class, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -417,8 +455,11 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentInputConfig result = new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchDocumentInputConfig result = + new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -431,8 +472,7 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -441,38 +481,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentInput public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -480,15 +521,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -516,19 +560,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,12 +582,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -556,8 +600,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -581,6 +630,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -588,6 +638,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -611,6 +663,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -628,6 +681,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -666,6 +721,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -690,8 +747,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -702,6 +758,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -728,10 +786,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -747,6 +808,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -788,6 +851,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -816,6 +881,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -852,6 +919,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -877,14 +946,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -894,9 +968,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -906,12 +980,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentInputConfig();
   }
@@ -920,27 +994,27 @@ public static com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -955,6 +1029,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
index 7abfa317fddb..d4533a75c6d8 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentInputConfigOrBuilder extends
+public interface BatchDocumentInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -31,10 +49,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -58,10 +79,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
similarity index 85%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
index 4412ae007b88..0ca6a1d996bc 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
@@ -1,56 +1,78 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentOutputConfig() { - } + + private BatchDocumentOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -133,6 +159,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -140,6 +167,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -189,16 +218,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -252,12 +284,13 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +302,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -284,8 +316,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -295,18 +328,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3.BatchDocumentOutputConfig other =
+        (com.google.cloud.translate.v3.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -336,131 +369,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchDocumentOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchDocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchDocumentOutputConfig) com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; } @java.lang.Override @@ -495,8 +533,11 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchDocumentOutputConfig result = + new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -506,11 +547,11 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchDocumentOutputConf int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -519,38 +560,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.BatchDocumentOutpu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.BatchDocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -558,15 +600,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchDocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -594,19 +639,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,12 +661,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -634,8 +679,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -685,6 +735,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -692,6 +743,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -741,6 +794,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -758,6 +812,8 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -822,6 +878,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -884,6 +942,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -936,10 +996,13 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -955,6 +1018,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1022,6 +1087,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1076,6 +1143,8 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1138,6 +1207,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1189,14 +1260,19 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3.GcsDestination,
+            com.google.cloud.translate.v3.GcsDestination.Builder,
+            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsDestination,
+                com.google.cloud.translate.v3.GcsDestination.Builder,
+                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1206,9 +1282,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1218,12 +1294,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchDocumentOutputConfig)
   private static final com.google.cloud.translate.v3.BatchDocumentOutputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchDocumentOutputConfig();
   }
@@ -1232,27 +1308,27 @@ public static com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentOutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentOutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1267,6 +1343,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
similarity index 92%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
index 9b98837a7172..8f44ed055d99 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchDocumentOutputConfigOrBuilder extends
+public interface BatchDocumentOutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -57,10 +75,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -110,10 +131,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
index cea5c3242091..c3d6824ce0f0 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +84,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +94,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -77,6 +104,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -85,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -94,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -107,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -115,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -123,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -131,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -139,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -148,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -158,7 +203,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -183,52 +227,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -248,38 +297,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -290,12 +353,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -306,12 +372,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -322,12 +391,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -338,11 +410,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -353,12 +428,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -369,12 +447,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -385,12 +466,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -401,11 +485,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -413,11 +500,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ @java.lang.Override @@ -425,6 +515,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -437,6 +529,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,9 +541,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -489,45 +583,37 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -537,34 +623,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other = + (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() - != other.getTotalPages()) return false; - if (getTranslatedPages() - != other.getTranslatedPages()) return false; - if (getFailedPages() - != other.getFailedPages()) return false; - if (getTotalBillablePages() - != other.getTotalBillablePages()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() - != other.getTotalBillableCharacters()) return false; + if (getTotalPages() != other.getTotalPages()) return false; + if (getTranslatedPages() != other.getTranslatedPages()) return false; + if (getFailedPages() != other.getFailedPages()) return false; + if (getTotalBillablePages() != other.getTotalBillablePages()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -580,29 +658,21 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -613,131 +683,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -760,13 +835,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata + getDefaultInstanceForType() { return com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -781,13 +857,17 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = + new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { + private void buildPartial0( + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -817,9 +897,7 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentM result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -827,38 +905,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentM public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) other); } else { super.mergeFrom(other); return this; @@ -866,7 +945,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata other) { - if (other == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -923,64 +1004,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -990,26 +1080,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1020,28 +1118,38 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { + public Builder setState( + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1051,11 +1159,14 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateDocumentMeta return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1065,14 +1176,17 @@ public Builder clearState() { return this; } - private long totalPages_ ; + private long totalPages_; /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -1080,12 +1194,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1097,12 +1214,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1112,14 +1232,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -1127,12 +1250,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1144,12 +1270,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1159,14 +1288,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -1174,12 +1306,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1191,12 +1326,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1206,14 +1344,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -1221,12 +1362,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1238,12 +1382,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1253,13 +1400,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -1267,11 +1417,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1283,11 +1436,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1297,14 +1453,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1312,12 +1471,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1329,12 +1491,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1344,14 +1509,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -1359,12 +1527,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1376,12 +1547,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1391,14 +1565,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1406,12 +1583,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1423,12 +1603,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1440,34 +1623,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1488,14 +1684,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1506,6 +1703,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1514,9 +1713,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1529,6 +1728,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1546,6 +1747,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1558,6 +1761,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1568,11 +1773,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1580,21 +1788,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1604,12 +1815,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3.BatchTranslateDocumentMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(); } @@ -1618,27 +1830,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1865,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java index a2a7d1b0cc1e..56aa416281ab 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,137 +1,191 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentMetadataOrBuilder extends +public interface BatchTranslateDocumentMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState(); /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java similarity index 66% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java index a638507885ad..7b5efed61524 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java @@ -1,49 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); customizedAttribution_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -52,22 +67,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -80,7 +100,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -89,14 +112,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -109,17 +133,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -128,9 +153,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -138,6 +166,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -146,14 +175,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -161,16 +191,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -179,41 +208,53 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -221,24 +262,30 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List inputConfigs_; /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -246,13 +293,18 @@ public java.lang.String getTargetLanguageCodes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -260,14 +312,18 @@ public java.util.List ge
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -275,13 +331,17 @@ public java.util.List ge
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -289,13 +349,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -303,7 +367,9 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( @@ -314,13 +380,18 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -328,60 +399,76 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -403,20 +490,21 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -442,6 +530,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -463,17 +553,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -495,11 +587,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -507,92 +599,122 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
+
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry =
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.translate.v3.TranslationServiceProto
+                            .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.translate.v3.TranslateTextGlossaryConfig
+                            .getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
-  private com.google.protobuf.MapField
-  internalGetGlossaries() {
+          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+      glossaries_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+      internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
+
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -602,32 +724,36 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; + private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -641,23 +767,26 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -671,13 +800,17 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -691,20 +824,24 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -718,14 +855,16 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -733,9 +872,12 @@ public java.lang.String getFormatConversionsOrThrow( } public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object customizedAttribution_ = ""; /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -744,6 +886,7 @@ public java.lang.String getFormatConversionsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ @java.lang.Override @@ -752,14 +895,15 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -768,16 +912,15 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -786,6 +929,7 @@ public java.lang.String getCustomizedAttribution() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -797,8 +941,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -814,20 +957,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetModels(), - ModelsDefaultEntryHolder.defaultEntry, - 6); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetGlossaries(), - GlossariesDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -859,42 +993,43 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry - : internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry - models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, models__); - } - for (java.util.Map.Entry entry - : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry - glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry - : internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry - formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry : + internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry models__ = + ModelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + entry : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + GlossariesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry : + internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry formatConversions__ = + FormatConversionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); @@ -907,34 +1042,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3.BatchTranslateDocumentRequest other = + (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList() - .equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList() - .equals(other.getInputConfigsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals( - other.internalGetModels())) return false; - if (!internalGetGlossaries().equals( - other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals( - other.internalGetFormatConversions())) return false; - if (!getCustomizedAttribution() - .equals(other.getCustomizedAttribution())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals(other.internalGetModels())) return false; + if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; + if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -982,116 +1109,121 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.cloud.translate.v3.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -1100,13 +1232,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1115,36 +1246,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1165,9 +1294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1186,14 +1315,18 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3.BatchTranslateDocumentRequest result = + new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1218,9 +1351,8 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1243,38 +1375,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -1282,7 +1415,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1321,9 +1455,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1332,14 +1467,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom( - other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1372,80 +1504,97 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.cloud.translate.v3.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - formatConversions__ = input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFormatConversions().getMutableMap().put( - formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.cloud.translate.v3.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry + formatConversions__ = + input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFormatConversions() + .getMutableMap() + .put(formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: + { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1455,10 +1604,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1471,14 +1623,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1487,6 +1641,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1499,16 +1655,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1516,6 +1673,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1528,19 +1687,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1553,7 +1718,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1563,6 +1731,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1575,13 +1745,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1591,6 +1765,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1598,13 +1774,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1613,6 +1789,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1620,15 +1798,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1636,6 +1813,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1643,18 +1822,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1662,6 +1845,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1671,6 +1855,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1678,12 +1864,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1693,6 +1881,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1700,38 +1889,49 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1739,33 +1939,41 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1773,18 +1981,23 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1792,53 +2005,64 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1848,18 +2072,26 @@ public Builder addTargetLanguageCodesBytes( } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = new java.util.ArrayList(inputConfigs_); + inputConfigs_ = + new java.util.ArrayList( + inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; + com.google.cloud.translate.v3.BatchDocumentInputConfig, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> + inputConfigsBuilder_; /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1867,9 +2099,12 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -1877,6 +2112,8 @@ public java.util.List ge } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1884,7 +2121,9 @@ public java.util.List ge
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -1894,6 +2133,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1901,7 +2142,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -1911,6 +2154,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1918,7 +2163,9 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -1935,6 +2182,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1942,7 +2191,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -1956,6 +2207,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1963,7 +2216,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { @@ -1979,6 +2234,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1986,7 +2243,9 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig value) { @@ -2003,6 +2262,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2010,7 +2271,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2024,6 +2287,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2031,7 +2296,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder builderForValue) { @@ -2045,6 +2312,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2052,14 +2321,16 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2067,6 +2338,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2074,7 +2347,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2087,6 +2362,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2094,7 +2371,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2107,6 +2386,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2114,13 +2395,17 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2128,16 +2413,21 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2145,10 +2435,12 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2156,6 +2448,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2163,13 +2457,17 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2177,14 +2475,19 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.translate.v3.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2192,22 +2495,27 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentInputConfig, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentInputConfig, com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentInputConfig, + com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2215,45 +2523,64 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig.Builder addInputCo private com.google.cloud.translate.v3.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3.BatchDocumentOutputConfig, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2269,13 +2596,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutput return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2289,19 +2620,25 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.translate.v3.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2314,13 +2651,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3.BatchDocumentOutp return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2333,74 +2674,90 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder + getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.BatchDocumentOutputConfig, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.BatchDocumentOutputConfig, com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.BatchDocumentOutputConfig, + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2409,10 +2766,13 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutpu onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2434,20 +2794,21 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2473,6 +2834,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2494,17 +2857,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2526,23 +2891,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2563,23 +2930,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2600,17 +2966,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2631,17 +3000,18 @@ public Builder putModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        glossaries_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -2649,11 +3019,13 @@ public Builder putAllModels(
       }
       return glossaries_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ = com.google.protobuf.MapField.newMapField(
-            GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ =
+            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2662,140 +3034,177 @@ public Builder putAllModels(
       onChanged();
       return glossaries_;
     }
+
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( - java.lang.String key, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -2804,11 +3213,13 @@ public Builder putAllGlossaries( } return formatConversions_; } + private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = + com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -2817,10 +3228,13 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2834,23 +3248,26 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2864,13 +3281,17 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2884,20 +3305,25 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2911,12 +3337,15 @@ java.lang.String getFormatConversionsOrDefault(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -2924,13 +3353,15 @@ public java.lang.String getFormatConversionsOrThrow( } return map.get(key); } + public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap() - .clear(); + internalGetMutableFormatConversions().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2944,25 +3375,26 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableFormatConversions().getMutableMap() - .remove(key); + public Builder removeFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFormatConversions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableFormatConversions() { + public java.util.Map getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2976,19 +3408,24 @@ public Builder removeFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putFormatConversions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFormatConversions().getMutableMap() - .put(key, value); + public Builder putFormatConversions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFormatConversions().getMutableMap().put(key, value); bitField0_ |= 0x00000080; return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -3002,18 +3439,21 @@ public Builder putFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap() - .putAll(values); + internalGetMutableFormatConversions().getMutableMap().putAll(values); bitField0_ |= 0x00000080; return this; } private java.lang.Object customizedAttribution_ = ""; /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3022,13 +3462,13 @@ public Builder putAllFormatConversions(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -3037,6 +3477,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3045,15 +3487,14 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -3061,6 +3502,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3069,18 +3512,22 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttribution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3089,6 +3536,7 @@ public Builder setCustomizedAttribution(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -3098,6 +3546,8 @@ public Builder clearCustomizedAttribution() { return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -3106,21 +3556,23 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3130,12 +3582,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentRequest) private static final com.google.cloud.translate.v3.BatchTranslateDocumentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentRequest(); } @@ -3144,27 +3596,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3179,6 +3631,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java index 448bb93ce6e2..742d85933e62 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateDocumentRequestOrBuilder extends +public interface BatchTranslateDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -37,13 +60,17 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -51,10 +78,13 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -62,57 +92,73 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -120,11 +166,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -132,10 +181,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -143,10 +196,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -154,11 +211,15 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,45 +227,63 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3.BatchDocumentOutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -227,6 +306,8 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -247,15 +328,13 @@ com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputConfigsO
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -276,9 +355,10 @@ boolean containsModels(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -300,11 +380,13 @@ boolean containsModels(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -325,64 +407,82 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -396,10 +496,14 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getFormatConversionsCount(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -413,17 +517,17 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsFormatConversions( - java.lang.String key); - /** - * Use {@link #getFormatConversionsMap()} instead. + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsFormatConversions(java.lang.String key); + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getFormatConversions(); + java.util.Map getFormatConversions(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -437,11 +541,14 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getFormatConversionsMap(); + java.util.Map getFormatConversionsMap(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -455,14 +562,18 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getFormatConversionsOrDefault( + java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -476,12 +587,15 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getFormatConversionsOrThrow( - java.lang.String key); + java.lang.String getFormatConversionsOrThrow(java.lang.String key); /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -490,10 +604,13 @@ java.lang.String getFormatConversionsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -502,8 +619,8 @@ java.lang.String getFormatConversionsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString - getCustomizedAttributionBytes(); + com.google.protobuf.ByteString getCustomizedAttributionBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java index 4bcc611426d6..8b0ebcacc358 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,47 +30,52 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateDocumentResponse() {
-  }
+
+  private BatchTranslateDocumentResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
+            com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -64,12 +86,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -80,12 +105,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -96,12 +124,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -112,11 +143,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -127,12 +161,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -143,12 +180,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -159,12 +199,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -175,11 +218,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -187,11 +233,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ @java.lang.Override @@ -199,6 +248,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -213,6 +264,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -220,6 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -227,6 +281,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -234,6 +290,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ @java.lang.Override @@ -241,6 +298,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -255,6 +314,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,8 +326,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -308,44 +367,34 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -355,38 +404,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages()
-        != other.getTotalPages()) return false;
-    if (getTranslatedPages()
-        != other.getTranslatedPages()) return false;
-    if (getFailedPages()
-        != other.getFailedPages()) return false;
-    if (getTotalBillablePages()
-        != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters()
-        != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3.BatchTranslateDocumentResponse other =
+        (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages() != other.getTotalPages()) return false;
+    if (getTranslatedPages() != other.getTranslatedPages()) return false;
+    if (getFailedPages() != other.getFailedPages()) return false;
+    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -400,29 +440,21 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -437,98 +469,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -538,33 +576,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.class,
+              com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -591,13 +628,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3.BatchTranslateDocumentResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -612,13 +650,17 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result =
+          new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(
+        com.google.cloud.translate.v3.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -645,14 +687,10 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -660,38 +698,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateDocumentR
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateDocumentResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -699,7 +738,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentResponse other) {
-      if (other == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.translate.v3.BatchTranslateDocumentResponse.getDefaultInstance())
+        return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -756,66 +797,73 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalPages_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedPages_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedPages_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              totalBillablePages_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 48: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              totalBillableCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalPages_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedPages_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedPages_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                totalBillablePages_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 48:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                totalBillableCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,16 +873,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalPages_ ;
+    private long totalPages_;
     /**
+     *
+     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -842,12 +894,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -859,12 +914,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -874,14 +932,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -889,12 +950,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -906,12 +970,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -921,14 +988,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -936,12 +1006,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -953,12 +1026,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -968,14 +1044,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -983,12 +1062,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1000,12 +1082,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1015,13 +1100,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -1029,11 +1117,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1045,11 +1136,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1059,14 +1153,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1074,12 +1171,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1091,12 +1191,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1106,14 +1209,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -1121,12 +1227,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1138,12 +1247,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1153,14 +1265,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1168,12 +1283,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1185,12 +1303,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1202,34 +1323,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1250,14 +1384,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1268,6 +1403,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1276,9 +1413,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1291,6 +1428,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1308,6 +1447,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1320,6 +1461,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1330,11 +1473,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1342,14 +1488,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1357,8 +1506,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1366,12 +1520,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1379,6 +1536,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1389,6 +1547,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1411,6 +1571,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1419,8 +1581,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1431,6 +1592,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1441,9 +1604,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1456,6 +1619,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1475,6 +1640,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1489,6 +1656,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1501,11 +1670,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1515,21 +1685,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1539,12 +1712,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3.BatchTranslateDocumentResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateDocumentResponse();
   }
@@ -1553,27 +1727,27 @@ public static com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateDocumentResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateDocumentResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1588,6 +1762,4 @@ public com.google.protobuf.Parser getParserForTy
   public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
index ba1d11008da9..93f7258efcb0 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,118 +1,166 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateDocumentResponseOrBuilder extends
+public interface BatchTranslateDocumentResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -122,6 +170,8 @@ public interface BatchTranslateDocumentResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -129,10 +179,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,10 +193,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
index b739ed61bfff..a84aea7849e4 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
@@ -1,58 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, + com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.BatchTranslateMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +83,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +93,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -78,6 +104,8 @@ public enum State
      */
     SUCCEEDED(2),
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -86,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -95,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -108,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -133,6 +171,8 @@ public enum State
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -141,6 +181,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -150,6 +192,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -160,7 +204,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -185,52 +228,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3.BatchTranslateMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -250,37 +298,51 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -291,12 +353,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -307,6 +372,8 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -314,6 +381,7 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -324,11 +392,14 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -336,11 +407,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ @java.lang.Override @@ -348,6 +422,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -360,6 +436,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,9 +448,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -397,25 +475,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -425,24 +500,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.BatchTranslateMetadata other = (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3.BatchTranslateMetadata other = + (com.google.cloud.translate.v3.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -458,14 +530,11 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -476,131 +545,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateMetadata) com.google.cloud.translate.v3.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateMetadata.class, com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3.BatchTranslateMetadata.class, + com.google.cloud.translate.v3.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +691,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -639,8 +712,11 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3.BatchTranslateMetadata result = new com.google.cloud.translate.v3.BatchTranslateMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.BatchTranslateMetadata result = + new com.google.cloud.translate.v3.BatchTranslateMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -660,9 +736,7 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -670,38 +744,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateMetadata public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateMetadata) other); } else { super.mergeFrom(other); return this; @@ -709,7 +784,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchTranslateMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -751,39 +827,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -793,26 +873,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -823,24 +911,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -854,11 +951,14 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.Sta return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -868,13 +968,16 @@ public Builder clearState() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -882,11 +985,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -898,11 +1004,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -912,14 +1021,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -927,12 +1039,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -944,12 +1059,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -959,8 +1077,10 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -968,6 +1088,7 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -975,6 +1096,8 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -982,6 +1105,7 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -993,6 +1117,8 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1000,6 +1126,7 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1011,34 +1138,47 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1059,14 +1199,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1077,6 +1218,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1085,9 +1228,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1100,6 +1243,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1117,6 +1262,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1129,6 +1276,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1139,11 +1288,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1151,21 +1303,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1175,12 +1330,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateMetadata) private static final com.google.cloud.translate.v3.BatchTranslateMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateMetadata(); } @@ -1189,27 +1344,27 @@ public static com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1224,6 +1379,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java index 337d2d9e0aab..aef48c713adb 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface BatchTranslateMetadataOrBuilder extends +public interface BatchTranslateMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3.BatchTranslateMetadata.State getState(); /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -55,29 +85,38 @@ public interface BatchTranslateMetadataOrBuilder extends
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java index daca001c1a91..9c4ed6c56ec3 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,46 +30,50 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateResponse() {
-  }
+
+  private BatchTranslateResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3.BatchTranslateResponse.class,
+            com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -63,11 +84,14 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -78,11 +102,14 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -93,11 +120,14 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -105,11 +135,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ @java.lang.Override @@ -117,6 +150,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -131,6 +166,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -138,6 +175,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -145,6 +183,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -152,6 +192,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -159,6 +200,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,6 +216,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,8 +228,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -211,24 +254,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -238,28 +276,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateResponse other = (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3.BatchTranslateResponse other =
+        (com.google.cloud.translate.v3.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -273,14 +307,11 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -295,98 +326,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -396,33 +432,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.BatchTranslateResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateResponse)
       com.google.cloud.translate.v3.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.BatchTranslateResponse.class, com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3.BatchTranslateResponse.class,
+              com.google.cloud.translate.v3.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.BatchTranslateResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +479,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -465,8 +500,11 @@ public com.google.cloud.translate.v3.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3.BatchTranslateResponse result = new com.google.cloud.translate.v3.BatchTranslateResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.BatchTranslateResponse result =
+          new com.google.cloud.translate.v3.BatchTranslateResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -483,14 +521,10 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -498,38 +532,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateResponse
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.BatchTranslateResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +572,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.BatchTranslateResponse.getDefaultInstance())
+        return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -579,41 +615,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -623,15 +661,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalCharacters_ ;
+    private long totalCharacters_;
     /**
+     *
+     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -639,11 +681,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -655,11 +700,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -669,13 +717,16 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -683,11 +734,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -699,11 +753,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -713,13 +770,16 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -727,11 +787,14 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -743,11 +806,14 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -759,34 +825,47 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -807,14 +886,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -825,6 +905,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -833,9 +915,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -848,6 +930,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -865,6 +949,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -877,6 +963,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -887,11 +975,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -899,14 +990,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -914,8 +1008,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -923,12 +1022,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -936,6 +1038,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -946,6 +1049,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -968,6 +1073,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -976,8 +1083,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -988,6 +1094,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -998,9 +1106,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1013,6 +1121,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1032,6 +1142,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1046,6 +1158,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1058,11 +1172,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1072,21 +1187,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1096,12 +1214,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3.BatchTranslateResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateResponse();
   }
@@ -1110,27 +1228,27 @@ public static com.google.cloud.translate.v3.BatchTranslateResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1145,6 +1263,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
index e7a723c707b5..2e9f558f8217 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
@@ -1,61 +1,94 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateResponseOrBuilder extends
+public interface BatchTranslateResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -65,6 +98,8 @@ public interface BatchTranslateResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -72,10 +107,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -83,10 +121,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
similarity index 65%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
index 9959a46dc9ce..56f191e1456e 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
@@ -1,48 +1,63 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -51,22 +66,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -79,7 +99,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -88,14 +111,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -108,17 +132,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -127,14 +152,18 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -143,29 +172,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -174,38 +203,50 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -213,46 +254,51 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,20 +320,21 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -313,6 +360,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -334,17 +383,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -366,11 +417,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -378,9 +429,12 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -388,13 +442,17 @@ public java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -402,14 +460,18 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -417,13 +479,17 @@ public java.util.List getInputConfigs
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -431,13 +497,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -445,24 +515,30 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3.OutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -470,124 +546,167 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; + private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> defaultEntry = + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig + .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField( - GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -597,32 +716,34 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -638,20 +759,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -671,6 +793,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -686,17 +810,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -712,11 +838,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -724,6 +850,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -735,8 +862,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -746,30 +872,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetModels(),
-        ModelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetGlossaries(),
-        GlossariesDefaultEntryHolder.defaultEntry,
-        7);
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        9);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
     getUnknownFields().writeTo(output);
   }
 
@@ -793,43 +907,44 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry
-         : internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry :
+        internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry models__ =
+          ModelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry<
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        entry : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry<
+              java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+          glossaries__ =
+              GlossariesDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -839,32 +954,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.BatchTranslateTextRequest other = (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
-
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList()
-        .equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(
-        other.internalGetModels())) return false;
-    if (!getInputConfigsList()
-        .equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3.BatchTranslateTextRequest other =
+        (com.google.cloud.translate.v3.BatchTranslateTextRequest) obj;
+
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(other.internalGetModels())) return false;
+    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig()
-          .equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(
-        other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -910,116 +1018,121 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.BatchTranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.BatchTranslateTextRequest) com.google.cloud.translate.v3.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -1028,13 +1141,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1043,36 +1155,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 9: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.BatchTranslateTextRequest.class, com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.BatchTranslateTextRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1092,9 +1202,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; } @java.lang.Override @@ -1113,14 +1223,18 @@ public com.google.cloud.translate.v3.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.BatchTranslateTextRequest result = new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3.BatchTranslateTextRequest result = + new com.google.cloud.translate.v3.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1149,9 +1263,8 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1167,38 +1280,39 @@ private void buildPartial0(com.google.cloud.translate.v3.BatchTranslateTextReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3.BatchTranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1206,7 +1320,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1227,8 +1342,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest } onChanged(); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1248,9 +1362,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1259,11 +1374,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1291,75 +1404,89 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.cloud.translate.v3.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3.InputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.translate.v3.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1369,10 +1496,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1385,14 +1515,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1401,6 +1533,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1413,16 +1547,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1430,6 +1565,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1442,19 +1579,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1467,7 +1610,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1477,6 +1623,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1489,13 +1637,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1505,18 +1657,20 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1525,20 +1679,21 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1546,28 +1701,35 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1577,17 +1739,21 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1597,6 +1763,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1604,35 +1771,46 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1640,31 +1818,39 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1672,17 +1858,22 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1690,50 +1881,61 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1742,21 +1944,19 @@ public Builder addTargetLanguageCodesBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1765,10 +1965,13 @@ public Builder addTargetLanguageCodesBytes( onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1790,20 +1993,21 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1829,6 +2033,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1850,17 +2056,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1882,23 +2090,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1919,23 +2129,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1956,17 +2165,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1987,27 +2199,32 @@ public Builder putModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ =
+            new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> inputConfigsBuilder_;
+            com.google.cloud.translate.v3.InputConfig,
+            com.google.cloud.translate.v3.InputConfig.Builder,
+            com.google.cloud.translate.v3.InputConfigOrBuilder>
+        inputConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2015,7 +2232,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2025,6 +2244,8 @@ public java.util.List getInputConfigs } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2032,7 +2253,9 @@ public java.util.List getInputConfigs
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2042,6 +2265,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2049,7 +2274,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2059,6 +2286,8 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2066,10 +2295,11 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInputConfigs( - int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder setInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2083,6 +2313,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2090,7 +2322,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2104,6 +2338,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2111,7 +2347,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2127,6 +2365,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value) return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2134,10 +2374,11 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.InputConfig value)
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addInputConfigs( - int index, com.google.cloud.translate.v3.InputConfig value) { + public Builder addInputConfigs(int index, com.google.cloud.translate.v3.InputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2151,6 +2392,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2158,7 +2401,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2172,6 +2417,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2179,7 +2426,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3.InputConfig.Builder builderForValue) { @@ -2193,6 +2442,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2200,14 +2451,15 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2215,6 +2467,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2222,7 +2476,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2235,6 +2491,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2242,7 +2500,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2255,6 +2515,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2262,13 +2524,16 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder( - int index) { + public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2276,16 +2541,20 @@ public com.google.cloud.translate.v3.InputConfig.Builder getInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2293,10 +2562,12 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2304,6 +2575,8 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2311,13 +2584,17 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2325,14 +2602,17 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( - int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(int index) { + return getInputConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2340,22 +2620,27 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder> + com.google.cloud.translate.v3.InputConfig, + com.google.cloud.translate.v3.InputConfig.Builder, + com.google.cloud.translate.v3.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.InputConfig, com.google.cloud.translate.v3.InputConfig.Builder, com.google.cloud.translate.v3.InputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.InputConfig, + com.google.cloud.translate.v3.InputConfig.Builder, + com.google.cloud.translate.v3.InputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2363,45 +2648,64 @@ public com.google.cloud.translate.v3.InputConfig.Builder addInputConfigsBuilder( private com.google.cloud.translate.v3.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3.OutputConfig, + com.google.cloud.translate.v3.OutputConfig.Builder, + com.google.cloud.translate.v3.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2417,13 +2721,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3.OutputConfig value) return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3.OutputConfig.Builder builderForValue) { @@ -2437,19 +2745,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && outputConfig_ != null + && outputConfig_ != com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2462,13 +2774,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3.OutputConfig valu return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2481,13 +2797,17 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2495,48 +2815,63 @@ public com.google.cloud.translate.v3.OutputConfig.Builder getOutputConfigBuilder return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder> + com.google.cloud.translate.v3.OutputConfig, + com.google.cloud.translate.v3.OutputConfig.Builder, + com.google.cloud.translate.v3.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.OutputConfig, com.google.cloud.translate.v3.OutputConfig.Builder, com.google.cloud.translate.v3.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.OutputConfig, + com.google.cloud.translate.v3.OutputConfig.Builder, + com.google.cloud.translate.v3.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2544,11 +2879,13 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil } return glossaries_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = + com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2557,160 +2894,195 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil onChanged(); return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( - java.lang.String key, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2719,10 +3091,13 @@ public Builder putAllGlossaries( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2738,20 +3113,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2771,6 +3147,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2786,17 +3164,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2812,23 +3192,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2843,23 +3225,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2874,17 +3255,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2899,16 +3283,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2918,12 +3300,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.BatchTranslateTextRequest)
   private static final com.google.cloud.translate.v3.BatchTranslateTextRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.BatchTranslateTextRequest();
   }
@@ -2932,27 +3314,27 @@ public static com.google.cloud.translate.v3.BatchTranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2967,6 +3349,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
index 113cf3687b09..e5c1b33c3560 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface BatchTranslateTextRequestOrBuilder extends
+public interface BatchTranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -37,74 +60,97 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -127,6 +173,8 @@ public interface BatchTranslateTextRequestOrBuilder extends
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -147,15 +195,13 @@ public interface BatchTranslateTextRequestOrBuilder extends
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -176,9 +222,10 @@ boolean containsModels(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -200,11 +247,13 @@ boolean containsModels(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -225,10 +274,11 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -236,11 +286,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -248,10 +301,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.InputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -259,10 +316,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -270,11 +331,15 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -282,104 +347,138 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder( - int index); + com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuilder(int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3.OutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -396,6 +495,8 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -410,15 +511,13 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -433,9 +532,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -451,11 +551,13 @@ boolean containsLabels(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -470,6 +572,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
similarity index 70%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
index 8d73e559b532..7827ff615171 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
+            com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.CreateGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully created.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to create the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully created.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to create the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3.CreateGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryMetadata other = (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3.CreateGlossaryMetadata other = + (com.google.cloud.translate.v3.CreateGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,103 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +623,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryMetadata)
       com.google.cloud.translate.v3.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.CreateGlossaryMetadata.class, com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.CreateGlossaryMetadata.class,
+              com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.CreateGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +664,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +685,11 @@ public com.google.cloud.translate.v3.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.CreateGlossaryMetadata result = new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.CreateGlossaryMetadata result =
+          new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +703,7 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +711,39 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +751,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.CreateGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +790,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +824,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +851,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +873,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +911,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +935,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +968,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1008,14 @@ public Builder setState(com.google.cloud.translate.v3.CreateGlossaryMetadata.Sta return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1027,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1088,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1107,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1117,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1132,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1151,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1165,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1177,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1192,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3.CreateGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryMetadata(); } @@ -1090,27 +1233,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1268,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java index 91012a73b317..c19c4c4ddf9b 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface CreateGlossaryMetadataOrBuilder extends +public interface CreateGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java similarity index 60% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java index 145cbf8ff2a8..873c5bb5a8df 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, + com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -93,11 +120,16 @@ public java.lang.String getParent() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.Glossary glossary_; /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ @java.lang.Override @@ -105,30 +137,44 @@ public boolean hasGlossary() { return glossary_ != null; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary getGlossary() { - return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -161,8 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,19 +216,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.CreateGlossaryRequest other = (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3.CreateGlossaryRequest other = + (com.google.cloud.translate.v3.CreateGlossaryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary() - .equals(other.getGlossary())) return false; + if (!getGlossary().equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,131 +252,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.CreateGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.CreateGlossaryRequest) com.google.cloud.translate.v3.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.CreateGlossaryRequest.class, com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.CreateGlossaryRequest.class, + com.google.cloud.translate.v3.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.CreateGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -348,9 +395,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -369,8 +416,11 @@ public com.google.cloud.translate.v3.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.CreateGlossaryRequest result = new com.google.cloud.translate.v3.CreateGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.CreateGlossaryRequest result = + new com.google.cloud.translate.v3.CreateGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,9 +431,7 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null - ? glossary_ - : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); } } @@ -391,38 +439,39 @@ private void buildPartial0(com.google.cloud.translate.v3.CreateGlossaryRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3.CreateGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -430,7 +479,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -465,24 +515,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,22 +543,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -516,20 +572,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -537,28 +596,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -568,17 +638,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -588,39 +664,58 @@ public Builder setParentBytes( private com.google.cloud.translate.v3.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossaryBuilder_; + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> + glossaryBuilder_; /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ public com.google.cloud.translate.v3.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { @@ -636,14 +731,17 @@ public Builder setGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setGlossary( - com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder setGlossary(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossaryBuilder_ == null) { glossary_ = builderForValue.build(); } else { @@ -654,17 +752,21 @@ public Builder setGlossary( return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossary_ != null && - glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossary_ != null + && glossary_ != com.google.cloud.translate.v3.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -677,11 +779,15 @@ public Builder mergeGlossary(com.google.cloud.translate.v3.Glossary value) { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -694,11 +800,15 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -706,43 +816,55 @@ public com.google.cloud.translate.v3.Glossary.Builder getGlossaryBuilder() { return getGlossaryFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null ? - com.google.cloud.translate.v3.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3.Glossary.getDefaultInstance() + : glossary_; } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( - getGlossary(), - getParentForChildren(), - isClean()); + glossaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder>( + getGlossary(), getParentForChildren(), isClean()); glossary_ = null; } return glossaryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -752,12 +874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.CreateGlossaryRequest) private static final com.google.cloud.translate.v3.CreateGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.CreateGlossaryRequest(); } @@ -766,27 +888,27 @@ public static com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..7d76230e64de --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface CreateGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The glossary. + */ + com.google.cloud.translate.v3.Glossary getGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java index 407b2058b41d..79f39b9d1ae2 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
+            com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3.DeleteGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3.DeleteGlossaryMetadata other = + (com.google.cloud.translate.v3.DeleteGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,103 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +623,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryMetadata.class,
+              com.google.cloud.translate.v3.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +664,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +685,11 @@ public com.google.cloud.translate.v3.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.DeleteGlossaryMetadata result =
+          new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +703,7 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +711,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryMetadata
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +751,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +790,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +824,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +851,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +873,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +911,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +935,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +968,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1008,14 @@ public Builder setState(com.google.cloud.translate.v3.DeleteGlossaryMetadata.Sta return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1027,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1088,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1107,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1117,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1132,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1151,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1165,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1177,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1192,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3.DeleteGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryMetadata(); } @@ -1090,27 +1233,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1268,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java index 47cc452baf1a..f1522824f1e8 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DeleteGlossaryMetadataOrBuilder extends +public interface DeleteGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java index b0844ec79872..0646b0544ae2 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.DeleteGlossaryRequest other = (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3.DeleteGlossaryRequest other = + (com.google.cloud.translate.v3.DeleteGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryRequest) com.google.cloud.translate.v3.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DeleteGlossaryRequest.class, com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DeleteGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +341,11 @@ public com.google.cloud.translate.v3.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.DeleteGlossaryRequest result = new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DeleteGlossaryRequest result = + new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +361,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +456,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +485,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +509,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +551,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3.DeleteGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryRequest(); } @@ -537,27 +600,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..10e9ed863205 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface DeleteGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java similarity index 71% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java index ec8afcb199fe..baff0e838394 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -12,48 +29,54 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
+            com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getName() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -107,11 +133,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ @java.lang.Override @@ -119,6 +148,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -133,6 +164,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,6 +173,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -147,6 +181,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -154,6 +190,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -161,6 +198,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,6 +214,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -186,8 +226,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -210,12 +249,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -225,24 +262,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DeleteGlossaryResponse other = (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3.DeleteGlossaryResponse other =
+        (com.google.cloud.translate.v3.DeleteGlossaryResponse) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -271,98 +306,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -371,33 +411,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.DeleteGlossaryResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DeleteGlossaryResponse)
       com.google.cloud.translate.v3.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.DeleteGlossaryResponse.class, com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3.DeleteGlossaryResponse.class,
+              com.google.cloud.translate.v3.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.DeleteGlossaryResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +456,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +477,11 @@ public com.google.cloud.translate.v3.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3.DeleteGlossaryResponse result = new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.DeleteGlossaryResponse result =
+          new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -450,14 +492,10 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -465,38 +503,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DeleteGlossaryResponse
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.DeleteGlossaryResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -504,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.DeleteGlossaryResponse.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -542,31 +582,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,22 +616,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -600,20 +643,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -621,28 +665,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -652,17 +703,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -672,34 +727,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -720,14 +788,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -738,6 +807,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -746,9 +817,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -761,6 +832,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -778,6 +851,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -790,6 +865,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -800,11 +877,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -812,14 +892,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -827,8 +910,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -836,12 +924,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -849,6 +940,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -859,6 +951,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -881,6 +975,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -889,8 +985,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -901,6 +996,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -911,9 +1008,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -926,6 +1023,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -945,6 +1044,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -959,6 +1060,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -971,11 +1074,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -985,21 +1089,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1009,12 +1116,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3.DeleteGlossaryResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DeleteGlossaryResponse();
   }
@@ -1023,27 +1130,27 @@ public static com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DeleteGlossaryResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DeleteGlossaryResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1058,6 +1165,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
index e406e3597d8d..60741c6926e6 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
@@ -1,51 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DeleteGlossaryResponseOrBuilder extends
+public interface DeleteGlossaryResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -55,6 +84,8 @@ public interface DeleteGlossaryResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -62,10 +93,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -73,10 +107,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
index 7cc70c4faad6..451a98239d20 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageRequest) DetectLanguageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -27,45 +45,49 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, + com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -81,26 +103,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -115,7 +142,10 @@ public int getNumber() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -124,14 +154,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -146,17 +177,18 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -165,9 +197,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -181,6 +216,7 @@ public java.lang.String getParent() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -189,14 +225,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -210,16 +247,15 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -229,22 +265,28 @@ public java.lang.String getModel() { public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { @@ -255,8 +297,7 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -265,23 +306,24 @@ public java.lang.String getContent() { } } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -292,15 +334,19 @@ public java.lang.String getContent() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -309,30 +355,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -341,32 +387,34 @@ public java.lang.String getMimeType() { } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -382,20 +430,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -415,6 +464,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -430,17 +481,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -456,11 +509,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -468,6 +521,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -479,8 +533,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -493,12 +546,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        6);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
     getUnknownFields().writeTo(output);
   }
 
@@ -520,15 +569,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -538,26 +587,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageRequest other = (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3.DetectLanguageRequest other =
+        (com.google.cloud.translate.v3.DetectLanguageRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent()
-            .equals(other.getContent())) return false;
+        if (!getContent().equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -597,153 +642,155 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageRequest) com.google.cloud.translate.v3.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageRequest.class, com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3.DetectLanguageRequest.class, + com.google.cloud.translate.v3.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -758,9 +805,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -779,8 +826,11 @@ public com.google.cloud.translate.v3.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3.DetectLanguageRequest result = new com.google.cloud.translate.v3.DetectLanguageRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DetectLanguageRequest result = + new com.google.cloud.translate.v3.DetectLanguageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -812,38 +862,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DetectLanguageRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest)other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageRequest) other); } else { super.mergeFrom(other); return this; @@ -851,7 +902,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -867,19 +919,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest oth bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -907,42 +960,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -952,12 +1013,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -971,6 +1032,8 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -985,14 +1048,16 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1001,6 +1066,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1015,16 +1082,17 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1032,6 +1100,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1046,19 +1116,25 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1073,7 +1149,10 @@ public Builder setParent(
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1083,6 +1162,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1097,13 +1178,17 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1113,6 +1198,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1126,13 +1213,13 @@ public Builder setParentBytes(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1141,6 +1228,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1154,15 +1243,14 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1170,6 +1258,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1183,18 +1273,22 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1208,6 +1302,7 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1217,6 +1312,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1230,12 +1327,14 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1244,11 +1343,14 @@ public Builder setModelBytes( } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -1256,11 +1358,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -1270,8 +1375,7 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1282,24 +1386,25 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1309,28 +1414,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1342,17 +1454,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1362,19 +1478,21 @@ public Builder setContentBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1383,21 +1501,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1405,30 +1524,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1438,18 +1564,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1457,21 +1587,19 @@ public Builder setMimeTypeBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1480,10 +1608,13 @@ public Builder setMimeTypeBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1499,20 +1630,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1532,6 +1664,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1547,17 +1681,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1573,23 +1709,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1604,23 +1742,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1635,17 +1772,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1660,16 +1800,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1679,12 +1817,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3.DetectLanguageRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageRequest();
   }
@@ -1693,27 +1831,27 @@ public static com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1728,6 +1866,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
index 98adaa711c0b..4a1934406da6 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageRequestOrBuilder extends
+public interface DetectLanguageRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -22,11 +40,16 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -41,13 +64,17 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -61,10 +88,13 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -78,63 +108,78 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -151,6 +196,8 @@ public interface DetectLanguageRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -165,15 +212,13 @@ public interface DetectLanguageRequestOrBuilder extends
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -188,9 +233,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -206,11 +252,13 @@ boolean containsLabels(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -225,8 +273,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   com.google.cloud.translate.v3.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
index 9c1c7cdd3613..bdcbc1a96fda 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
@@ -1,52 +1,74 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectLanguageResponse) DetectLanguageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, + com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -59,6 +81,8 @@ public java.util.List getLanguag
     return languages_;
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -67,11 +91,13 @@ public java.util.List getLanguag
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -104,12 +134,12 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
-      int index) {
+  public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +151,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +165,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +175,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.DetectLanguageResponse other = (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3.DetectLanguageResponse other =
+        (com.google.cloud.translate.v3.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -177,131 +205,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectLanguageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectLanguageResponse) com.google.cloud.translate.v3.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectLanguageResponse.class, com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3.DetectLanguageResponse.class, + com.google.cloud.translate.v3.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectLanguageResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -338,14 +370,18 @@ public com.google.cloud.translate.v3.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3.DetectLanguageResponse result = new com.google.cloud.translate.v3.DetectLanguageResponse(this); + com.google.cloud.translate.v3.DetectLanguageResponse result = + new com.google.cloud.translate.v3.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DetectLanguageResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +401,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectLanguageResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse)other); + return mergeFrom((com.google.cloud.translate.v3.DetectLanguageResponse) other); } else { super.mergeFrom(other); return this; @@ -404,7 +441,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +461,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageResponse ot languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +496,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.DetectedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +525,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3.DetectedLanguage, + com.google.cloud.translate.v3.DetectedLanguage.Builder, + com.google.cloud.translate.v3.DetectedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -515,6 +563,8 @@ public java.util.List getLanguag
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -530,6 +580,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -545,6 +597,8 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -552,8 +606,7 @@ public com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder setLanguages(
-        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder setLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -567,6 +620,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -586,6 +641,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -607,6 +664,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -614,8 +673,7 @@ public Builder addLanguages(com.google.cloud.translate.v3.DetectedLanguage value
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public Builder addLanguages(
-        int index, com.google.cloud.translate.v3.DetectedLanguage value) {
+    public Builder addLanguages(int index, com.google.cloud.translate.v3.DetectedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -629,6 +687,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -648,6 +708,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -667,6 +729,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -678,8 +742,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +750,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -705,6 +770,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -723,6 +790,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -730,11 +799,12 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilder(int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -745,11 +815,14 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder getLanguagesBuilde
     public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -757,8 +830,8 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +839,8 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -774,10 +849,12 @@ public com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBui
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -785,12 +862,13 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(
-        int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilder(int index) {
+      return getLanguagesFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The most probable language detected by the Translation API. For each
      * request, the Translation API will always return only one result.
@@ -798,27 +876,30 @@ public com.google.cloud.translate.v3.DetectedLanguage.Builder addLanguagesBuilde
      *
      * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder> 
+            com.google.cloud.translate.v3.DetectedLanguage,
+            com.google.cloud.translate.v3.DetectedLanguage.Builder,
+            com.google.cloud.translate.v3.DetectedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.DetectedLanguage, com.google.cloud.translate.v3.DetectedLanguage.Builder, com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.DetectedLanguage,
+                com.google.cloud.translate.v3.DetectedLanguage.Builder,
+                com.google.cloud.translate.v3.DetectedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +909,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3.DetectLanguageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectLanguageResponse();
   }
@@ -842,27 +923,27 @@ public static com.google.cloud.translate.v3.DetectLanguageResponse getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
index 10d47edded3c..c2923821ebf9 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface DetectLanguageResponseOrBuilder extends
+public interface DetectLanguageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -15,9 +33,10 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -27,6 +46,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   com.google.cloud.translate.v3.DetectedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -36,6 +57,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -43,9 +66,11 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * The most probable language detected by the Translation API. For each
    * request, the Translation API will always return only one result.
@@ -53,6 +78,5 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
similarity index 69%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
index 5e22078de8e9..c61021ef9e0a 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ -public final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DetectedLanguage) DetectedLanguageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, + com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -61,30 +84,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -108,6 +134,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +146,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -140,8 +166,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,18 +176,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.DetectedLanguage other = (com.google.cloud.translate.v3.DetectedLanguage) obj; + com.google.cloud.translate.v3.DetectedLanguage other = + (com.google.cloud.translate.v3.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,139 +201,142 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DetectedLanguage) com.google.cloud.translate.v3.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DetectedLanguage.class, com.google.cloud.translate.v3.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3.DetectedLanguage.class, + com.google.cloud.translate.v3.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3.DetectedLanguage.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; } @java.lang.Override @@ -341,8 +368,11 @@ public com.google.cloud.translate.v3.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3.DetectedLanguage result = new com.google.cloud.translate.v3.DetectedLanguage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DetectedLanguage result = + new com.google.cloud.translate.v3.DetectedLanguage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -361,38 +391,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DetectedLanguage result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage)other); + return mergeFrom((com.google.cloud.translate.v3.DetectedLanguage) other); } else { super.mergeFrom(other); return this; @@ -435,22 +466,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,23 +494,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object languageCode_ = ""; /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -485,21 +522,22 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -507,30 +545,37 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -540,18 +585,22 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * The ISO-639 language code of the source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -559,13 +608,16 @@ public Builder setLanguageCodeBytes( return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -573,11 +625,14 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ @@ -589,11 +644,14 @@ public Builder setConfidence(float value) { return this; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -602,9 +660,9 @@ public Builder clearConfidence() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +672,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DetectedLanguage) private static final com.google.cloud.translate.v3.DetectedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DetectedLanguage(); } @@ -628,27 +686,27 @@ public static com.google.cloud.translate.v3.DetectedLanguage getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,6 +721,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java similarity index 56% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java index 309303d82e0e..1933a7deb723 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DetectedLanguageOrBuilder extends +public interface DetectedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The ISO-639 language code of the source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java index 95d687cfdb55..9cc9719ccf38 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ -public final class DocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentInputConfig) DocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, + com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -68,30 +91,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -99,11 +128,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -116,12 +148,15 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -129,22 +164,27 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -155,15 +195,18 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -178,6 +221,7 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
    * 
* * string mime_type = 4; + * * @return The mimeType. */ @java.lang.Override @@ -186,14 +230,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -208,16 +253,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -226,6 +270,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,11 +282,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) source_); + output.writeBytes(1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3.GcsSource) source_); @@ -259,13 +302,14 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.translate.v3.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -278,24 +322,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentInputConfig other = (com.google.cloud.translate.v3.DocumentInputConfig) obj; + com.google.cloud.translate.v3.DocumentInputConfig other = + (com.google.cloud.translate.v3.DocumentInputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 2: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -331,131 +373,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentInputConfig) com.google.cloud.translate.v3.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentInputConfig.class, com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentInputConfig.class, + com.google.cloud.translate.v3.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; } @java.lang.Override @@ -491,8 +537,11 @@ public com.google.cloud.translate.v3.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentInputConfig result = new com.google.cloud.translate.v3.DocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DocumentInputConfig result = + new com.google.cloud.translate.v3.DocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -508,8 +557,7 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -518,38 +566,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentInputConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.DocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -557,24 +606,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -602,29 +655,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,12 +689,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -652,22 +707,28 @@ public Builder clearSource() { private int bitField0_; /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -677,27 +738,35 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -710,14 +779,20 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -725,12 +800,15 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -748,6 +826,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -769,6 +849,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -776,8 +858,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -788,6 +869,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -797,10 +880,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -816,6 +902,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -840,6 +928,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -851,6 +941,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -870,6 +962,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -878,14 +972,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -898,6 +997,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
 
     private java.lang.Object mimeType_ = "";
     /**
+     *
+     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -912,13 +1013,13 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * 
* * string mime_type = 4; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -927,6 +1028,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -941,15 +1044,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -957,6 +1059,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -971,18 +1075,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -997,6 +1105,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 4; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1006,6 +1115,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -1020,21 +1131,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1044,12 +1157,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentInputConfig) private static final com.google.cloud.translate.v3.DocumentInputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentInputConfig(); } @@ -1058,27 +1171,27 @@ public static com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1093,6 +1206,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java index 50777c79ecb4..0b19f21c69b1 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentInputConfigOrBuilder extends +public interface DocumentInputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -57,6 +87,8 @@ public interface DocumentInputConfigOrBuilder extends
   com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -71,10 +103,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -89,10 +124,10 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java similarity index 81% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java index d82dcac7e052..0e63cb5920fb 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentOutputConfig) DocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -67,24 +90,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -131,7 +158,10 @@ public int getNumber() {
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -139,6 +169,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -185,17 +217,22 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -242,20 +279,25 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -269,6 +311,7 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -277,14 +320,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -298,16 +342,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -316,6 +359,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_); } @@ -345,8 +388,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.translate.v3.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -359,20 +403,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentOutputConfig other = (com.google.cloud.translate.v3.DocumentOutputConfig) obj; + com.google.cloud.translate.v3.DocumentOutputConfig other = + (com.google.cloud.translate.v3.DocumentOutputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -404,131 +447,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentOutputConfig) com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentOutputConfig.class, com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3.DocumentOutputConfig.class, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +590,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -564,8 +611,11 @@ public com.google.cloud.translate.v3.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3.DocumentOutputConfig result = new com.google.cloud.translate.v3.DocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.DocumentOutputConfig result = + new com.google.cloud.translate.v3.DocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -581,8 +631,7 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentOutputConfig re private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -591,38 +640,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.DocumentOutputConf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.DocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -630,20 +680,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -671,24 +724,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -698,12 +752,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -716,8 +770,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -764,7 +823,10 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -772,6 +834,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -818,7 +882,10 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override @@ -836,6 +903,8 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -882,7 +951,9 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -898,6 +969,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -944,7 +1017,9 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination( com.google.cloud.translate.v3.GcsDestination.Builder builderForValue) { @@ -958,6 +1033,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1004,14 +1081,19 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.translate.v3.GcsDestination.newBuilder( + (com.google.cloud.translate.v3.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -1027,6 +1109,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1073,7 +1157,9 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1092,6 +1178,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1138,12 +1226,16 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1190,7 +1282,9 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1204,6 +1298,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1250,17 +1346,24 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * bucket.
      * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1273,6 +1376,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1286,13 +1391,13 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1301,6 +1406,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1314,15 +1421,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1330,6 +1436,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1343,18 +1451,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1368,6 +1480,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1377,6 +1490,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1390,21 +1505,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1414,12 +1531,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentOutputConfig) private static final com.google.cloud.translate.v3.DocumentOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentOutputConfig(); } @@ -1428,27 +1545,27 @@ public static com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1463,6 +1580,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java similarity index 87% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java index 4b5da369adef..cf370a01aa79 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentOutputConfigOrBuilder extends +public interface DocumentOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -54,11 +72,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -105,11 +128,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -156,11 +184,15 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -174,10 +206,13 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -191,10 +226,10 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java similarity index 72% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java index 599656c29380..751649958567 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ -public final class DocumentTranslation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.DocumentTranslation) DocumentTranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -27,28 +45,32 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, + com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -56,14 +78,16 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List - getByteStreamOutputsList() { + public java.util.List getByteStreamOutputsList() { return byteStreamOutputs_; } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -71,12 +95,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -84,6 +111,7 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -92,14 +120,18 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -139,9 +171,12 @@ public java.lang.String getMimeType() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -151,6 +186,7 @@ public java.lang.String getMimeType() {
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -159,14 +195,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -176,16 +213,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -194,6 +230,7 @@ public java.lang.String getDetectedLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -228,8 +264,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -248,19 +284,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3.DocumentTranslation other = (com.google.cloud.translate.v3.DocumentTranslation) obj; + com.google.cloud.translate.v3.DocumentTranslation other = + (com.google.cloud.translate.v3.DocumentTranslation) obj; - if (!getByteStreamOutputsList() - .equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,131 +320,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.DocumentTranslation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.DocumentTranslation) com.google.cloud.translate.v3.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.DocumentTranslation.class, com.google.cloud.translate.v3.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3.DocumentTranslation.class, + com.google.cloud.translate.v3.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3.DocumentTranslation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; } @java.lang.Override @@ -443,14 +481,18 @@ public com.google.cloud.translate.v3.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3.DocumentTranslation result = new com.google.cloud.translate.v3.DocumentTranslation(this); + com.google.cloud.translate.v3.DocumentTranslation result = + new com.google.cloud.translate.v3.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.DocumentTranslation result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -472,38 +514,39 @@ private void buildPartial0(com.google.cloud.translate.v3.DocumentTranslation res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation)other); + return mergeFrom((com.google.cloud.translate.v3.DocumentTranslation) other); } else { super.mergeFrom(other); return this; @@ -511,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) + return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -558,28 +602,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,16 +637,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); + private java.util.List byteStreamOutputs_ = + java.util.Collections.emptyList(); + private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = + new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -606,14 +660,17 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ - public java.util.List - getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; + public java.util.List getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(byteStreamOutputs_) + : byteStreamOutputs_; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -621,12 +678,15 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -634,6 +694,7 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -641,6 +702,8 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -648,19 +711,23 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -668,17 +735,22 @@ public Builder setByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -686,18 +758,20 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -705,6 +779,7 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -716,18 +791,20 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -736,20 +813,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -757,28 +835,35 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -788,17 +873,21 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -808,6 +897,8 @@ public Builder setMimeTypeBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -817,13 +908,13 @@ public Builder setMimeTypeBytes(
      * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -832,6 +923,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -841,15 +934,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -857,6 +949,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -866,18 +960,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -887,6 +985,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 3; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -896,6 +995,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -905,21 +1006,23 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -929,12 +1032,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.DocumentTranslation) private static final com.google.cloud.translate.v3.DocumentTranslation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.DocumentTranslation(); } @@ -943,27 +1046,27 @@ public static com.google.cloud.translate.v3.DocumentTranslation getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -978,6 +1081,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java similarity index 76% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java index a0de308766f1..f3f741b7c96f 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface DocumentTranslationOrBuilder extends +public interface DocumentTranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -15,10 +33,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -26,10 +47,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -37,32 +61,40 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -72,10 +104,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -85,8 +120,8 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java index dbeaf322df16..a9f4428e1c59 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, + com.google.cloud.translate.v3.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -81,16 +105,15 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -99,6 +122,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -135,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3.GcsDestination other = (com.google.cloud.translate.v3.GcsDestination) obj; + com.google.cloud.translate.v3.GcsDestination other = + (com.google.cloud.translate.v3.GcsDestination) obj; - if (!getOutputUriPrefix() - .equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,132 +185,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsDestination) com.google.cloud.translate.v3.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsDestination.class, com.google.cloud.translate.v3.GcsDestination.Builder.class); + com.google.cloud.translate.v3.GcsDestination.class, + com.google.cloud.translate.v3.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; } @java.lang.Override @@ -318,8 +345,11 @@ public com.google.cloud.translate.v3.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3.GcsDestination buildPartial() { - com.google.cloud.translate.v3.GcsDestination result = new com.google.cloud.translate.v3.GcsDestination(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GcsDestination result = + new com.google.cloud.translate.v3.GcsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -335,38 +365,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsDestination result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3.GcsDestination)other); + return mergeFrom((com.google.cloud.translate.v3.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -406,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -426,10 +459,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -439,13 +475,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -454,6 +490,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -463,15 +501,14 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -479,6 +516,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -488,18 +527,22 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -509,6 +552,7 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -518,6 +562,8 @@ public Builder clearOutputUriPrefix() { return this; } /** + * + * *
      * Required. The bucket used in 'output_uri_prefix' must exist and there must
      * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -527,21 +573,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -551,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsDestination) private static final com.google.cloud.translate.v3.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsDestination(); } @@ -565,27 +613,27 @@ public static com.google.cloud.translate.v3.GcsDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -600,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java similarity index 64% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java index 70032240ccc2..83501d8cc6bd 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -17,10 +35,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** + * + * *
    * Required. The bucket used in 'output_uri_prefix' must exist and there must
    * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with
@@ -30,8 +51,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString - getOutputUriPrefixBytes(); + com.google.protobuf.ByteString getOutputUriPrefixBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java similarity index 67% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java index 9be42c2bf528..4da305a923c0 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, + com.google.cloud.translate.v3.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ @java.lang.Override @@ -60,29 +83,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -91,6 +114,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -127,15 +150,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GcsSource)) { return super.equals(obj); } com.google.cloud.translate.v3.GcsSource other = (com.google.cloud.translate.v3.GcsSource) obj; - if (!getInputUri() - .equals(other.getInputUri())) return false; + if (!getInputUri().equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +176,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsSource) com.google.cloud.translate.v3.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GcsSource.class, com.google.cloud.translate.v3.GcsSource.Builder.class); + com.google.cloud.translate.v3.GcsSource.class, + com.google.cloud.translate.v3.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3.GcsSource.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GcsSource_descriptor; } @java.lang.Override @@ -310,8 +336,11 @@ public com.google.cloud.translate.v3.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3.GcsSource buildPartial() { - com.google.cloud.translate.v3.GcsSource result = new com.google.cloud.translate.v3.GcsSource(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GcsSource result = + new com.google.cloud.translate.v3.GcsSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +356,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GcsSource result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3.GcsSource)other); + return mergeFrom((com.google.cloud.translate.v3.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -398,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +450,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputUri_ = ""; /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -442,20 +477,21 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -463,28 +499,35 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -494,26 +537,30 @@ public Builder clearInputUri() { return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsSource) private static final com.google.cloud.translate.v3.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsSource(); } @@ -537,27 +584,27 @@ public static com.google.cloud.translate.v3.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java index d2e2d20ee1e1..08a1d20b8daa 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ java.lang.String getInputUri(); /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString - getInputUriBytes(); + com.google.protobuf.ByteString getInputUriBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java index 835dc64c2b00..d25600ea3926 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetGlossaryRequest) GetGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, + com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetGlossaryRequest other = (com.google.cloud.translate.v3.GetGlossaryRequest) obj; + com.google.cloud.translate.v3.GetGlossaryRequest other = + (com.google.cloud.translate.v3.GetGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +181,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetGlossaryRequest) com.google.cloud.translate.v3.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetGlossaryRequest.class, com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3.GetGlossaryRequest.class, + com.google.cloud.translate.v3.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +341,11 @@ public com.google.cloud.translate.v3.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3.GetGlossaryRequest result = new com.google.cloud.translate.v3.GetGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GetGlossaryRequest result = + new com.google.cloud.translate.v3.GetGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +361,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GetGlossaryRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3.GetGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +456,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +485,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +509,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +551,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetGlossaryRequest) private static final com.google.cloud.translate.v3.GetGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetGlossaryRequest(); } @@ -537,27 +600,27 @@ public static com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..bddba5a37dcb --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public interface GetGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java index 58b8dd01ff91..35a3d6bc65f8 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -27,28 +45,32 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -65,7 +87,10 @@ protected java.lang.Object newInstance(
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -74,14 +99,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -98,17 +124,18 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -117,9 +144,12 @@ public java.lang.String getParent() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -127,6 +157,7 @@ public java.lang.String getParent() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ @java.lang.Override @@ -135,14 +166,15 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -150,16 +182,15 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -168,9 +199,12 @@ public java.lang.String getDisplayLanguageCode() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -188,6 +222,7 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -221,16 +257,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -239,6 +274,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -287,19 +322,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getDisplayLanguageCode() - .equals(other.getDisplayLanguageCode())) return false; - if (!getModel() - .equals(other.getModel())) return false; + com.google.cloud.translate.v3.GetSupportedLanguagesRequest other = + (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; + if (!getModel().equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,131 +356,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GetSupportedLanguagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.cloud.translate.v3.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.GetSupportedLanguagesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override @@ -480,8 +518,11 @@ public com.google.cloud.translate.v3.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = + new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -503,38 +544,39 @@ private void buildPartial0(com.google.cloud.translate.v3.GetSupportedLanguagesRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest)other); + return mergeFrom((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) other); } else { super.mergeFrom(other); return this; @@ -542,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GetSupportedLanguagesRequest other) { - if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -584,27 +627,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,10 +661,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -634,14 +684,16 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -650,6 +702,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -666,16 +720,17 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -683,6 +738,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -699,19 +756,25 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -728,7 +791,10 @@ public Builder setParent(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -738,6 +804,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -754,13 +822,17 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -770,6 +842,8 @@ public Builder setParentBytes( private java.lang.Object displayLanguageCode_ = ""; /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -777,13 +851,13 @@ public Builder setParentBytes(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -792,6 +866,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -799,15 +875,14 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -815,6 +890,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -822,18 +899,22 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -841,6 +922,7 @@ public Builder setDisplayLanguageCode(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -850,6 +932,8 @@ public Builder clearDisplayLanguageCode() { return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -857,12 +941,14 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -872,6 +958,8 @@ public Builder setDisplayLanguageCodeBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -889,13 +977,13 @@ public Builder setDisplayLanguageCodeBytes(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -904,6 +992,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -921,15 +1011,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -937,6 +1026,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -954,18 +1045,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -983,6 +1078,7 @@ public Builder setModel(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -992,6 +1088,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -1009,21 +1107,23 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +1133,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GetSupportedLanguagesRequest) private static final com.google.cloud.translate.v3.GetSupportedLanguagesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(); } @@ -1047,27 +1147,27 @@ public static com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,6 +1182,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java index f9e18ec31480..e1201914f13a 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface GetSupportedLanguagesRequestOrBuilder extends +public interface GetSupportedLanguagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -24,11 +42,16 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -45,13 +68,17 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -59,10 +86,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -70,12 +100,14 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString - getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -93,10 +125,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -114,8 +149,8 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java index d96c78b5bf6f..11fd69381128 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Represents a glossary built from user-provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ -public final class Glossary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Glossary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary) GlossaryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Glossary() { name_ = ""; displayName_ = ""; @@ -26,88 +44,103 @@ private Glossary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, + com.google.cloud.translate.v3.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder extends + public interface LanguageCodePairOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -115,34 +148,39 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -151,30 +189,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The ISO-639 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -183,15 +221,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -200,30 +242,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The ISO-639 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -232,6 +274,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -274,17 +316,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodePair other = + (com.google.cloud.translate.v3.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,89 +347,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -398,39 +444,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodePair} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodePair) com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; } @java.lang.Override @@ -462,8 +510,11 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Glossary.LanguageCodePair result = + new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -482,38 +533,41 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodePa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair)other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair) other); } else { super.mergeFrom(other); return this; @@ -521,7 +575,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodePair other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) + return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -558,22 +613,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,23 +641,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -608,21 +669,22 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -630,30 +692,37 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -663,18 +732,22 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
        * Required. The ISO-639 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -684,19 +757,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -705,21 +780,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -727,30 +803,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -760,24 +843,29 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
        * Required. The ISO-639 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -790,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodePair) private static final com.google.cloud.translate.v3.Glossary.LanguageCodePair DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodePair(); } @@ -804,27 +892,28 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,14 +928,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface LanguageCodesSetOrBuilder extends + public interface LanguageCodesSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -854,11 +945,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -866,10 +959,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -877,11 +973,14 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -889,58 +988,64 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString - getLanguageCodesBytes(int index); + com.google.protobuf.ByteString getLanguageCodesBytes(int index); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodesSet() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -948,13 +1053,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_; } /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -962,12 +1069,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -975,6 +1085,7 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -982,6 +1093,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * The ISO-639 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -989,15 +1102,16 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1009,8 +1123,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1039,15 +1152,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet other = + (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1069,89 +1182,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1161,52 +1279,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary.LanguageCodesSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary.LanguageCodesSet) com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override @@ -1225,8 +1344,11 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = + new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1243,38 +1365,41 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary.LanguageCodesS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet)other); + return mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) other); } else { super.mergeFrom(other); return this; @@ -1282,7 +1407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.Glossary.LanguageCodesSet other) { - if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) + return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1319,18 +1445,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1340,10 +1468,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1351,6 +1481,8 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1358,14 +1490,16 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1373,12 +1507,15 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1386,6 +1523,7 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1393,6 +1531,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1400,14 +1540,16 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1415,13 +1557,15 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1429,6 +1573,8 @@ public Builder setLanguageCodes( return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1436,12 +1582,14 @@ public Builder setLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1449,6 +1597,8 @@ public Builder addLanguageCodes( return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1456,19 +1606,20 @@ public Builder addLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes( - java.lang.Iterable values) { + public Builder addAllLanguageCodes(java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1476,16 +1627,19 @@ public Builder addAllLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * The ISO-639 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1493,12 +1647,14 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; + * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1506,6 +1662,7 @@ public Builder addLanguageCodesBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1518,12 +1675,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary.LanguageCodesSet) private static final com.google.cloud.translate.v3.Glossary.LanguageCodesSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(); } @@ -1532,27 +1689,28 @@ public static com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1567,19 +1725,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int languagesCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object languages_; + public enum LanguagesCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; + private LanguagesCase(int value) { this.value = value; } @@ -1595,33 +1756,40 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: return LANGUAGE_PAIR; - case 4: return LANGUAGE_CODES_SET; - case 0: return LANGUAGES_NOT_SET; - default: return null; + case 3: + return LANGUAGE_PAIR; + case 4: + return LANGUAGE_CODES_SET; + case 0: + return LANGUAGES_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -1630,30 +1798,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1663,11 +1831,14 @@ public java.lang.String getName() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1675,21 +1846,26 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -1697,20 +1873,24 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1718,21 +1898,26 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
@@ -1740,9 +1925,10 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1750,12 +1936,15 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1763,19 +1952,26 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1785,17 +1981,22 @@ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+    return inputConfig_ == null
+        ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
+        : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -1806,11 +2007,15 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -1818,11 +2023,15 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ @java.lang.Override @@ -1830,11 +2039,14 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -1844,11 +2056,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1856,11 +2072,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1868,11 +2088,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1880,14 +2103,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -1896,29 +2123,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1927,6 +2154,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1938,8 +2166,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1977,28 +2204,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, displayName_); @@ -2011,43 +2236,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Glossary)) { return super.equals(obj); } com.google.cloud.translate.v3.Glossary other = (com.google.cloud.translate.v3.Glossary) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (getEntryCount() - != other.getEntryCount()) return false; + if (getEntryCount() != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair() - .equals(other.getLanguagePair())) return false; + if (!getLanguagePair().equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet() - .equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2098,132 +2315,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Glossary parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Glossary parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Glossary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a glossary built from user-provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Glossary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Glossary) com.google.cloud.translate.v3.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Glossary.class, com.google.cloud.translate.v3.Glossary.Builder.class); + com.google.cloud.translate.v3.Glossary.class, + com.google.cloud.translate.v3.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3.Glossary.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2258,9 +2479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Glossary_descriptor; } @java.lang.Override @@ -2279,8 +2500,11 @@ public com.google.cloud.translate.v3.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3.Glossary buildPartial() { - com.google.cloud.translate.v3.Glossary result = new com.google.cloud.translate.v3.Glossary(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Glossary result = + new com.google.cloud.translate.v3.Glossary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2292,22 +2516,17 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = inputConfigBuilder_ == null - ? inputConfig_ - : inputConfigBuilder_.build(); + result.inputConfig_ = + inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; @@ -2317,12 +2536,10 @@ private void buildPartial0(com.google.cloud.translate.v3.Glossary result) { private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && - languagePairBuilder_ != null) { + if (languagesCase_ == 3 && languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && - languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2331,38 +2548,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.Glossary result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Glossary) { - return mergeFrom((com.google.cloud.translate.v3.Glossary)other); + return mergeFrom((com.google.cloud.translate.v3.Glossary) other); } else { super.mergeFrom(other); return this; @@ -2394,17 +2612,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3.Glossary other) { onChanged(); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: { - break; - } + case LANGUAGE_PAIR: + { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: + { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2432,62 +2653,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - input.readMessage( - getLanguagePairFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2497,12 +2718,12 @@ public Builder mergeFrom( } // finally return this; } + private int languagesCase_ = 0; private java.lang.Object languages_; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public Builder clearLanguages() { @@ -2516,19 +2737,21 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2537,21 +2760,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2559,30 +2783,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2592,18 +2823,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2612,13 +2847,19 @@ public Builder setNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodePair, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> + languagePairBuilder_; /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2626,11 +2867,14 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override @@ -2648,6 +2892,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2668,6 +2914,8 @@ public Builder setLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCo return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2686,18 +2934,25 @@ public Builder setLanguagePair( return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair( + com.google.cloud.translate.v3.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 && - languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 3 + && languages_ + != com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3.Glossary.LanguageCodePair.newBuilder( + (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2713,6 +2968,8 @@ public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.Language return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2736,16 +2993,21 @@ public Builder clearLanguagePair() { return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder + getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2753,7 +3015,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder getLangua * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -2764,6 +3027,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLangu } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2771,14 +3036,19 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLangu * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodePair, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodePair, com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodePair, + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -2790,13 +3060,19 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLangu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> + languageCodesSetBuilder_; /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -2804,11 +3080,14 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return The languageCodesSet. */ @java.lang.Override @@ -2826,13 +3105,16 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesS } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet( + com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2846,6 +3128,8 @@ public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.Langua return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2864,18 +3148,25 @@ public Builder setLanguageCodesSet( return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet( + com.google.cloud.translate.v3.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 && - languages_ != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 4 + && languages_ + != com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.newBuilder( + (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2891,6 +3182,8 @@ public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.Lang return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2914,16 +3207,21 @@ public Builder clearLanguageCodesSet() { return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ - public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder + getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2931,7 +3229,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder getLangua * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -2942,6 +3241,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2949,14 +3250,19 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { languages_ = com.google.cloud.translate.v3.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.Glossary.LanguageCodesSet, com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -2969,36 +3275,49 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu private com.google.cloud.translate.v3.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.translate.v3.GlossaryInputConfig, + com.google.cloud.translate.v3.GlossaryInputConfig.Builder, + com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ public com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3020,6 +3339,8 @@ public Builder setInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3039,6 +3360,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3048,9 +3371,10 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          inputConfig_ != null &&
-          inputConfig_ != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && inputConfig_ != null
+            && inputConfig_
+                != com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -3063,6 +3387,8 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfi
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3081,6 +3407,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3094,6 +3422,8 @@ public com.google.cloud.translate.v3.GlossaryInputConfig.Builder getInputConfigB
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3105,11 +3435,14 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null ?
-            com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+        return inputConfig_ == null
+            ? com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()
+            : inputConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3118,26 +3451,32 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
      * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder> 
+            com.google.cloud.translate.v3.GlossaryInputConfig,
+            com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
+            com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GlossaryInputConfig, com.google.cloud.translate.v3.GlossaryInputConfig.Builder, com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
-                getInputConfig(),
-                getParentForChildren(),
-                isClean());
+        inputConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GlossaryInputConfig,
+                com.google.cloud.translate.v3.GlossaryInputConfig.Builder,
+                com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder>(
+                getInputConfig(), getParentForChildren(), isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_ ;
+    private int entryCount_;
     /**
+     *
+     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -3145,11 +3484,14 @@ public int getEntryCount() { return entryCount_; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3161,11 +3503,14 @@ public Builder setEntryCount(int value) { return this; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3177,39 +3522,58 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3225,14 +3589,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3243,17 +3610,21 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3266,11 +3637,15 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3283,11 +3658,15 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3295,36 +3674,48 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3332,24 +3723,35 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3360,11 +3762,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3380,14 +3785,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3398,17 +3805,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3421,11 +3831,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3438,11 +3851,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3450,36 +3866,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -3487,18 +3911,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3507,20 +3933,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3528,28 +3955,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3559,26 +3993,30 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. The display name of the glossary.
      * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3588,12 +4026,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Glossary) private static final com.google.cloud.translate.v3.Glossary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Glossary(); } @@ -3602,27 +4040,27 @@ public static com.google.cloud.translate.v3.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3637,6 +4075,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java similarity index 78% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java index 61296364dabe..51e6da2ec7e3 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GlossaryInputConfig) GlossaryInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GlossaryInputConfig() { - } + + private GlossaryInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, + com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -109,6 +135,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -116,6 +143,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -141,16 +170,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -180,12 +212,13 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -197,8 +230,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
@@ -212,8 +244,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -223,18 +256,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.GlossaryInputConfig other = (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3.GlossaryInputConfig other =
+        (com.google.cloud.translate.v3.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -264,131 +297,135 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.GlossaryInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GlossaryInputConfig) com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.GlossaryInputConfig.class, com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3.GlossaryInputConfig.class, + com.google.cloud.translate.v3.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -423,8 +460,11 @@ public com.google.cloud.translate.v3.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3.GlossaryInputConfig result = new com.google.cloud.translate.v3.GlossaryInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.GlossaryInputConfig result = + new com.google.cloud.translate.v3.GlossaryInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -437,8 +477,7 @@ private void buildPartial0(com.google.cloud.translate.v3.GlossaryInputConfig res private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -447,38 +486,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.GlossaryInputConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.GlossaryInputConfig) other); } else { super.mergeFrom(other); return this; @@ -486,15 +526,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.GlossaryInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -522,19 +565,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,12 +587,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -562,8 +605,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -589,6 +637,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -596,6 +645,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -621,6 +672,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -638,6 +690,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -678,6 +732,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -704,8 +760,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -716,6 +771,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -744,10 +801,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -763,6 +823,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -806,6 +868,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -836,6 +900,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -874,6 +940,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -901,14 +969,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -918,9 +991,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -930,12 +1003,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3.GlossaryInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GlossaryInputConfig();
   }
@@ -944,27 +1017,27 @@ public static com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GlossaryInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GlossaryInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -979,6 +1052,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
similarity index 84%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
index fb22a8f7160c..e759dd0a8775 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryInputConfigOrBuilder extends
+public interface GlossaryInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -33,10 +51,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -62,10 +83,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
similarity index 100%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
similarity index 81%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
index 43319bf6f093..1a660f1ad122 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
@@ -1,53 +1,82 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface GlossaryOrBuilder extends
+public interface GlossaryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -57,24 +86,32 @@ public interface GlossaryOrBuilder extends com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * .google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; + * * @return The languageCodesSet. */ com.google.cloud.translate.v3.Glossary.LanguageCodesSet getLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
@@ -84,26 +121,34 @@ public interface GlossaryOrBuilder extends com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ com.google.cloud.translate.v3.GlossaryInputConfig getInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -114,88 +159,118 @@ public interface GlossaryOrBuilder extends
   com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ int getEntryCount(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. The display name of the glossary.
    * 
* * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); com.google.cloud.translate.v3.Glossary.LanguagesCase getLanguagesCase(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java index 67e7ac456466..235db7d84b73 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, + com.google.cloud.translate.v3.InputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -67,26 +90,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -95,6 +123,7 @@ public int getNumber() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -103,14 +132,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -119,16 +149,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -138,6 +167,8 @@ public java.lang.String getMimeType() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -160,6 +191,7 @@ public java.lang.String getMimeType() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -167,6 +199,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -189,16 +223,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3.GcsSource) source_; + return (com.google.cloud.translate.v3.GcsSource) source_; } return com.google.cloud.translate.v3.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -225,12 +262,13 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3.GcsSource) source_;
+      return (com.google.cloud.translate.v3.GcsSource) source_;
     }
     return com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -242,8 +280,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -263,8 +300,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.translate.v3.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.translate.v3.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,20 +312,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.InputConfig other = (com.google.cloud.translate.v3.InputConfig) obj;
+    com.google.cloud.translate.v3.InputConfig other =
+        (com.google.cloud.translate.v3.InputConfig) obj;
 
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -318,132 +355,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.InputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.InputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.InputConfig) com.google.cloud.translate.v3.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.InputConfig.class, com.google.cloud.translate.v3.InputConfig.Builder.class); + com.google.cloud.translate.v3.InputConfig.class, + com.google.cloud.translate.v3.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.InputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_InputConfig_descriptor; } @java.lang.Override @@ -479,8 +520,11 @@ public com.google.cloud.translate.v3.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.InputConfig buildPartial() { - com.google.cloud.translate.v3.InputConfig result = new com.google.cloud.translate.v3.InputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.InputConfig result = + new com.google.cloud.translate.v3.InputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -496,8 +540,7 @@ private void buildPartial0(com.google.cloud.translate.v3.InputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -506,38 +549,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.InputConfig result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3.InputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -552,13 +596,15 @@ public Builder mergeFrom(com.google.cloud.translate.v3.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -586,24 +632,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,12 +660,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -632,6 +679,8 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -640,13 +689,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -655,6 +704,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -663,15 +714,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -679,6 +729,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -687,18 +739,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -707,6 +763,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -716,6 +773,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -724,12 +783,14 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -738,8 +799,13 @@ public Builder setMimeTypeBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3.GcsSource, + com.google.cloud.translate.v3.GcsSource.Builder, + com.google.cloud.translate.v3.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -762,6 +828,7 @@ public Builder setMimeTypeBytes(
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -769,6 +836,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -791,6 +860,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -808,6 +878,8 @@ public com.google.cloud.translate.v3.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -845,6 +917,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -868,8 +942,7 @@ public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource value) {
      *
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
-    public Builder setGcsSource(
-        com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
+    public Builder setGcsSource(com.google.cloud.translate.v3.GcsSource.Builder builderForValue) {
       if (gcsSourceBuilder_ == null) {
         source_ = builderForValue.build();
         onChanged();
@@ -880,6 +953,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -905,10 +980,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3.GcsSource.newBuilder((com.google.cloud.translate.v3.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -924,6 +1002,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -964,6 +1044,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -991,6 +1073,8 @@ public com.google.cloud.translate.v3.GcsSource.Builder getGcsSourceBuilder() {
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1026,6 +1110,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1050,14 +1136,19 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
      * .google.cloud.translation.v3.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3.GcsSource,
+            com.google.cloud.translate.v3.GcsSource.Builder,
+            com.google.cloud.translate.v3.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsSource, com.google.cloud.translate.v3.GcsSource.Builder, com.google.cloud.translate.v3.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsSource,
+                com.google.cloud.translate.v3.GcsSource.Builder,
+                com.google.cloud.translate.v3.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1067,9 +1158,9 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1079,12 +1170,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.InputConfig)
   private static final com.google.cloud.translate.v3.InputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.InputConfig();
   }
@@ -1093,27 +1184,27 @@ public static com.google.cloud.translate.v3.InputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public InputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public InputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1128,6 +1219,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
similarity index 86%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
index 9ba8a5b4c0ec..382010027946 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface InputConfigOrBuilder extends
+public interface InputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -16,10 +34,13 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -28,12 +49,14 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -56,10 +79,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -82,10 +108,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
similarity index 75%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
index cc8459ab2ed5..90cb92cb5494 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesRequest) ListGlossariesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,33 +45,40 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, + com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,12 +122,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -109,9 +139,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -144,16 +179,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -162,9 +196,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -185,6 +222,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -193,14 +231,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -221,16 +260,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -239,6 +277,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -277,8 +315,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -294,21 +331,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesRequest other = (com.google.cloud.translate.v3.ListGlossariesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.translate.v3.ListGlossariesRequest other = + (com.google.cloud.translate.v3.ListGlossariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,131 +368,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesRequest) com.google.cloud.translate.v3.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesRequest.class, com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3.ListGlossariesRequest.class, + com.google.cloud.translate.v3.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -492,8 +530,11 @@ public com.google.cloud.translate.v3.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3.ListGlossariesRequest result = new com.google.cloud.translate.v3.ListGlossariesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.ListGlossariesRequest result = + new com.google.cloud.translate.v3.ListGlossariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -518,38 +559,39 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest)other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesRequest) other); } else { super.mergeFrom(other); return this; @@ -557,7 +599,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -602,32 +645,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,22 +685,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -661,20 +714,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -682,28 +738,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -713,17 +780,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -731,14 +804,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -746,12 +822,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -763,12 +842,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -780,6 +862,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -788,13 +872,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -803,6 +887,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -811,15 +897,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -827,6 +912,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -835,18 +922,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -855,6 +946,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -864,6 +956,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -872,12 +966,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -887,6 +983,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -907,13 +1005,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -922,6 +1020,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -942,15 +1042,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -958,6 +1057,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -978,18 +1079,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1010,6 +1115,7 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1019,6 +1125,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1039,21 +1147,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1063,12 +1173,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesRequest) private static final com.google.cloud.translate.v3.ListGlossariesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesRequest(); } @@ -1077,27 +1187,27 @@ public static com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1222,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java index fd96eb4ac5b2..8395ca4fd025 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java @@ -1,44 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesRequestOrBuilder extends +public interface ListGlossariesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -47,10 +77,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -59,12 +92,14 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -85,10 +120,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -109,8 +147,8 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java index 05cfe9f7e96f..017627031f51 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.ListGlossariesResponse) ListGlossariesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, + com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List glossaries_; /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -59,6 +81,8 @@ public java.util.List getGlossariesList( return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -66,11 +90,13 @@ public java.util.List getGlossariesList( * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -82,6 +108,8 @@ public int getGlossariesCount() { return glossaries_.size(); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -100,15 +130,17 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -116,6 +148,7 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -186,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.ListGlossariesResponse other = (com.google.cloud.translate.v3.ListGlossariesResponse) obj; + com.google.cloud.translate.v3.ListGlossariesResponse other = + (com.google.cloud.translate.v3.ListGlossariesResponse) obj; - if (!getGlossariesList() - .equals(other.getGlossariesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getGlossariesList().equals(other.getGlossariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,131 +265,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3.ListGlossariesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.ListGlossariesResponse) com.google.cloud.translate.v3.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.ListGlossariesResponse.class, com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3.ListGlossariesResponse.class, + com.google.cloud.translate.v3.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.ListGlossariesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -396,14 +431,18 @@ public com.google.cloud.translate.v3.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3.ListGlossariesResponse result = new com.google.cloud.translate.v3.ListGlossariesResponse(this); + com.google.cloud.translate.v3.ListGlossariesResponse result = + new com.google.cloud.translate.v3.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.ListGlossariesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -426,38 +465,39 @@ private void buildPartial0(com.google.cloud.translate.v3.ListGlossariesResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse)other); + return mergeFrom((com.google.cloud.translate.v3.ListGlossariesResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +505,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance()) + return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -484,9 +525,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.ListGlossariesResponse ot glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGlossariesFieldBuilder() : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGlossariesFieldBuilder() + : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -523,30 +565,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.Glossary m = - input.readMessage( - com.google.cloud.translate.v3.Glossary.parser(), - extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3.Glossary m = + input.readMessage( + com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +600,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { glossaries_ = new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> glossariesBuilder_; + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> + glossariesBuilder_; /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -585,6 +636,8 @@ public java.util.List getGlossariesList( } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -599,6 +652,8 @@ public int getGlossariesCount() { } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -613,14 +668,15 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder setGlossaries( - int index, com.google.cloud.translate.v3.Glossary value) { + public Builder setGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +690,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -652,6 +710,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -672,14 +732,15 @@ public Builder addGlossaries(com.google.cloud.translate.v3.Glossary value) { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries( - int index, com.google.cloud.translate.v3.Glossary value) { + public Builder addGlossaries(int index, com.google.cloud.translate.v3.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +754,15 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public Builder addGlossaries( - com.google.cloud.translate.v3.Glossary.Builder builderForValue) { + public Builder addGlossaries(com.google.cloud.translate.v3.Glossary.Builder builderForValue) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); glossaries_.add(builderForValue.build()); @@ -711,6 +773,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -729,6 +793,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -739,8 +805,7 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -748,6 +813,8 @@ public Builder addAllGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -765,6 +832,8 @@ public Builder clearGlossaries() { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -782,39 +851,44 @@ public Builder removeGlossaries(int index) { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder( - int index) { + public com.google.cloud.translate.v3.Glossary.Builder getGlossariesBuilder(int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); } else { + return glossaries_.get(index); + } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +896,8 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -829,42 +905,48 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder().addBuilder( - com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder() + .addBuilder(com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder( - int index) { - return getGlossariesFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(int index) { + return getGlossariesFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder> + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.Glossary, com.google.cloud.translate.v3.Glossary.Builder, com.google.cloud.translate.v3.GlossaryOrBuilder>( - glossaries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + glossariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3.Glossary, + com.google.cloud.translate.v3.Glossary.Builder, + com.google.cloud.translate.v3.GlossaryOrBuilder>( + glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -872,6 +954,8 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -879,13 +963,13 @@ public com.google.cloud.translate.v3.Glossary.Builder addGlossariesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +978,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -901,15 +987,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1002,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -924,18 +1011,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -943,6 +1034,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1044,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -959,21 +1053,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1079,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.ListGlossariesResponse) private static final com.google.cloud.translate.v3.ListGlossariesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.ListGlossariesResponse(); } @@ -997,27 +1093,27 @@ public static com.google.cloud.translate.v3.ListGlossariesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java index 29c4dd7cf828..8b89b523c5be 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface ListGlossariesResponseOrBuilder extends +public interface ListGlossariesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List - getGlossariesList(); + java.util.List getGlossariesList(); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -25,6 +44,8 @@ public interface ListGlossariesResponseOrBuilder extends */ com.google.cloud.translate.v3.Glossary getGlossaries(int index); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -33,25 +54,30 @@ public interface ListGlossariesResponseOrBuilder extends */ int getGlossariesCount(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3.Glossary glossaries = 1; */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( - int index); + com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(int index); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -59,10 +85,13 @@ com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -70,8 +99,8 @@ com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java similarity index 100% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java similarity index 88% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java index 4bdff2eea490..939691dfca6a 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, + com.google.cloud.translate.v3.OutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -159,6 +185,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -166,6 +193,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -241,16 +270,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3.GcsDestination) destination_; + return (com.google.cloud.translate.v3.GcsDestination) destination_; } return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -330,12 +362,13 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -347,8 +380,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
@@ -362,8 +394,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -373,18 +406,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.OutputConfig other = (com.google.cloud.translate.v3.OutputConfig) obj;
+    com.google.cloud.translate.v3.OutputConfig other =
+        (com.google.cloud.translate.v3.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -413,132 +446,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.OutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.OutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.OutputConfig) com.google.cloud.translate.v3.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.OutputConfig.class, com.google.cloud.translate.v3.OutputConfig.Builder.class); + com.google.cloud.translate.v3.OutputConfig.class, + com.google.cloud.translate.v3.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3.OutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_OutputConfig_descriptor; } @java.lang.Override @@ -573,8 +610,11 @@ public com.google.cloud.translate.v3.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3.OutputConfig buildPartial() { - com.google.cloud.translate.v3.OutputConfig result = new com.google.cloud.translate.v3.OutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.OutputConfig result = + new com.google.cloud.translate.v3.OutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -587,8 +627,7 @@ private void buildPartial0(com.google.cloud.translate.v3.OutputConfig result) { private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -597,38 +636,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3.OutputConfig resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3.OutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -638,13 +678,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.translate.v3.OutputConfig other) { if (other == com.google.cloud.translate.v3.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -672,19 +714,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -694,12 +736,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -712,8 +754,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3.GcsDestination, + com.google.cloud.translate.v3.GcsDestination.Builder, + com.google.cloud.translate.v3.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -789,6 +836,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -796,6 +844,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -871,6 +921,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -888,6 +939,8 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -978,6 +1031,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1066,6 +1121,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1144,10 +1201,13 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3.GcsDestination.newBuilder((com.google.cloud.translate.v3.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_ != com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -1163,6 +1223,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1256,6 +1318,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1336,6 +1400,8 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1424,6 +1490,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1501,14 +1569,19 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
      * .google.cloud.translation.v3.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3.GcsDestination,
+            com.google.cloud.translate.v3.GcsDestination.Builder,
+            com.google.cloud.translate.v3.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3.GcsDestination, com.google.cloud.translate.v3.GcsDestination.Builder, com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3.GcsDestination,
+                com.google.cloud.translate.v3.GcsDestination.Builder,
+                com.google.cloud.translate.v3.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1518,9 +1591,9 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1530,12 +1603,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.OutputConfig)
   private static final com.google.cloud.translate.v3.OutputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.OutputConfig();
   }
@@ -1544,27 +1617,27 @@ public static com.google.cloud.translate.v3.OutputConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public OutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public OutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1579,6 +1652,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
similarity index 94%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
index 727c282f770f..739a178c28a4 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface OutputConfigOrBuilder extends
+public interface OutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -83,10 +101,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -162,10 +183,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
index 1fd9d3dc0283..ae1b11b64191 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
  */
-public final class SupportedLanguage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguage)
     SupportedLanguageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -27,28 +45,32 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3.SupportedLanguage.class,
+            com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
+   *
+   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -81,16 +105,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -99,15 +122,19 @@ public java.lang.String getLanguageCode() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -116,30 +143,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -150,11 +177,14 @@ public java.lang.String getDisplayName() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** + * + * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -165,11 +195,14 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** + * + * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -178,6 +211,7 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +223,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -219,12 +252,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +265,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3.SupportedLanguage other = (com.google.cloud.translate.v3.SupportedLanguage) obj; + com.google.cloud.translate.v3.SupportedLanguage other = + (com.google.cloud.translate.v3.SupportedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getSupportSource() - != other.getSupportSource()) return false; - if (getSupportTarget() - != other.getSupportTarget()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getSupportSource() != other.getSupportSource()) return false; + if (getSupportTarget() != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,109 +293,112 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -375,33 +406,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.SupportedLanguage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguage)
       com.google.cloud.translate.v3.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.SupportedLanguage.class, com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3.SupportedLanguage.class,
+              com.google.cloud.translate.v3.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.SupportedLanguage.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -435,8 +465,11 @@ public com.google.cloud.translate.v3.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3.SupportedLanguage result = new com.google.cloud.translate.v3.SupportedLanguage(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.SupportedLanguage result =
+          new com.google.cloud.translate.v3.SupportedLanguage(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -461,38 +494,39 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguage resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage)other);
+        return mergeFrom((com.google.cloud.translate.v3.SupportedLanguage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -500,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance())
+        return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -543,32 +578,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              supportSource_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              supportTarget_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                supportSource_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                supportTarget_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -578,10 +618,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
+     *
+     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -590,13 +633,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -605,6 +648,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -613,15 +658,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -629,6 +673,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -637,18 +683,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -657,6 +707,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -666,6 +717,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -674,12 +727,14 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -689,19 +744,21 @@ public Builder setLanguageCodeBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -710,21 +767,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -732,30 +790,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -765,18 +830,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -784,13 +853,16 @@ public Builder setDisplayNameBytes( return this; } - private boolean supportSource_ ; + private boolean supportSource_; /** + * + * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -798,11 +870,14 @@ public boolean getSupportSource() { return supportSource_; } /** + * + * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; + * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -814,11 +889,14 @@ public Builder setSupportSource(boolean value) { return this; } /** + * + * *
      * Can be used as a source language.
      * 
* * bool support_source = 3; + * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -828,13 +906,16 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_ ; + private boolean supportTarget_; /** + * + * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -842,11 +923,14 @@ public boolean getSupportTarget() { return supportTarget_; } /** + * + * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; + * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -858,11 +942,14 @@ public Builder setSupportTarget(boolean value) { return this; } /** + * + * *
      * Can be used as a target language.
      * 
* * bool support_target = 4; + * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -871,9 +958,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguage) private static final com.google.cloud.translate.v3.SupportedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguage(); } @@ -897,27 +984,27 @@ public static com.google.cloud.translate.v3.SupportedLanguage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,6 +1019,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java index 558c0e71e25a..37c368f31ecf 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface SupportedLanguageOrBuilder extends +public interface SupportedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -16,10 +34,13 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes
@@ -28,49 +49,60 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Can be used as a source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ boolean getSupportSource(); /** + * + * *
    * Can be used as a target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java index ee010be134cc..72b8b288fe39 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ -public final class SupportedLanguages extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.SupportedLanguages) SupportedLanguagesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, + com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -59,6 +81,8 @@ public java.util.List getLangua
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -67,11 +91,13 @@ public java.util.List getLangua
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -104,12 +134,12 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
-      int index) {
+  public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index) {
     return languages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +151,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +165,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +175,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.SupportedLanguages other = (com.google.cloud.translate.v3.SupportedLanguages) obj;
+    com.google.cloud.translate.v3.SupportedLanguages other =
+        (com.google.cloud.translate.v3.SupportedLanguages) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -176,132 +204,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3.SupportedLanguages} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.SupportedLanguages) com.google.cloud.translate.v3.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.SupportedLanguages.class, com.google.cloud.translate.v3.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3.SupportedLanguages.class, + com.google.cloud.translate.v3.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3.SupportedLanguages.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; } @java.lang.Override @@ -338,14 +370,18 @@ public com.google.cloud.translate.v3.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3.SupportedLanguages result = new com.google.cloud.translate.v3.SupportedLanguages(this); + com.google.cloud.translate.v3.SupportedLanguages result = + new com.google.cloud.translate.v3.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3.SupportedLanguages result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +401,39 @@ private void buildPartial0(com.google.cloud.translate.v3.SupportedLanguages resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages)other); + return mergeFrom((com.google.cloud.translate.v3.SupportedLanguages) other); } else { super.mergeFrom(other); return this; @@ -404,7 +441,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +461,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.SupportedLanguages other) languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +496,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +526,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList(languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3.SupportedLanguage, + com.google.cloud.translate.v3.SupportedLanguage.Builder, + com.google.cloud.translate.v3.SupportedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -515,6 +564,8 @@ public java.util.List getLangua
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -530,6 +581,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -545,6 +598,8 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -552,8 +607,7 @@ public com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder setLanguages(
-        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder setLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -567,6 +621,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -586,6 +642,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -607,6 +665,8 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -614,8 +674,7 @@ public Builder addLanguages(com.google.cloud.translate.v3.SupportedLanguage valu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public Builder addLanguages(
-        int index, com.google.cloud.translate.v3.SupportedLanguage value) {
+    public Builder addLanguages(int index, com.google.cloud.translate.v3.SupportedLanguage value) {
       if (languagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -629,6 +688,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -648,6 +709,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -667,6 +730,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -678,8 +743,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +751,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -705,6 +771,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -723,6 +791,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -730,11 +800,12 @@ public Builder removeLanguages(int index) {
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuilder(int index) {
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -745,11 +816,14 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder getLanguagesBuild
     public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -757,8 +831,8 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +840,8 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -774,10 +850,12 @@ public com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBu
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -785,12 +863,13 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(
-        int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
+    public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuilder(int index) {
+      return getLanguagesFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -798,27 +877,30 @@ public com.google.cloud.translate.v3.SupportedLanguage.Builder addLanguagesBuild
      *
      * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder> 
+            com.google.cloud.translate.v3.SupportedLanguage,
+            com.google.cloud.translate.v3.SupportedLanguage.Builder,
+            com.google.cloud.translate.v3.SupportedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.SupportedLanguage, com.google.cloud.translate.v3.SupportedLanguage.Builder, com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.SupportedLanguage,
+                com.google.cloud.translate.v3.SupportedLanguage.Builder,
+                com.google.cloud.translate.v3.SupportedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +910,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.SupportedLanguages)
   private static final com.google.cloud.translate.v3.SupportedLanguages DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.SupportedLanguages();
   }
@@ -842,27 +924,27 @@ public static com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SupportedLanguages parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SupportedLanguages parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +959,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
index 098702c63e9f..6e3c2f2f1e5b 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface SupportedLanguagesOrBuilder extends
+public interface SupportedLanguagesOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -15,9 +33,10 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -27,6 +46,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   com.google.cloud.translate.v3.SupportedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -36,6 +57,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -43,9 +66,11 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -53,6 +78,5 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
similarity index 70%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
index 9d623a7afd43..b2a85bba7e18 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -29,40 +47,43 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, + com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -79,6 +100,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -87,14 +109,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -111,16 +134,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -129,9 +151,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -142,6 +167,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -150,14 +176,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -168,16 +195,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -186,15 +212,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -203,30 +233,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -237,11 +267,16 @@ public java.lang.String getTargetLanguageCode() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -249,32 +284,48 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -283,7 +334,10 @@ public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInp
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -291,6 +345,8 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -299,14 +355,21 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -315,17 +378,25 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -343,6 +414,7 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -351,14 +423,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -376,16 +449,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -396,13 +468,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -410,60 +487,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -479,20 +572,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -512,6 +606,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -527,17 +623,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -553,11 +651,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -565,9 +663,12 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER = 10;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object customizedAttribution_ = "";
   /**
+   *
+   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -576,6 +677,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ @java.lang.Override @@ -584,14 +686,15 @@ public java.lang.String getCustomizedAttribution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; } } /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -600,16 +703,15 @@ public java.lang.String getCustomizedAttribution() {
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -620,12 +722,15 @@ public java.lang.String getCustomizedAttribution() { public static final int IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER = 11; private boolean isTranslateNativePdfOnly_ = false; /** + * + * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -636,6 +741,8 @@ public boolean getIsTranslateNativePdfOnly() { public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER = 12; private boolean enableShadowRemovalNativePdf_ = false; /** + * + * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -643,7 +750,9 @@ public boolean getIsTranslateNativePdfOnly() {
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -652,6 +761,7 @@ public boolean getEnableShadowRemovalNativePdf() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -663,8 +773,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -686,12 +795,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (glossaryConfig_ != null) { output.writeMessage(7, getGlossaryConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customizedAttribution_); } @@ -720,40 +825,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_); } if (documentInputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDocumentInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig()); } if (documentOutputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDocumentOutputConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getGlossaryConfig()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customizedAttribution_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customizedAttribution_); } if (isTranslateNativePdfOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, isTranslateNativePdfOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, isTranslateNativePdfOnly_); } if (enableShadowRemovalNativePdf_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, enableShadowRemovalNativePdf_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableShadowRemovalNativePdf_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -763,44 +865,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentRequest other = (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; + com.google.cloud.translate.v3.TranslateDocumentRequest other = + (com.google.cloud.translate.v3.TranslateDocumentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false; if (hasDocumentInputConfig()) { - if (!getDocumentInputConfig() - .equals(other.getDocumentInputConfig())) return false; + if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false; } if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false; if (hasDocumentOutputConfig()) { - if (!getDocumentOutputConfig() - .equals(other.getDocumentOutputConfig())) return false; + if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false; } - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getCustomizedAttribution() - .equals(other.getCustomizedAttribution())) return false; - if (getIsTranslateNativePdfOnly() - != other.getIsTranslateNativePdfOnly()) return false; - if (getEnableShadowRemovalNativePdf() - != other.getEnableShadowRemovalNativePdf()) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; + if (getIsTranslateNativePdfOnly() != other.getIsTranslateNativePdfOnly()) return false; + if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -839,164 +931,166 @@ public int hashCode() { hash = (37 * hash) + CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER; hash = (53 * hash) + getCustomizedAttribution().hashCode(); hash = (37 * hash) + IS_TRANSLATE_NATIVE_PDF_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsTranslateNativePdfOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsTranslateNativePdfOnly()); hash = (37 * hash) + ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableShadowRemovalNativePdf()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.TranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentRequest) com.google.cloud.translate.v3.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentRequest.class, com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentRequest.class, + com.google.cloud.translate.v3.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1028,9 +1122,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -1049,8 +1143,11 @@ public com.google.cloud.translate.v3.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentRequest result = new com.google.cloud.translate.v3.TranslateDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.TranslateDocumentRequest result = + new com.google.cloud.translate.v3.TranslateDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1067,22 +1164,23 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = + documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = + documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1103,38 +1201,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -1142,7 +1241,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1172,8 +1272,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getCustomizedAttribution().isEmpty()) { customizedAttribution_ = other.customizedAttribution_; @@ -1212,77 +1311,87 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: { - customizedAttribution_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 88: { - isTranslateNativePdfOnly_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 88 - case 96: { - enableShadowRemovalNativePdf_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: + { + customizedAttribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 88: + { + isTranslateNativePdfOnly_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + enableShadowRemovalNativePdf_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1292,10 +1401,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1312,13 +1424,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1327,6 +1439,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1343,15 +1457,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1359,6 +1472,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1375,18 +1490,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1403,6 +1522,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1412,6 +1532,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1428,12 +1550,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1443,6 +1567,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1453,13 +1579,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1468,6 +1594,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1478,15 +1606,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1494,6 +1621,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1504,18 +1633,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1526,6 +1659,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1535,6 +1669,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1545,12 +1681,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1560,19 +1698,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1581,21 +1721,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1603,30 +1744,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1636,18 +1784,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1657,39 +1809,58 @@ public Builder setTargetLanguageCodeBytes( private com.google.cloud.translate.v3.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; + com.google.cloud.translate.v3.DocumentInputConfig, + com.google.cloud.translate.v3.DocumentInputConfig.Builder, + com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> + documentInputConfigBuilder_; /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ public com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { @@ -1705,11 +1876,15 @@ public Builder setDocumentInputConfig(com.google.cloud.translate.v3.DocumentInpu return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3.DocumentInputConfig.Builder builderForValue) { @@ -1723,17 +1898,23 @@ public Builder setDocumentInputConfig( return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig( + com.google.cloud.translate.v3.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - documentInputConfig_ != null && - documentInputConfig_ != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && documentInputConfig_ != null + && documentInputConfig_ + != com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1746,11 +1927,15 @@ public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3.DocumentIn return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1763,48 +1948,66 @@ public Builder clearDocumentInputConfig() { return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfig.Builder + getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null ? - com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentInputConfig, + com.google.cloud.translate.v3.DocumentInputConfig.Builder, + com.google.cloud.translate.v3.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentInputConfig, com.google.cloud.translate.v3.DocumentInputConfig.Builder, com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), - getParentForChildren(), - isClean()); + documentInputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentInputConfig, + com.google.cloud.translate.v3.DocumentInputConfig.Builder, + com.google.cloud.translate.v3.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), getParentForChildren(), isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1812,8 +2015,13 @@ public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInp private com.google.cloud.translate.v3.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; + com.google.cloud.translate.v3.DocumentOutputConfig, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> + documentOutputConfigBuilder_; /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1822,13 +2030,18 @@ public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInp
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1837,17 +2050,24 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1856,9 +2076,12 @@ public com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfi
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig( + com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1872,6 +2095,8 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOut return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1880,7 +2105,9 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOut
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3.DocumentOutputConfig.Builder builderForValue) { @@ -1894,6 +2121,8 @@ public Builder setDocumentOutputConfig( return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1902,13 +2131,17 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig( + com.google.cloud.translate.v3.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - documentOutputConfig_ != null && - documentOutputConfig_ != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && documentOutputConfig_ != null + && documentOutputConfig_ + != com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -1921,6 +2154,8 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentO return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1929,7 +2164,9 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3.DocumentO
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1942,6 +2179,8 @@ public Builder clearDocumentOutputConfig() { return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1950,14 +2189,19 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfig.Builder + getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1966,17 +2210,23 @@ public com.google.cloud.translate.v3.DocumentOutputConfig.Builder getDocumentOut
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null ? - com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1985,17 +2235,22 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3.DocumentOutputConfig, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentOutputConfig, com.google.cloud.translate.v3.DocumentOutputConfig.Builder, com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), - getParentForChildren(), - isClean()); + documentOutputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentOutputConfig, + com.google.cloud.translate.v3.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), getParentForChildren(), isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -2003,6 +2258,8 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2020,13 +2277,13 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2035,6 +2292,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2052,15 +2311,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -2068,6 +2326,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2085,18 +2345,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2114,6 +2378,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -2123,6 +2388,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -2140,12 +2407,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -2155,47 +2424,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2209,13 +2498,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2229,19 +2522,25 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2254,13 +2553,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2273,74 +2576,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2349,10 +2668,13 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2368,20 +2690,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2401,6 +2724,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2416,17 +2741,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2442,23 +2769,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2473,23 +2802,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2504,17 +2832,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2529,16 +2860,16 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object customizedAttribution_ = "";
     /**
+     *
+     *
      * 
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2547,13 +2878,13 @@ public Builder putAllLabels(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ public java.lang.String getCustomizedAttribution() { java.lang.Object ref = customizedAttribution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customizedAttribution_ = s; return s; @@ -2562,6 +2893,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2570,15 +2903,14 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - public com.google.protobuf.ByteString - getCustomizedAttributionBytes() { + public com.google.protobuf.ByteString getCustomizedAttributionBytes() { java.lang.Object ref = customizedAttribution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customizedAttribution_ = b; return b; } else { @@ -2586,6 +2918,8 @@ public java.lang.String getCustomizedAttribution() { } } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2594,18 +2928,22 @@ public java.lang.String getCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttribution( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttribution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customizedAttribution_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2614,6 +2952,7 @@ public Builder setCustomizedAttribution(
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCustomizedAttribution() { @@ -2623,6 +2962,8 @@ public Builder clearCustomizedAttribution() { return this; } /** + * + * *
      * Optional. This flag is to support user customized attribution.
      * If not provided, the default is `Machine Translated by Google`.
@@ -2631,12 +2972,14 @@ public Builder clearCustomizedAttribution() {
      * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for customizedAttribution to set. * @return This builder for chaining. */ - public Builder setCustomizedAttributionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customizedAttribution_ = value; bitField0_ |= 0x00000100; @@ -2644,14 +2987,18 @@ public Builder setCustomizedAttributionBytes( return this; } - private boolean isTranslateNativePdfOnly_ ; + private boolean isTranslateNativePdfOnly_; /** + * + * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The isTranslateNativePdfOnly. */ @java.lang.Override @@ -2659,12 +3006,16 @@ public boolean getIsTranslateNativePdfOnly() { return isTranslateNativePdfOnly_; } /** + * + * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The isTranslateNativePdfOnly to set. * @return This builder for chaining. */ @@ -2676,12 +3027,16 @@ public Builder setIsTranslateNativePdfOnly(boolean value) { return this; } /** + * + * *
      * Optional. If true, the page limit of online native pdf translation is 300
      * and only native pdf pages will be translated.
      * 
* - * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearIsTranslateNativePdfOnly() { @@ -2691,8 +3046,10 @@ public Builder clearIsTranslateNativePdfOnly() { return this; } - private boolean enableShadowRemovalNativePdf_ ; + private boolean enableShadowRemovalNativePdf_; /** + * + * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -2700,7 +3057,9 @@ public Builder clearIsTranslateNativePdfOnly() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableShadowRemovalNativePdf. */ @java.lang.Override @@ -2708,6 +3067,8 @@ public boolean getEnableShadowRemovalNativePdf() { return enableShadowRemovalNativePdf_; } /** + * + * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -2715,7 +3076,9 @@ public boolean getEnableShadowRemovalNativePdf() {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableShadowRemovalNativePdf to set. * @return This builder for chaining. */ @@ -2727,6 +3090,8 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) { return this; } /** + * + * *
      * Optional. If true, use the text removal to remove the shadow text on
      * background image for native pdf translation.
@@ -2734,7 +3099,9 @@ public Builder setEnableShadowRemovalNativePdf(boolean value) {
      * is_translate_native_pdf_only is false
      * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableShadowRemovalNativePdf() { @@ -2743,9 +3110,9 @@ public Builder clearEnableShadowRemovalNativePdf() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2755,12 +3122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentRequest) private static final com.google.cloud.translate.v3.TranslateDocumentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentRequest(); } @@ -2769,27 +3136,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2804,6 +3171,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java index d3d93011bdfa..80203b939fbd 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentRequestOrBuilder extends +public interface TranslateDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -24,10 +42,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -44,12 +65,14 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -60,10 +83,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The ISO-639 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -74,61 +100,82 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ com.google.cloud.translate.v3.DocumentInputConfig getDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -137,11 +184,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -150,11 +202,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ com.google.cloud.translate.v3.DocumentOutputConfig getDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -163,11 +220,15 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -185,10 +246,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -206,45 +270,61 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -261,6 +341,8 @@ public interface TranslateDocumentRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -275,15 +357,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -298,9 +378,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -316,11 +397,13 @@ boolean containsLabels(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -335,10 +418,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -347,10 +431,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The customizedAttribution. */ java.lang.String getCustomizedAttribution(); /** + * + * *
    * Optional. This flag is to support user customized attribution.
    * If not provided, the default is `Machine Translated by Google`.
@@ -359,23 +446,28 @@ java.lang.String getLabelsOrThrow(
    * 
* * string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for customizedAttribution. */ - com.google.protobuf.ByteString - getCustomizedAttributionBytes(); + com.google.protobuf.ByteString getCustomizedAttributionBytes(); /** + * + * *
    * Optional. If true, the page limit of online native pdf translation is 300
    * and only native pdf pages will be translated.
    * 
* * bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isTranslateNativePdfOnly. */ boolean getIsTranslateNativePdfOnly(); /** + * + * *
    * Optional. If true, use the text removal to remove the shadow text on
    * background image for native pdf translation.
@@ -383,7 +475,9 @@ java.lang.String getLabelsOrThrow(
    * is_translate_native_pdf_only is false
    * 
* - * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableShadowRemovalNativePdf. */ boolean getEnableShadowRemovalNativePdf(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java similarity index 69% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java index db06f3d6a2eb..67518f981181 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, + com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -58,18 +80,25 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } /** + * + * *
    * Translated document.
    * 
@@ -77,20 +106,27 @@ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation( * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { - return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -98,37 +134,52 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ @java.lang.Override - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -141,6 +192,7 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDoc
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -149,14 +201,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -169,16 +222,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -189,11 +241,14 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -201,18 +256,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -220,11 +282,15 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,8 +302,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -260,19 +325,18 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossaryDocumentTranslation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,29 +346,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateDocumentResponse other = (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3.TranslateDocumentResponse other = + (com.google.cloud.translate.v3.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation() - .equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation() - .equals(other.getGlossaryDocumentTranslation())) return false; + if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) + return false; } - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -337,131 +399,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateDocumentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateDocumentResponse) com.google.cloud.translate.v3.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateDocumentResponse.class, com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3.TranslateDocumentResponse.class, + com.google.cloud.translate.v3.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateDocumentResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; } @java.lang.Override @@ -507,8 +574,11 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3.TranslateDocumentResponse result = new com.google.cloud.translate.v3.TranslateDocumentResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.TranslateDocumentResponse result = + new com.google.cloud.translate.v3.TranslateDocumentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -516,22 +586,23 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = + documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = + glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +610,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateDocumentRespon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse)other); + return mergeFrom((com.google.cloud.translate.v3.TranslateDocumentResponse) other); } else { super.mergeFrom(other); return this; @@ -578,7 +650,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentResponse other) { - if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance()) + return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -619,38 +692,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,38 +734,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.translate.v3.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> documentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + documentTranslationBuilder_; /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** + * + * *
      * Translated document.
      * 
@@ -712,6 +800,8 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3.DocumentTran return this; } /** + * + * *
      * Translated document.
      * 
@@ -730,17 +820,21 @@ public Builder setDocumentTranslation( return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeDocumentTranslation( + com.google.cloud.translate.v3.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - documentTranslation_ != null && - documentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && documentTranslation_ != null + && documentTranslation_ + != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -753,6 +847,8 @@ public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTr return this; } /** + * + * *
      * Translated document.
      * 
@@ -770,33 +866,42 @@ public Builder clearDocumentTranslation() { return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder + getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null ? - com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } } /** + * + * *
      * Translated document.
      * 
@@ -804,14 +909,17 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTra * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getDocumentTranslation(), - getParentForChildren(), - isClean()); + documentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getDocumentTranslation(), getParentForChildren(), isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -819,47 +927,64 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTra private com.google.cloud.translate.v3.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + glossaryDocumentTranslationBuilder_; /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation( + com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -873,13 +998,16 @@ public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3.Docu return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3.DocumentTranslation.Builder builderForValue) { @@ -893,19 +1021,24 @@ public Builder setGlossaryDocumentTranslation( return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation( + com.google.cloud.translate.v3.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossaryDocumentTranslation_ != null && - glossaryDocumentTranslation_ != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossaryDocumentTranslation_ != null + && glossaryDocumentTranslation_ + != com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -918,13 +1051,16 @@ public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3.Do return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -937,54 +1073,69 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3.DocumentTranslation.Builder + getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null ? - com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.DocumentTranslation, com.google.cloud.translate.v3.DocumentTranslation.Builder, com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), - getParentForChildren(), - isClean()); + glossaryDocumentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.DocumentTranslation, + com.google.cloud.translate.v3.DocumentTranslation.Builder, + com.google.cloud.translate.v3.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -992,6 +1143,8 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDoc private java.lang.Object model_ = ""; /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1004,13 +1157,13 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDoc
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1019,6 +1172,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1031,15 +1186,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1047,6 +1201,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1059,18 +1215,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1083,6 +1243,7 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1092,6 +1253,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1104,12 +1267,14 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1119,41 +1284,55 @@ public Builder setModelBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1167,6 +1346,8 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1185,17 +1366,21 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1208,6 +1393,8 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1225,33 +1412,42 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1259,21 +1455,24 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,12 +1482,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateDocumentResponse) private static final com.google.cloud.translate.v3.TranslateDocumentResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateDocumentResponse(); } @@ -1297,27 +1496,27 @@ public static com.google.cloud.translate.v3.TranslateDocumentResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java similarity index 78% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java index 12df582e1665..8bbcee6311b6 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateDocumentResponseOrBuilder extends +public interface TranslateDocumentResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
@@ -35,39 +59,53 @@ public interface TranslateDocumentResponseOrBuilder extends com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2; + * */ - com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -80,10 +118,13 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -96,30 +137,38 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java similarity index 70% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java index 19d44926cff7..fd6a308ec202 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -11,43 +28,48 @@
  *
  * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
+            com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
+   *
+   *
    * 
    * Required. The `glossary` to be applied for this translation.
    *
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ @java.lang.Override @@ -66,14 +89,15 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** + * + * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -84,16 +108,15 @@ public java.lang.String getGlossary() {
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -104,12 +127,15 @@ public java.lang.String getGlossary() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** + * + * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -118,6 +144,7 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -150,8 +176,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -161,17 +186,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig other = + (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) obj; - if (!getGlossary() - .equals(other.getGlossary())) return false; - if (getIgnoreCase() - != other.getIgnoreCase()) return false; + if (!getGlossary().equals(other.getGlossary())) return false; + if (getIgnoreCase() != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,106 +210,111 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -293,33 +322,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.class,
+              com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -330,9 +358,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
@@ -351,8 +379,11 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result =
+          new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -371,38 +402,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextGlossaryCo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig)other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextGlossaryConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -410,7 +442,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextGlossaryConfig other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance())
+        return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -445,22 +478,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              glossary_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              ignoreCase_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                glossary_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                ignoreCase_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -470,10 +506,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
+     *
+     *
      * 
      * Required. The `glossary` to be applied for this translation.
      *
@@ -484,13 +523,13 @@ public Builder mergeFrom(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -499,6 +538,8 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -509,15 +550,14 @@ public java.lang.String getGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -525,6 +565,8 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -535,18 +577,22 @@ public java.lang.String getGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -557,6 +603,7 @@ public Builder setGlossary(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -566,6 +613,8 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      *
@@ -576,12 +625,14 @@ public Builder clearGlossary() {
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -589,14 +640,17 @@ public Builder setGlossaryBytes( return this; } - private boolean ignoreCase_ ; + private boolean ignoreCase_; /** + * + * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -604,12 +658,15 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** + * + * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -621,12 +678,15 @@ public Builder setIgnoreCase(boolean value) { return this; } /** + * + * *
      * Optional. Indicates match is case insensitive. The default value is `false`
      * if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -635,9 +695,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -647,12 +707,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextGlossaryConfig) private static final com.google.cloud.translate.v3.TranslateTextGlossaryConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(); } @@ -661,27 +721,27 @@ public static com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -696,6 +756,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java index d0ab32490d3d..20e7f1bacc22 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslateTextGlossaryConfigOrBuilder extends +public interface TranslateTextGlossaryConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -18,10 +36,13 @@ public interface TranslateTextGlossaryConfigOrBuilder extends
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ java.lang.String getGlossary(); /** + * + * *
    * Required. The `glossary` to be applied for this translation.
    *
@@ -32,18 +53,21 @@ public interface TranslateTextGlossaryConfigOrBuilder extends
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - com.google.protobuf.ByteString - getGlossaryBytes(); + com.google.protobuf.ByteString getGlossaryBytes(); /** + * + * *
    * Optional. Indicates match is case insensitive. The default value is `false`
    * if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java similarity index 73% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java index 54bf85258daf..6efb315acac1 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java @@ -1,27 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; /** + * + * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ -public final class TranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextRequest) TranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateTextRequest() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -31,41 +48,44 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, + com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -73,13 +93,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { return contents_; } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -87,12 +109,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -100,6 +125,7 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -107,6 +133,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -114,24 +142,28 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -140,30 +172,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -172,9 +204,12 @@ public java.lang.String getMimeType() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -184,6 +219,7 @@ public java.lang.String getMimeType() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -192,14 +228,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -209,16 +246,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -227,15 +263,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -244,30 +284,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -276,9 +316,12 @@ public java.lang.String getTargetLanguageCode() { } public static final int PARENT_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -296,7 +339,10 @@ public java.lang.String getTargetLanguageCode() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -305,14 +351,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -330,17 +377,18 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -349,9 +397,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -372,6 +423,7 @@ public java.lang.String getParent() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -380,14 +432,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -408,16 +461,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -428,13 +480,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -442,60 +499,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -511,20 +584,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -544,6 +618,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -559,17 +635,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -585,11 +663,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -597,6 +675,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -608,8 +687,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -631,12 +709,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        10);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
     getUnknownFields().writeTo(output);
   }
 
@@ -667,21 +741,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -691,32 +764,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextRequest other = (com.google.cloud.translate.v3.TranslateTextRequest) obj;
-
-    if (!getContentsList()
-        .equals(other.getContentsList())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode()
-        .equals(other.getTargetLanguageCode())) return false;
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
+    com.google.cloud.translate.v3.TranslateTextRequest other =
+        (com.google.cloud.translate.v3.TranslateTextRequest) obj;
+
+    if (!getContentsList().equals(other.getContentsList())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig()
-          .equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -756,159 +822,160 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3.TranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextRequest) com.google.cloud.translate.v3.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.TranslateTextRequest.class, com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3.TranslateTextRequest.class, + com.google.cloud.translate.v3.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3.TranslateTextRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -924,9 +991,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; } @java.lang.Override @@ -945,8 +1012,11 @@ public com.google.cloud.translate.v3.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3.TranslateTextRequest result = new com.google.cloud.translate.v3.TranslateTextRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.TranslateTextRequest result = + new com.google.cloud.translate.v3.TranslateTextRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -973,9 +1043,8 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -987,38 +1056,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3.TranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1026,7 +1096,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance()) + return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1065,8 +1136,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextRequest othe if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1094,59 +1164,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1156,10 +1235,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1167,6 +1248,8 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1174,14 +1257,16 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { contents_.makeImmutable(); return contents_; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1189,12 +1274,15 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1202,6 +1290,7 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1209,6 +1298,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1216,14 +1307,16 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1231,13 +1324,15 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1245,6 +1340,8 @@ public Builder setContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1252,12 +1349,14 @@ public Builder setContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1265,6 +1364,8 @@ public Builder addContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1272,19 +1373,20 @@ public Builder addContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents( - java.lang.Iterable values) { + public Builder addAllContents(java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1292,16 +1394,19 @@ public Builder addAllContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30,000 codepoints. The max
@@ -1309,12 +1414,14 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1325,19 +1432,21 @@ public Builder addContentsBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1346,21 +1455,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1368,30 +1478,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1401,18 +1518,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1422,6 +1543,8 @@ public Builder setMimeTypeBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1431,13 +1554,13 @@ public Builder setMimeTypeBytes(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1446,6 +1569,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1455,15 +1580,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1471,6 +1595,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1480,18 +1606,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1501,6 +1631,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1510,6 +1641,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The ISO-639 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1519,12 +1652,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1534,19 +1669,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1555,21 +1692,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1577,30 +1715,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1610,18 +1755,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The ISO-639 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1631,6 +1780,8 @@ public Builder setTargetLanguageCodeBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1648,14 +1799,16 @@ public Builder setTargetLanguageCodeBytes(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1664,6 +1817,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1681,16 +1836,17 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1698,6 +1854,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1715,19 +1873,25 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1745,7 +1909,10 @@ public Builder setParent(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1755,6 +1922,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1772,13 +1941,17 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1788,6 +1961,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1808,13 +1983,13 @@ public Builder setParentBytes(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1823,6 +1998,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1843,15 +2020,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1859,6 +2035,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1879,18 +2057,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1911,6 +2093,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1920,6 +2103,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1940,12 +2125,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -1955,47 +2142,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2009,13 +2216,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2029,19 +2240,25 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2054,13 +2271,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2073,74 +2294,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2149,10 +2386,13 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2168,20 +2408,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2201,6 +2442,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2216,17 +2459,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2242,23 +2487,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2273,23 +2520,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2304,17 +2550,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2329,16 +2578,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2348,12 +2595,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextRequest)
   private static final com.google.cloud.translate.v3.TranslateTextRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextRequest();
   }
@@ -2362,27 +2609,27 @@ public static com.google.cloud.translate.v3.TranslateTextRequest getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2397,6 +2644,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
index ae16c8dae3d5..714f465ced31 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextRequestOrBuilder extends
+public interface TranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -15,11 +33,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - java.util.List - getContentsList(); + java.util.List getContentsList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -27,10 +47,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ int getContentsCount(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -38,11 +61,14 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30,000 codepoints. The max
@@ -50,35 +76,42 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString - getContentsBytes(int index); + com.google.protobuf.ByteString getContentsBytes(int index); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -88,10 +121,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The ISO-639 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -101,34 +137,41 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The ISO-639 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -146,11 +189,16 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -168,13 +216,17 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -195,10 +247,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -219,45 +274,61 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -274,6 +345,8 @@ public interface TranslateTextRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -288,15 +361,13 @@ public interface TranslateTextRequestOrBuilder extends
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -311,9 +382,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -329,11 +401,13 @@ boolean containsLabels(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -348,6 +422,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
similarity index 79%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
index 9e404b27f9ce..84d6f44ae86f 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
@@ -1,20 +1,34 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-/**
- * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
- */
-public final class TranslateTextResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
+public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -22,28 +36,32 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3.TranslateTextResponse.class,
+            com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -57,6 +75,8 @@ public java.util.List getTranslations
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -66,11 +86,13 @@ public java.util.List getTranslations
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -84,6 +106,8 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -97,6 +121,8 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
     return translations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -106,15 +132,17 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
   @java.lang.Override
-  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
-      int index) {
+  public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
     return translations_.get(index);
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -130,6 +158,8 @@ public java.util.List getGlossaryTran
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -141,11 +171,13 @@ public java.util.List getGlossaryTran
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -161,6 +193,8 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -176,6 +210,8 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
     return glossaryTranslations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -193,6 +229,7 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -204,8 +241,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -222,12 +258,11 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, glossaryTranslations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -237,17 +272,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3.TranslateTextResponse other = (com.google.cloud.translate.v3.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3.TranslateTextResponse other =
+        (com.google.cloud.translate.v3.TranslateTextResponse) obj;
 
-    if (!getTranslationsList()
-        .equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList()
-        .equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,127 +307,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.TranslateTextResponse)
       com.google.cloud.translate.v3.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3.TranslateTextResponse.class, com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3.TranslateTextResponse.class,
+              com.google.cloud.translate.v3.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3.TranslateTextResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +450,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -437,14 +471,18 @@ public com.google.cloud.translate.v3.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3.TranslateTextResponse result = new com.google.cloud.translate.v3.TranslateTextResponse(this);
+      com.google.cloud.translate.v3.TranslateTextResponse result =
+          new com.google.cloud.translate.v3.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.translate.v3.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.translate.v3.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -473,38 +511,39 @@ private void buildPartial0(com.google.cloud.translate.v3.TranslateTextResponse r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3.TranslateTextResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,7 +551,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())
+        return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -531,9 +571,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTranslationsFieldBuilder() : null;
+            translationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTranslationsFieldBuilder()
+                    : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -557,9 +598,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse oth
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getGlossaryTranslationsFieldBuilder() : null;
+            glossaryTranslationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getGlossaryTranslationsFieldBuilder()
+                    : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -591,38 +633,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.translate.v3.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3.Translation.parser(),
-                      extensionRegistry);
-              if (translationsBuilder_ == null) {
-                ensureTranslationsIsMutable();
-                translations_.add(m);
-              } else {
-                translationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 26: {
-              com.google.cloud.translate.v3.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3.Translation.parser(),
-                      extensionRegistry);
-              if (glossaryTranslationsBuilder_ == null) {
-                ensureGlossaryTranslationsIsMutable();
-                glossaryTranslations_.add(m);
-              } else {
-                glossaryTranslationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.translate.v3.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
+                if (translationsBuilder_ == null) {
+                  ensureTranslationsIsMutable();
+                  translations_.add(m);
+                } else {
+                  translationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 26:
+              {
+                com.google.cloud.translate.v3.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3.Translation.parser(), extensionRegistry);
+                if (glossaryTranslationsBuilder_ == null) {
+                  ensureGlossaryTranslationsIsMutable();
+                  glossaryTranslations_.add(m);
+                } else {
+                  glossaryTranslationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -632,21 +675,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List translations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ = new java.util.ArrayList(translations_);
+        translations_ =
+            new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> translationsBuilder_;
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
+        translationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -663,6 +714,8 @@ public java.util.List getTranslations
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -679,6 +732,8 @@ public int getTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -695,6 +750,8 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -703,8 +760,7 @@ public com.google.cloud.translate.v3.Translation getTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder setTranslations(
-        int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder setTranslations(int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -718,6 +774,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -738,6 +796,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -760,6 +820,8 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -768,8 +830,7 @@ public Builder addTranslations(com.google.cloud.translate.v3.Translation value)
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public Builder addTranslations(
-        int index, com.google.cloud.translate.v3.Translation value) {
+    public Builder addTranslations(int index, com.google.cloud.translate.v3.Translation value) {
       if (translationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -783,6 +844,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -803,6 +866,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -823,6 +888,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -835,8 +902,7 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -844,6 +910,8 @@ public Builder addAllTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -863,6 +931,8 @@ public Builder clearTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -882,6 +952,8 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -890,11 +962,12 @@ public Builder removeTranslations(int index) {
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(int index) {
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -903,14 +976,16 @@ public com.google.cloud.translate.v3.Translation.Builder getTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
-        int index) {
+    public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);  } else {
+        return translations_.get(index);
+      } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -919,8 +994,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsOrBuilderList() {
+    public java.util.List
+        getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -928,6 +1003,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -937,10 +1014,12 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
     public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -949,12 +1028,13 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
-        int index) {
-      return getTranslationsFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+    public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(int index) {
+      return getTranslationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -963,38 +1043,49 @@ public com.google.cloud.translate.v3.Translation.Builder addTranslationsBuilder(
      *
      * repeated .google.cloud.translation.v3.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsBuilderList() {
+    public java.util.List
+        getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
-                translations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        translationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.Translation,
+                com.google.cloud.translate.v3.Translation.Builder,
+                com.google.cloud.translate.v3.TranslationOrBuilder>(
+                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
+        glossaryTranslations_ =
+            new java.util.ArrayList(
+                glossaryTranslations_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> glossaryTranslationsBuilder_;
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
+        glossaryTranslationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1013,6 +1104,8 @@ public java.util.List getGlossaryTran
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1031,6 +1124,8 @@ public int getGlossaryTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1049,6 +1144,8 @@ public com.google.cloud.translate.v3.Translation getGlossaryTranslations(int ind
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1074,6 +1171,8 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1096,6 +1195,8 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1120,6 +1221,8 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3.Translation
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1145,6 +1248,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1167,6 +1272,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1189,6 +1296,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1203,8 +1312,7 @@ public Builder addAllGlossaryTranslations(
         java.lang.Iterable values) {
       if (glossaryTranslationsBuilder_ == null) {
         ensureGlossaryTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, glossaryTranslations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_);
         onChanged();
       } else {
         glossaryTranslationsBuilder_.addAllMessages(values);
@@ -1212,6 +1320,8 @@ public Builder addAllGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1233,6 +1343,8 @@ public Builder clearGlossaryTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1254,6 +1366,8 @@ public Builder removeGlossaryTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1269,6 +1383,8 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
       return getGlossaryTranslationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1282,11 +1398,14 @@ public com.google.cloud.translate.v3.Translation.Builder getGlossaryTranslations
     public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
         int index) {
       if (glossaryTranslationsBuilder_ == null) {
-        return glossaryTranslations_.get(index);  } else {
+        return glossaryTranslations_.get(index);
+      } else {
         return glossaryTranslationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1297,8 +1416,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List 
-         getGlossaryTranslationsOrBuilderList() {
+    public java.util.List
+        getGlossaryTranslationsOrBuilderList() {
       if (glossaryTranslationsBuilder_ != null) {
         return glossaryTranslationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1306,6 +1425,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1317,10 +1438,12 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder() {
-      return getGlossaryTranslationsFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1333,10 +1456,12 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      */
     public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslationsBuilder(
         int index) {
-      return getGlossaryTranslationsFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
+      return getGlossaryTranslationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1347,16 +1472,22 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
      *
      * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
      */
-    public java.util.List 
-         getGlossaryTranslationsBuilderList() {
+    public java.util.List
+        getGlossaryTranslationsBuilderList() {
       return getGlossaryTranslationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder> 
+            com.google.cloud.translate.v3.Translation,
+            com.google.cloud.translate.v3.Translation.Builder,
+            com.google.cloud.translate.v3.TranslationOrBuilder>
         getGlossaryTranslationsFieldBuilder() {
       if (glossaryTranslationsBuilder_ == null) {
-        glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3.Translation, com.google.cloud.translate.v3.Translation.Builder, com.google.cloud.translate.v3.TranslationOrBuilder>(
+        glossaryTranslationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3.Translation,
+                com.google.cloud.translate.v3.Translation.Builder,
+                com.google.cloud.translate.v3.TranslationOrBuilder>(
                 glossaryTranslations_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1365,9 +1496,9 @@ public com.google.cloud.translate.v3.Translation.Builder addGlossaryTranslations
       }
       return glossaryTranslationsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1377,12 +1508,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.TranslateTextResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.TranslateTextResponse)
   private static final com.google.cloud.translate.v3.TranslateTextResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3.TranslateTextResponse();
   }
@@ -1391,27 +1522,27 @@ public static com.google.cloud.translate.v3.TranslateTextResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateTextResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateTextResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1426,6 +1557,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
index 8a9c20edf4b4..33400af51a8f 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
-public interface TranslateTextResponseOrBuilder extends
+public interface TranslateTextResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateTextResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -16,9 +34,10 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List 
-      getTranslationsList();
+  java.util.List getTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -29,6 +48,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   com.google.cloud.translate.v3.Translation getTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -39,6 +60,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   int getTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -47,9 +70,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  java.util.List 
+  java.util.List
       getTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -58,10 +83,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3.Translation translations = 1;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -72,9 +98,10 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List 
-      getGlossaryTranslationsList();
+  java.util.List getGlossaryTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -87,6 +114,8 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    */
   com.google.cloud.translate.v3.Translation getGlossaryTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -99,6 +128,8 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    */
   int getGlossaryTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -109,9 +140,11 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  java.util.List 
+  java.util.List
       getGlossaryTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -122,6 +155,5 @@ com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuilder(
    *
    * repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    */
-  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(
-      int index);
+  com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
index d3ee335b268b..d68563415ca9 100644
--- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
+++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3/translation_service.proto
 
 package com.google.cloud.translate.v3;
 
 /**
+ *
+ *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ -public final class Translation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Translation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.Translation) TranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Translation() { translatedText_ = ""; model_ = ""; @@ -27,28 +45,32 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, + com.google.cloud.translate.v3.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string translated_text = 1; + * * @return The translatedText. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -79,16 +103,15 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTranslatedText() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -112,6 +138,7 @@ public java.lang.String getTranslatedText() {
    * 
* * string model = 2; + * * @return The model. */ @java.lang.Override @@ -120,14 +147,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -140,16 +168,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -158,9 +185,12 @@ public java.lang.String getModel() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -169,6 +199,7 @@ public java.lang.String getModel() {
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -177,14 +208,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -193,16 +225,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -213,11 +244,14 @@ public java.lang.String getDetectedLanguageCode() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -225,18 +259,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -244,11 +285,15 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConf * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -290,8 +334,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -304,23 +347,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3.Translation other = (com.google.cloud.translate.v3.Translation) obj; + com.google.cloud.translate.v3.Translation other = + (com.google.cloud.translate.v3.Translation) obj; - if (!getTranslatedText() - .equals(other.getTranslatedText())) return false; - if (!getModel() - .equals(other.getModel())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText().equals(other.getTranslatedText())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -348,132 +388,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3.Translation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3.Translation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Translation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3.Translation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Translation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3.Translation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3.Translation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3.Translation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3.Translation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.Translation) com.google.cloud.translate.v3.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3.Translation.class, com.google.cloud.translate.v3.Translation.Builder.class); + com.google.cloud.translate.v3.Translation.class, + com.google.cloud.translate.v3.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3.Translation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3.TranslationServiceProto.internal_static_google_cloud_translation_v3_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3.TranslationServiceProto + .internal_static_google_cloud_translation_v3_Translation_descriptor; } @java.lang.Override @@ -511,8 +555,11 @@ public com.google.cloud.translate.v3.Translation build() { @java.lang.Override public com.google.cloud.translate.v3.Translation buildPartial() { - com.google.cloud.translate.v3.Translation result = new com.google.cloud.translate.v3.Translation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3.Translation result = + new com.google.cloud.translate.v3.Translation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -529,9 +576,8 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +585,39 @@ private void buildPartial0(com.google.cloud.translate.v3.Translation result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3.Translation) { - return mergeFrom((com.google.cloud.translate.v3.Translation)other); + return mergeFrom((com.google.cloud.translate.v3.Translation) other); } else { super.mergeFrom(other); return this; @@ -623,34 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,10 +710,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object translatedText_ = ""; /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -671,13 +724,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; + * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -686,6 +739,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -693,15 +748,14 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -709,6 +763,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -716,18 +772,22 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -735,6 +795,7 @@ public Builder setTranslatedText(
      * 
* * string translated_text = 1; + * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -744,6 +805,8 @@ public Builder clearTranslatedText() { return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -751,12 +814,14 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -766,6 +831,8 @@ public Builder setTranslatedTextBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -778,13 +845,13 @@ public Builder setTranslatedTextBytes(
      * 
* * string model = 2; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -793,6 +860,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -805,15 +874,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -821,6 +889,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -833,18 +903,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -857,6 +931,7 @@ public Builder setModel(
      * 
* * string model = 2; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -866,6 +941,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -878,12 +955,14 @@ public Builder clearModel() {
      * 
* * string model = 2; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -893,6 +972,8 @@ public Builder setModelBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -901,13 +982,13 @@ public Builder setModelBytes(
      * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -916,6 +997,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -924,15 +1007,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -940,6 +1022,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -948,18 +1032,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -968,6 +1056,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 4; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -977,6 +1066,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The ISO-639 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -985,12 +1076,14 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1000,41 +1093,55 @@ public Builder setDetectedLanguageCodeBytes( private com.google.cloud.translate.v3.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,6 +1155,8 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1066,17 +1175,21 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1089,6 +1202,8 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1106,33 +1221,42 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ - public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1140,21 +1264,24 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlo * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3.TranslateTextGlossaryConfig, com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,12 +1291,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.Translation) private static final com.google.cloud.translate.v3.Translation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3.Translation(); } @@ -1178,27 +1305,27 @@ public static com.google.cloud.translate.v3.Translation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1340,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java index c583eea67e05..e282db3326fe 100644 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3/translation_service.proto package com.google.cloud.translate.v3; -public interface TranslationOrBuilder extends +public interface TranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.Translation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -15,10 +33,13 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The translatedText. */ java.lang.String getTranslatedText(); /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -26,12 +47,14 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString - getTranslatedTextBytes(); + com.google.protobuf.ByteString getTranslatedTextBytes(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -44,10 +67,13 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -60,12 +86,14 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -74,10 +102,13 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The ISO-639 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -86,30 +117,38 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java new file mode 100644 index 000000000000..51734e862e27 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java @@ -0,0 +1,1021 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3/translation_service.proto + +package com.google.cloud.translate.v3; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Translation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/translate/v3/translation_" + + "service.proto\022\033google.cloud.translation." + + "v3\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032#g" + + "oogle/longrunning/operations.proto\032\037goog" + + "le/protobuf/timestamp.proto\"P\n\033Translate" + + "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" + + "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" + + "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" + + "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" + + "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" + + "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\005m" + + "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" + + "\0132=.google.cloud.translation.v3.Translat" + + "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" + + "\n\025TranslateTextResponse\022>\n\014translations\030" + + "\001 \003(\0132(.google.cloud.translation.v3.Tran" + + "slation\022G\n\025glossary_translations\030\003 \003(\0132(" + + ".google.cloud.translation.v3.Translation" + + "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" + + "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" + + "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" + + "le.cloud.translation.v3.TranslateTextGlo" + + "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" + + "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" + + "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" + + "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" + + "ation.v3.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" + + "nguages\030\001 \003(\0132-.google.cloud.translation" + + ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" + + "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" + + "locations.googleapis.com/Location\022#\n\025dis" + + "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" + + "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" + + "guages\030\001 \003(\0132..google.cloud.translation." + + "v3.SupportedLanguage\"p\n\021SupportedLanguag" + + "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" + + "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" + + "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" + + "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" + + "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" + + "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" + + "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" + + "estination\030\001 \001(\0132+.google.cloud.translat" + + "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" + + "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" + + "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" + + "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" + + "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" + + "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" + + "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" + + "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" + + "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" + + "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" + + "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" + + "\n\025document_input_config\030\004 \001(\01320.google.c" + + "loud.translation.v3.DocumentInputConfigB" + + "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." + + "google.cloud.translation.v3.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" + + "lossary_config\030\007 \001(\01328.google.cloud.tran" + + "slation.v3.TranslateTextGlossaryConfigB\004" + + "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" + + "slation.v3.TranslateDocumentRequest.Labe" + + "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" + + "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" + + "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" + + "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" + + "nse\022N\n\024document_translation\030\001 \001(\01320.goog" + + "le.cloud.translation.v3.DocumentTranslat" + + "ion\022W\n\035glossary_document_translation\030\002 \001" + + "(\01320.google.cloud.translation.v3.Documen" + + "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" + + "config\030\004 \001(\01328.google.cloud.translation." + + "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" + + "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!locations.googleapis.com/Location" + + "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" + + "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" + + "els\030\004 \003(\0132B.google.cloud.translation.v3." + + "BatchTranslateTextRequest.ModelsEntryB\004\342" + + "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" + + "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" + + "tput_config\030\006 \001(\0132).google.cloud.transla" + + "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" + + "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" + + "chTranslateTextRequest.GlossariesEntryB\004" + + "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" + + "slation.v3.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" + + "oud.translation.v3.TranslateTextGlossary" + + "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" + + "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" + + "lation.v3.BatchTranslateMetadata.State\022\035" + + "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" + + "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" + + "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" + + "atchTranslateResponse\022\030\n\020total_character" + + "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" + + "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" + + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " + + "\001(\0132&.google.cloud.translation.v3.GcsSou" + + "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" + + ".cloud.translation.v3.Glossary.LanguageC" + + "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." + + "google.cloud.translation.v3.Glossary.Lan" + + "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." + + "google.cloud.translation.v3.GlossaryInpu" + + "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" + + "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " + + "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" + + "language_code\030\001 \001(\t\022\034\n\024target_language_c" + + "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" + + "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" + + ".com/Glossary\022=projects/{project}/locati" + + "ons/{location}/glossaries/{glossary}B\013\n\t" + + "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" + + "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" + + "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + + "\372A#\n!translate.googleapis.com/Glossary\"Q" + + "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" + + "A\001\002\372A#\n!translate.googleapis.com/Glossar" + + "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " + + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + + "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" + + "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" + + "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" + + "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" + + "\030\002 \001(\01629.google.cloud.translation.v3.Cre" + + "ateGlossaryMetadata.State\022/\n\013submit_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" + + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" + + "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" + + "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" + + "le.cloud.translation.v3.DeleteGlossaryMe" + + "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" + + "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" + + "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\"\n\024so" + + "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" + + "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" + + "figs\030\004 \003(\01325.google.cloud.translation.v3" + + ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" + + "t_config\030\005 \001(\01326.google.cloud.translatio" + + "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" + + "models\030\006 \003(\0132F.google.cloud.translation." + + "v3.BatchTranslateDocumentRequest.ModelsE" + + "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." + + "cloud.translation.v3.BatchTranslateDocum" + + "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" + + "at_conversions\030\010 \003(\0132Q.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" + + "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" + + "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" + + "\01328.google.cloud.translation.v3.Translat" + + "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" + + "rce\030\001 \001(\0132&.google.cloud.translation.v3." + + "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" + + "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" + + "ogle.cloud.translation.v3.GcsDestination" + + "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" + + "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" + + "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" + + "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" + + "_characters\030\005 \001(\003\022\035\n\025translated_characte" + + "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" + + "otal_billable_characters\030\010 \001(\003\022/\n\013submit" + + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" + + "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" + + "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" + + "on.v3.BatchTranslateDocumentMetadata.Sta" + + "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" + + "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" + + "_billable_pages\030\005 \001(\003\022\030\n\020total_character" + + "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" + + "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" + + "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" + + "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" + + "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" + + "TranslateText\0221.google.cloud.translation" + + ".v3.TranslateTextRequest\0322.google.cloud." + + "translation.v3.TranslateTextResponse\"\333\001\332" + + "A$parent,target_language_code,contents\332A" + + "Iparent,model,mime_type,source_language_" + + "code,target_language_code,contents\202\323\344\223\002b" + + "\"1/v3/{parent=projects/*/locations/*}:tr" + + "anslateText:\001*Z*\"%/v3/{parent=projects/*" + + "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." + + "google.cloud.translation.v3.DetectLangua" + + "geRequest\0323.google.cloud.translation.v3." + + "DetectLanguageResponse\"\213\001\332A\036parent,model" + + ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" + + "ojects/*/locations/*}:detectLanguage:\001*Z" + + "+\"&/v3/{parent=projects/*}:detectLanguag" + + "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." + + "cloud.translation.v3.GetSupportedLanguag" + + "esRequest\032/.google.cloud.translation.v3." + + "SupportedLanguages\"\221\001\332A\"parent,model,dis" + + "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z,\022*/v3/{parent=projects/*}/supportedLan" + + "guages\022\304\001\n\021TranslateDocument\0225.google.cl" + + "oud.translation.v3.TranslateDocumentRequ" + + "est\0326.google.cloud.translation.v3.Transl" + + "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" + + "=projects/*/locations/*}:translateDocume" + + "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" + + "oud.translation.v3.BatchTranslateTextReq" + + "uest\032\035.google.longrunning.Operation\"t\312A0" + + "\n\026BatchTranslateResponse\022\026BatchTranslate" + + "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" + + "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" + + "tchTranslateDocument\022:.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" + + "atchTranslateDocumentResponse\022\036BatchTran" + + "slateDocumentMetadata\332AMparent,source_la" + + "nguage_code,target_language_codes,input_" + + "configs,output_config\202\323\344\223\002?\":/v3/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" + + "loud.translation.v3.CreateGlossaryReques" + + "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" + + "lossary\022\026CreateGlossaryMetadata\332A\017parent" + + ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" + + "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" + + "stGlossaries\0222.google.cloud.translation." + + "v3.ListGlossariesRequest\0323.google.cloud." + + "translation.v3.ListGlossariesResponse\"?\332" + + "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" + + "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" + + ".google.cloud.translation.v3.GetGlossary" + + "Request\032%.google.cloud.translation.v3.Gl" + + "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" + + "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" + + "Glossary\0222.google.cloud.translation.v3.D" + + "eleteGlossaryRequest\032\035.google.longrunnin" + + "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" + + "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" + + "v3/{name=projects/*/locations/*/glossari" + + "es/*}\032~\312A\030translate.googleapis.com\322A`htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-translationB\321\001\n\035com.google.cloud.trans" + + "late.v3B\027TranslationServiceProtoP\001Z;clou" + + "d.google.com/go/translate/apiv3/translat" + + "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" + + "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" + + "gle::Cloud::Translate::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { + "Glossary", "IgnoreCase", + }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, + new java.lang.String[] { + "Contents", + "MimeType", + "SourceLanguageCode", + "TargetLanguageCode", + "Parent", + "Model", + "GlossaryConfig", + "Labels", + }); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, + new java.lang.String[] { + "Translations", "GlossaryTranslations", + }); + internal_static_google_cloud_translation_v3_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Translation_descriptor, + new java.lang.String[] { + "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, + new java.lang.String[] { + "Parent", "Model", "Content", "MimeType", "Labels", "Source", + }); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayLanguageCode", "Model", + }); + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", + }); + internal_static_google_cloud_translation_v3_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsSource_descriptor, + new java.lang.String[] { + "InputUri", + }); + internal_static_google_cloud_translation_v3_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_InputConfig_descriptor, + new java.lang.String[] { + "MimeType", "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GcsDestination_descriptor, + new java.lang.String[] { + "OutputUriPrefix", + }); + internal_static_google_cloud_translation_v3_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, + new java.lang.String[] { + "Content", "GcsSource", "MimeType", "Source", + }); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "MimeType", "Destination", + }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCode", + "DocumentInputConfig", + "DocumentOutputConfig", + "Model", + "GlossaryConfig", + "Labels", + "CustomizedAttribution", + "IsTranslateNativePdfOnly", + "EnableShadowRemovalNativePdf", + }); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, + new java.lang.String[] { + "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", + }); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, + new java.lang.String[] { + "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "Models", + "InputConfigs", + "OutputConfig", + "Glossaries", + "Labels", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, + new java.lang.String[] { + "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", + }); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, + new java.lang.String[] { + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_descriptor, + new java.lang.String[] { + "Name", + "LanguagePair", + "LanguageCodesSet", + "InputConfig", + "EntryCount", + "SubmitTime", + "EndTime", + "DisplayName", + "Languages", + }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { + "SourceLanguageCode", "TargetLanguageCode", + }); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { + "LanguageCodes", + }); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, + new java.lang.String[] { + "Parent", "Glossary", + }); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, + new java.lang.String[] { + "Glossaries", "NextPageToken", + }); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { + "Name", "SubmitTime", "EndTime", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "InputConfigs", + "OutputConfig", + "Models", + "Glossaries", + "FormatConversions", + "CustomizedAttribution", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { + "State", + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto b/java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto similarity index 100% rename from owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto rename to java-translate/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java similarity index 77% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java index 9b454d2bb90c..76528b7c481e 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Input configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ -public final class BatchDocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) BatchDocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentInputConfig.newBuilder() to construct. private BatchDocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentInputConfig() { - } + + private BatchDocumentInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -107,6 +133,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -114,6 +141,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -137,16 +166,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -174,12 +206,13 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -191,8 +224,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -206,8 +238,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,18 +250,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other =
+        (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -258,131 +291,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchDocumentInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentInputConfig) com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; } @java.lang.Override @@ -417,8 +455,11 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = + new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -428,11 +469,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentInput int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -441,38 +482,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocument public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -480,15 +522,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -516,19 +561,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,12 +583,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -556,8 +601,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -581,6 +631,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -588,6 +639,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -611,6 +664,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -628,6 +682,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -666,6 +722,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -702,6 +760,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -728,10 +788,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -747,6 +810,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -788,6 +853,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -816,6 +883,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -852,6 +921,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -877,14 +948,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -894,9 +970,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -906,12 +982,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
   private static final com.google.cloud.translate.v3beta1.BatchDocumentInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig();
   }
@@ -920,27 +996,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -955,6 +1031,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
index 3406b688b235..2f203da680ed 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentInputConfigOrBuilder extends
+public interface BatchDocumentInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -31,10 +49,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -58,10 +79,13 @@ public interface BatchDocumentInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
similarity index 84%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
index 514d7133b009..cab80a6095d9 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
@@ -1,56 +1,78 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * Output configuration for BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ -public final class BatchDocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchDocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) BatchDocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchDocumentOutputConfig.newBuilder() to construct. private BatchDocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDocumentOutputConfig() { - } + + private BatchDocumentOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchDocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -133,6 +159,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -140,6 +167,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -189,16 +218,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -252,12 +284,13 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +302,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -284,8 +316,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -295,18 +328,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other = (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
+    com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other =
+        (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -336,131 +369,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchDocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchDocumentOutputConfig) com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,13 +512,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance(); } @@ -495,22 +534,26 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = + new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -519,38 +562,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.BatchDocument public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -558,15 +602,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -594,19 +642,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,12 +664,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -634,8 +682,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -685,6 +738,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -692,6 +746,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -741,6 +797,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -758,6 +815,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -822,6 +881,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -884,6 +945,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -936,10 +999,14 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_
+                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -955,6 +1022,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1022,6 +1091,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1076,6 +1147,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1138,6 +1211,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -1189,14 +1264,19 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsDestination,
+            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsDestination,
+                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1206,9 +1286,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1218,12 +1298,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
-  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig();
   }
@@ -1232,27 +1313,27 @@ public static com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchDocumentOutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchDocumentOutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1267,6 +1348,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
similarity index 92%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
index 7f63ba313509..4efe695d3514 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchDocumentOutputConfigOrBuilder extends
+public interface BatchDocumentOutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchDocumentOutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -57,10 +75,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
@@ -110,10 +131,13 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input document (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
index 7f495e9b0317..8bf67fed5ae8 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ -public final class BatchTranslateDocumentMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) BatchTranslateDocumentMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentMetadata.newBuilder() to construct. - private BatchTranslateDocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchTranslateDocumentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +84,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +94,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -77,6 +104,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -85,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -94,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -107,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -115,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -123,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -131,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -139,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -148,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -158,7 +203,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -183,52 +227,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -248,38 +297,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } public static final int TOTAL_PAGES_FIELD_NUMBER = 2; private long totalPages_ = 0L; /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -290,12 +353,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -306,12 +372,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -322,12 +391,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -338,11 +410,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -353,12 +428,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -369,12 +447,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -385,12 +466,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -401,11 +485,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -413,11 +500,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ @java.lang.Override @@ -425,6 +515,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -437,6 +529,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,9 +541,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (totalPages_ != 0L) { @@ -489,45 +583,37 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (totalPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, totalPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalPages_); } if (translatedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, translatedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, translatedPages_); } if (failedPages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, failedPages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failedPages_); } if (totalBillablePages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, totalBillablePages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalBillablePages_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalCharacters_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, failedCharacters_); } if (totalBillableCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, totalBillableCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -537,34 +623,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other = + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) obj; if (state_ != other.state_) return false; - if (getTotalPages() - != other.getTotalPages()) return false; - if (getTranslatedPages() - != other.getTranslatedPages()) return false; - if (getFailedPages() - != other.getFailedPages()) return false; - if (getTotalBillablePages() - != other.getTotalBillablePages()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalBillableCharacters() - != other.getTotalBillableCharacters()) return false; + if (getTotalPages() != other.getTotalPages()) return false; + if (getTranslatedPages() != other.getTranslatedPages()) return false; + if (getFailedPages() != other.getFailedPages()) return false; + if (getTotalBillablePages() != other.getTotalBillablePages()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -580,29 +658,21 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages()); hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages()); hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedPages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages()); hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillablePages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalBillableCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -613,131 +683,138 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.Builder.class); } - // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -760,13 +837,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance(); } @@ -781,13 +859,17 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = + new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -817,9 +899,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu result.totalBillableCharacters_ = totalBillableCharacters_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -827,46 +907,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata other) { + if (other + == com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -923,64 +1007,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - totalPages_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - translatedPages_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - failedPages_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - totalBillablePages_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - totalBillableCharacters_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + totalPages_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + translatedPages_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failedPages_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + totalBillablePages_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -990,26 +1083,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1020,28 +1123,40 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { + public Builder setState( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State value) { if (value == null) { throw new NullPointerException(); } @@ -1051,11 +1166,15 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateDocumen return this; } /** + * + * *
      * The state of the operation.
      * 
* - * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1065,14 +1184,17 @@ public Builder clearState() { return this; } - private long totalPages_ ; + private long totalPages_; /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return The totalPages. */ @java.lang.Override @@ -1080,12 +1202,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -1097,12 +1222,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 2; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -1112,14 +1240,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ @java.lang.Override @@ -1127,12 +1258,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -1144,12 +1278,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 3; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -1159,14 +1296,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ @java.lang.Override @@ -1174,12 +1314,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -1191,12 +1334,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents so far. Documents
      * without clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 4; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -1206,14 +1352,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ @java.lang.Override @@ -1221,12 +1370,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1238,12 +1390,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX) so far.
      * 
* * int64 total_billable_pages = 5; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1253,13 +1408,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -1267,11 +1425,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1283,11 +1444,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents so far.
      * 
* * int64 total_characters = 6; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1297,14 +1461,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1312,12 +1479,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1329,12 +1499,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents so far.
      * 
* * int64 translated_characters = 7; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1344,14 +1517,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ @java.lang.Override @@ -1359,12 +1535,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1376,12 +1555,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents so far.
      * 
* * int64 failed_characters = 8; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1391,14 +1573,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1406,12 +1591,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1423,12 +1611,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition (such as XLSX) so far.
      * 
* * int64 total_billable_characters = 9; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1440,34 +1631,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1488,14 +1692,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 10; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1506,6 +1711,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1514,9 +1721,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1529,6 +1736,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1546,6 +1755,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1558,6 +1769,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1568,11 +1781,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1580,21 +1796,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1604,41 +1823,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1650,9 +1871,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java index d6562ae29804..ee61a8cc79bf 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,137 +1,191 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentMetadataOrBuilder extends +public interface BatchTranslateDocumentMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState(); /** + * + * *
    * Total number of pages to translate in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 2; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 3; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents so far. Documents
    * without clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 4; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX) so far.
    * 
* * int64 total_billable_pages = 5; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents so far.
    * 
* * int64 translated_characters = 7; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents so far.
    * 
* * int64 failed_characters = 8; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition (such as XLSX) so far.
    * 
* * int64 total_billable_characters = 9; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 10; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java index 1376e05c8509..995377d556f9 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java @@ -1,48 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The BatchTranslateDocument request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ -public final class BatchTranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) BatchTranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateDocumentRequest.newBuilder() to construct. private BatchTranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -51,22 +66,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -79,7 +99,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -88,14 +111,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -108,17 +132,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -127,9 +152,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -137,6 +165,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -145,14 +174,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -160,16 +190,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -178,41 +207,53 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -220,24 +261,30 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int INPUT_CONFIGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List inputConfigs_; /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -245,13 +292,18 @@ public java.lang.String getTargetLanguageCodes(int index) {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -259,14 +311,19 @@ public java.util.List
    *
-   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
+   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>
       getInputConfigsOrBuilderList() {
     return inputConfigs_;
   }
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -274,13 +331,17 @@ public java.util.List
    *
-   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
+   * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
+   * 
    */
   @java.lang.Override
   public int getInputConfigsCount() {
     return inputConfigs_.size();
   }
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -288,13 +349,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -302,24 +367,31 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder + getInputConfigsOrBuilder(int index) { return inputConfigs_.get(index); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -327,60 +399,76 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } public static final int MODELS_FIELD_NUMBER = 6; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -402,20 +490,21 @@ public int getModelsCount() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -441,6 +530,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -462,17 +553,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -494,11 +587,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -506,94 +599,126 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int GLOSSARIES_FIELD_NUMBER = 7;
+
   private static final class GlossariesDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry =
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.translate.v3beta1.TranslationServiceProto
+                            .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
+                            .getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
-  private com.google.protobuf.MapField
-  internalGetGlossaries() {
+          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+      glossaries_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+      internalGetGlossaries() {
     if (glossaries_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          GlossariesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry);
     }
     return glossaries_;
   }
+
   public int getGlossariesCount() {
     return internalGetGlossaries().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -601,32 +726,36 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int FORMAT_CONVERSIONS_FIELD_NUMBER = 8; + private static final class FormatConversionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField - internalGetFormatConversions() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -640,23 +769,26 @@ public int getFormatConversionsCount() {
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -670,13 +802,17 @@ public java.util.Map getFormatConversions()
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -690,20 +826,24 @@ public java.util.Map getFormatConversionsMap
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -717,14 +857,16 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -732,6 +874,7 @@ public java.lang.String getFormatConversionsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -743,8 +886,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -760,20 +902,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (outputConfig_ != null) { output.writeMessage(5, getOutputConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetModels(), - ModelsDefaultEntryHolder.defaultEntry, - 6); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetGlossaries(), - GlossariesDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetFormatConversions(), FormatConversionsDefaultEntryHolder.defaultEntry, @@ -802,42 +935,43 @@ public int getSerializedSize() { size += 1 * getTargetLanguageCodesList().size(); } for (int i = 0; i < inputConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, inputConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputConfigs_.get(i)); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); - } - for (java.util.Map.Entry entry - : internalGetModels().getMap().entrySet()) { - com.google.protobuf.MapEntry - models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, models__); - } - for (java.util.Map.Entry entry - : internalGetGlossaries().getMap().entrySet()) { - com.google.protobuf.MapEntry - glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, glossaries__); - } - for (java.util.Map.Entry entry - : internalGetFormatConversions().getMap().entrySet()) { - com.google.protobuf.MapEntry - formatConversions__ = FormatConversionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, formatConversions__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + } + for (java.util.Map.Entry entry : + internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry models__ = + ModelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, models__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + entry : internalGetGlossaries().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + GlossariesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__); + } + for (java.util.Map.Entry entry : + internalGetFormatConversions().getMap().entrySet()) { + com.google.protobuf.MapEntry formatConversions__ = + FormatConversionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, formatConversions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -847,32 +981,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other = + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCodesList() - .equals(other.getTargetLanguageCodesList())) return false; - if (!getInputConfigsList() - .equals(other.getInputConfigsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false; + if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; - } - if (!internalGetModels().equals( - other.internalGetModels())) return false; - if (!internalGetGlossaries().equals( - other.internalGetGlossaries())) return false; - if (!internalGetFormatConversions().equals( - other.internalGetFormatConversions())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (!internalGetModels().equals(other.internalGetModels())) return false; + if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false; + if (!internalGetFormatConversions().equals(other.internalGetFormatConversions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -918,116 +1045,121 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The BatchTranslateDocument request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetModels(); @@ -1036,13 +1168,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 8: return internalGetFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableModels(); @@ -1051,36 +1182,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 8: return internalGetMutableFormatConversions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); } else { @@ -1100,13 +1229,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance(); } @@ -1121,14 +1251,18 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest build() @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result = + new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1140,7 +1274,8 @@ private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.Batch } } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1153,9 +1288,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu result.targetLanguageCodes_ = targetLanguageCodes_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.models_ = internalGetModels(); @@ -1175,46 +1309,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest other) { + if (other + == com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1253,9 +1391,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocume inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000008); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1264,14 +1403,11 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocume if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000020; - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableFormatConversions().mergeFrom( - other.internalGetFormatConversions()); + internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1299,75 +1435,92 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - formatConversions__ = input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFormatConversions().getMutableMap().put( - formatConversions__.getKey(), formatConversions__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), + extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry + formatConversions__ = + input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFormatConversions() + .getMutableMap() + .put(formatConversions__.getKey(), formatConversions__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1377,10 +1530,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1393,14 +1549,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1409,6 +1567,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1421,16 +1581,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1438,6 +1599,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1450,19 +1613,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1475,7 +1644,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1485,6 +1657,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1497,13 +1671,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1513,6 +1691,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1520,13 +1700,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1535,6 +1715,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1542,15 +1724,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1558,6 +1739,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1565,18 +1748,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1584,6 +1771,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1593,6 +1781,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1600,12 +1790,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1615,6 +1807,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1622,38 +1815,49 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1661,33 +1865,41 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1695,18 +1907,23 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1714,53 +1931,64 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1769,19 +1997,27 @@ public Builder addTargetLanguageCodesBytes( return this; } - private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + inputConfigs_ = java.util.Collections.emptyList(); + private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - inputConfigs_ = new java.util.ArrayList(inputConfigs_); + inputConfigs_ = + new java.util.ArrayList( + inputConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> inputConfigsBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + inputConfigsBuilder_; /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1789,9 +2025,12 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getInputConfigsList() { + public java.util.List + getInputConfigsList() { if (inputConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputConfigs_); } else { @@ -1799,6 +2038,8 @@ public java.util.List * Required. Input configurations. * The total number of files matched should be <= 100. @@ -1806,7 +2047,9 @@ public java.util.List * - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -1816,6 +2059,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1823,7 +2068,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -1833,6 +2080,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1840,7 +2089,9 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -1857,6 +2108,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1864,10 +2117,13 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( - int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.set(index, builderForValue.build()); @@ -1878,6 +2134,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1885,9 +2143,12 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { + public Builder addInputConfigs( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { if (inputConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1901,6 +2162,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentI return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1908,7 +2171,9 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentI
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig value) { @@ -1925,6 +2190,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1932,7 +2199,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { @@ -1946,6 +2215,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1953,10 +2224,13 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( - int index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { + int index, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder builderForValue) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); inputConfigs_.add(index, builderForValue.build()); @@ -1967,6 +2241,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1974,14 +2250,16 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -1989,6 +2267,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1996,7 +2276,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2009,6 +2291,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2016,7 +2300,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2029,6 +2315,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2036,13 +2324,17 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder getInputConfigsBuilder( - int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder + getInputConfigsBuilder(int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2050,16 +2342,21 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder getIn
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder + getInputConfigsOrBuilder(int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2067,10 +2364,13 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getI
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2078,6 +2378,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getI } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2085,13 +2387,19 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getI
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder + addInputConfigsBuilder() { + return getInputConfigsFieldBuilder() + .addBuilder( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2099,14 +2407,20 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addIn
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addInputConfigsBuilder( - int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder + addInputConfigsBuilder(int index) { + return getInputConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2114,22 +2428,27 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addIn
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2137,47 +2456,67 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.Builder addIn private com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder setOutputConfig( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2191,13 +2530,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentO return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder builderForValue) { @@ -2211,19 +2554,26 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig + .getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2236,13 +2586,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.BatchDocumen return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2255,74 +2609,90 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder getOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder + getOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -2331,10 +2701,13 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder get onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2356,20 +2729,21 @@ public int getModelsCount() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2395,6 +2769,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2416,17 +2792,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2448,23 +2826,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2485,23 +2865,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2522,17 +2901,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is the model name. Value can be a built-in general model,
@@ -2553,17 +2935,18 @@ public Builder putModels(
      *
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        glossaries_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
         internalGetGlossaries() {
       if (glossaries_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -2571,11 +2954,13 @@ public Builder putAllModels(
       }
       return glossaries_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
         internalGetMutableGlossaries() {
       if (glossaries_ == null) {
-        glossaries_ = com.google.protobuf.MapField.newMapField(
-            GlossariesDefaultEntryHolder.defaultEntry);
+        glossaries_ =
+            com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry);
       }
       if (!glossaries_.isMutable()) {
         glossaries_ = glossaries_.copy();
@@ -2584,140 +2969,181 @@ public Builder putAllModels(
       onChanged();
       return glossaries_;
     }
+
     public int getGlossariesCount() {
       return internalGetGlossaries().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied. It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> formatConversions_; + private com.google.protobuf.MapField formatConversions_; + private com.google.protobuf.MapField internalGetFormatConversions() { if (formatConversions_ == null) { @@ -2726,11 +3152,13 @@ public Builder putAllGlossaries( } return formatConversions_; } + private com.google.protobuf.MapField internalGetMutableFormatConversions() { if (formatConversions_ == null) { - formatConversions_ = com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); + formatConversions_ = + com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); } if (!formatConversions_.isMutable()) { formatConversions_ = formatConversions_.copy(); @@ -2739,10 +3167,13 @@ public Builder putAllGlossaries( onChanged(); return formatConversions_; } + public int getFormatConversionsCount() { return internalGetFormatConversions().getMap().size(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2756,23 +3187,26 @@ public int getFormatConversionsCount() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetFormatConversions().getMap().containsKey(key); } - /** - * Use {@link #getFormatConversionsMap()} instead. - */ + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFormatConversions() { return getFormatConversionsMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2786,13 +3220,17 @@ public java.util.Map getFormatConversions()
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getFormatConversionsMap() { return internalGetFormatConversions().getMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2806,20 +3244,25 @@ public java.util.Map getFormatConversionsMap
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getFormatConversionsOrDefault( + public /* nullable */ java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2833,12 +3276,15 @@ java.lang.String getFormatConversionsOrDefault(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getFormatConversionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -2846,13 +3292,15 @@ public java.lang.String getFormatConversionsOrThrow( } return map.get(key); } + public Builder clearFormatConversions() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableFormatConversions().getMutableMap() - .clear(); + internalGetMutableFormatConversions().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2866,25 +3314,26 @@ public Builder clearFormatConversions() {
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeFormatConversions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableFormatConversions().getMutableMap() - .remove(key); + public Builder removeFormatConversions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFormatConversions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableFormatConversions() { + public java.util.Map getMutableFormatConversions() { bitField0_ |= 0x00000080; return internalGetMutableFormatConversions().getMutableMap(); } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2898,19 +3347,24 @@ public Builder removeFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putFormatConversions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFormatConversions().getMutableMap() - .put(key, value); + public Builder putFormatConversions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFormatConversions().getMutableMap().put(key, value); bitField0_ |= 0x00000080; return this; } /** + * + * *
      * Optional. File format conversion map to be applied to all input files.
      * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -2924,18 +3378,19 @@ public Builder putFormatConversions(
      * original file.
      * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllFormatConversions( java.util.Map values) { - internalGetMutableFormatConversions().getMutableMap() - .putAll(values); + internalGetMutableFormatConversions().getMutableMap().putAll(values); bitField0_ |= 0x00000080; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2945,41 +3400,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) - private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest(); } - public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2991,9 +3448,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java index fb24daa5c499..417f5d3bcc93 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateDocumentRequestOrBuilder extends +public interface BatchTranslateDocumentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -37,13 +60,17 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -51,10 +78,13 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -62,57 +92,73 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -120,11 +166,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -132,10 +181,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -143,10 +196,14 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -154,11 +211,15 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -166,45 +227,63 @@ public interface BatchTranslateDocumentRequestOrBuilder extends
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder( int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -227,6 +306,8 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -247,15 +328,13 @@ com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getInputCon
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -276,9 +355,10 @@ boolean containsModels(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -300,11 +380,13 @@ boolean containsModels(
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is the model name. Value can be a built-in general model,
@@ -325,64 +407,82 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied. It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -396,10 +496,14 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getFormatConversionsCount(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -413,17 +517,17 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsFormatConversions( - java.lang.String key); - /** - * Use {@link #getFormatConversionsMap()} instead. + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsFormatConversions(java.lang.String key); + /** Use {@link #getFormatConversionsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getFormatConversions(); + java.util.Map getFormatConversions(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -437,11 +541,14 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getFormatConversionsMap(); + java.util.Map getFormatConversionsMap(); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -455,14 +562,18 @@ boolean containsFormatConversions(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getFormatConversionsOrDefault( + java.lang.String getFormatConversionsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. File format conversion map to be applied to all input files.
    * Map's key is the original mime_type. Map's value is the target mime_type of
@@ -476,8 +587,9 @@ java.lang.String getFormatConversionsOrDefault(
    * original file.
    * 
* - * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getFormatConversionsOrThrow( - java.lang.String key); + java.lang.String getFormatConversionsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java index 195df291224e..5719acca8c95 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,47 +30,52 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
  */
-public final class BatchTranslateDocumentResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     BatchTranslateDocumentResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateDocumentResponse.newBuilder() to construct.
-  private BatchTranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchTranslateDocumentResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateDocumentResponse() {
-  }
+
+  private BatchTranslateDocumentResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateDocumentResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
+            com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
   }
 
   public static final int TOTAL_PAGES_FIELD_NUMBER = 1;
   private long totalPages_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -64,12 +86,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; private long translatedPages_ = 0L; /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -80,12 +105,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; private long failedPages_ = 0L; /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -96,12 +124,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; private long totalBillablePages_ = 0L; /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -112,11 +143,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -127,12 +161,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -143,12 +180,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -159,12 +199,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; private long totalBillableCharacters_ = 0L; /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -175,11 +218,14 @@ public long getTotalBillableCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -187,11 +233,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ @java.lang.Override @@ -199,6 +248,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -213,6 +264,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -220,6 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -227,6 +281,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -234,6 +290,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ @java.lang.Override @@ -241,6 +298,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -255,6 +314,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,8 +326,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalPages_ != 0L) {
       output.writeInt64(1, totalPages_);
     }
@@ -308,44 +367,34 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalPages_);
     }
     if (translatedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedPages_);
     }
     if (failedPages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedPages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedPages_);
     }
     if (totalBillablePages_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(4, totalBillablePages_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalBillablePages_);
     }
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(5, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(6, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(7, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, failedCharacters_);
     }
     if (totalBillableCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(8, totalBillableCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalBillableCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -355,38 +404,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
-
-    if (getTotalPages()
-        != other.getTotalPages()) return false;
-    if (getTranslatedPages()
-        != other.getTranslatedPages()) return false;
-    if (getFailedPages()
-        != other.getFailedPages()) return false;
-    if (getTotalBillablePages()
-        != other.getTotalBillablePages()) return false;
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
-    if (getTotalBillableCharacters()
-        != other.getTotalBillableCharacters()) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other =
+        (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) obj;
+
+    if (getTotalPages() != other.getTotalPages()) return false;
+    if (getTranslatedPages() != other.getTranslatedPages()) return false;
+    if (getFailedPages() != other.getFailedPages()) return false;
+    if (getTotalBillablePages() != other.getTotalBillablePages()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
+    if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -400,29 +440,21 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalPages());
     hash = (37 * hash) + TRANSLATED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedPages());
     hash = (37 * hash) + FAILED_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedPages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedPages());
     hash = (37 * hash) + TOTAL_BILLABLE_PAGES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillablePages());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillablePages());
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalBillableCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -437,98 +469,105 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -538,33 +577,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateDocumentResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.class,
+              com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -591,13 +630,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance();
     }
 
@@ -612,13 +652,17 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse build()
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result =
+          new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
+    private void buildPartial0(
+        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.totalPages_ = totalPages_;
@@ -645,14 +689,10 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu
         result.totalBillableCharacters_ = totalBillableCharacters_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -660,46 +700,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateDocu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse other) {
+      if (other
+          == com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.getDefaultInstance())
+        return this;
       if (other.getTotalPages() != 0L) {
         setTotalPages(other.getTotalPages());
       }
@@ -756,66 +800,73 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalPages_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedPages_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedPages_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              totalBillablePages_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 48: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              totalBillableCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalPages_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedPages_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedPages_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                totalBillablePages_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 48:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                totalBillableCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -825,16 +876,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalPages_ ;
+    private long totalPages_;
     /**
+     *
+     *
      * 
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return The totalPages. */ @java.lang.Override @@ -842,12 +897,15 @@ public long getTotalPages() { return totalPages_; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @param value The totalPages to set. * @return This builder for chaining. */ @@ -859,12 +917,15 @@ public Builder setTotalPages(long value) { return this; } /** + * + * *
      * Total number of pages to translate in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 total_pages = 1; + * * @return This builder for chaining. */ public Builder clearTotalPages() { @@ -874,14 +935,17 @@ public Builder clearTotalPages() { return this; } - private long translatedPages_ ; + private long translatedPages_; /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ @java.lang.Override @@ -889,12 +953,15 @@ public long getTranslatedPages() { return translatedPages_; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @param value The translatedPages to set. * @return This builder for chaining. */ @@ -906,12 +973,15 @@ public Builder setTranslatedPages(long value) { return this; } /** + * + * *
      * Number of successfully translated pages in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 translated_pages = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedPages() { @@ -921,14 +991,17 @@ public Builder clearTranslatedPages() { return this; } - private long failedPages_ ; + private long failedPages_; /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ @java.lang.Override @@ -936,12 +1009,15 @@ public long getFailedPages() { return failedPages_; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @param value The failedPages to set. * @return This builder for chaining. */ @@ -953,12 +1029,15 @@ public Builder setFailedPages(long value) { return this; } /** + * + * *
      * Number of pages that failed to process in all documents. Documents without
      * clear page definition (such as XLSX) are not counted.
      * 
* * int64 failed_pages = 3; + * * @return This builder for chaining. */ public Builder clearFailedPages() { @@ -968,14 +1047,17 @@ public Builder clearFailedPages() { return this; } - private long totalBillablePages_ ; + private long totalBillablePages_; /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ @java.lang.Override @@ -983,12 +1065,15 @@ public long getTotalBillablePages() { return totalBillablePages_; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @param value The totalBillablePages to set. * @return This builder for chaining. */ @@ -1000,12 +1085,15 @@ public Builder setTotalBillablePages(long value) { return this; } /** + * + * *
      * Number of billable pages in documents with clear page definition (such as
      * PDF, DOCX, PPTX)
      * 
* * int64 total_billable_pages = 4; + * * @return This builder for chaining. */ public Builder clearTotalBillablePages() { @@ -1015,13 +1103,16 @@ public Builder clearTotalBillablePages() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -1029,11 +1120,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -1045,11 +1139,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1059,14 +1156,17 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -1074,12 +1174,15 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -1091,12 +1194,15 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -1106,14 +1212,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ @java.lang.Override @@ -1121,12 +1230,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -1138,12 +1250,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints) in
      * all documents.
      * 
* * int64 failed_characters = 7; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -1153,14 +1268,17 @@ public Builder clearFailedCharacters() { return this; } - private long totalBillableCharacters_ ; + private long totalBillableCharacters_; /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ @java.lang.Override @@ -1168,12 +1286,15 @@ public long getTotalBillableCharacters() { return totalBillableCharacters_; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @param value The totalBillableCharacters to set. * @return This builder for chaining. */ @@ -1185,12 +1306,15 @@ public Builder setTotalBillableCharacters(long value) { return this; } /** + * + * *
      * Number of billable characters (Unicode codepoints) in documents without
      * clear page definition, such as XLSX.
      * 
* * int64 total_billable_characters = 8; + * * @return This builder for chaining. */ public Builder clearTotalBillableCharacters() { @@ -1202,34 +1326,47 @@ public Builder clearTotalBillableCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1250,14 +1387,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 9; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1268,6 +1406,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1276,9 +1416,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1291,6 +1431,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1308,6 +1450,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1320,6 +1464,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1330,11 +1476,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1342,14 +1491,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -1357,8 +1509,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1366,12 +1523,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1379,6 +1539,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1389,6 +1550,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1411,6 +1574,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1419,8 +1584,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 10;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1431,6 +1595,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1441,9 +1607,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1456,6 +1622,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1475,6 +1643,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1489,6 +1659,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1501,11 +1673,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1515,21 +1688,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1539,41 +1715,43 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse();
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstance() {
+  public static com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateDocumentResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateDocumentResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1585,9 +1763,8 @@ public com.google.protobuf.Parser getParserForTy
   }
 
   @java.lang.Override
-  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse getDefaultInstanceForType() {
+  public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
index 48ae35448d03..4806876f2ba6 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,118 +1,166 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateDocumentResponseOrBuilder extends
+public interface BatchTranslateDocumentResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateDocumentResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of pages to translate in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 total_pages = 1; + * * @return The totalPages. */ long getTotalPages(); /** + * + * *
    * Number of successfully translated pages in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 translated_pages = 2; + * * @return The translatedPages. */ long getTranslatedPages(); /** + * + * *
    * Number of pages that failed to process in all documents. Documents without
    * clear page definition (such as XLSX) are not counted.
    * 
* * int64 failed_pages = 3; + * * @return The failedPages. */ long getFailedPages(); /** + * + * *
    * Number of billable pages in documents with clear page definition (such as
    * PDF, DOCX, PPTX)
    * 
* * int64 total_billable_pages = 4; + * * @return The totalBillablePages. */ long getTotalBillablePages(); /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints) in
    * all documents.
    * 
* * int64 failed_characters = 7; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Number of billable characters (Unicode codepoints) in documents without
    * clear page definition, such as XLSX.
    * 
* * int64 total_billable_characters = 8; + * * @return The totalBillableCharacters. */ long getTotalBillableCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 9; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -122,6 +170,8 @@ public interface BatchTranslateDocumentResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -129,10 +179,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,10 +193,13 @@ public interface BatchTranslateDocumentResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
index 66d3a6f7dc36..5288b093f430 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
@@ -1,58 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * State metadata for the batch translation operation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ -public final class BatchTranslateMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) BatchTranslateMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateMetadata.newBuilder() to construct. private BatchTranslateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.BatchTranslateMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -61,6 +83,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -69,6 +93,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -78,6 +104,8 @@ public enum State
      */
     SUCCEEDED(2),
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -86,6 +114,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -95,6 +125,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -108,6 +140,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -133,6 +171,8 @@ public enum State
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -141,6 +181,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -150,6 +192,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -160,7 +204,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -185,52 +228,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return RUNNING;
-        case 2: return SUCCEEDED;
-        case 3: return FAILED;
-        case 4: return CANCELLING;
-        case 5: return CANCELLED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return RUNNING;
+        case 2:
+          return SUCCEEDED;
+        case 3:
+          return FAILED;
+        case 4:
+          return CANCELLING;
+        case 5:
+          return CANCELLED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -250,37 +298,51 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -291,12 +353,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -307,6 +372,8 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_ = 0L; /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -314,6 +381,7 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -324,11 +392,14 @@ public long getTotalCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -336,11 +407,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ @java.lang.Override @@ -348,6 +422,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -360,6 +436,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,9 +448,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (translatedCharacters_ != 0L) { @@ -397,25 +475,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (translatedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, translatedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_); } if (failedCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, failedCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_); } if (totalCharacters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, totalCharacters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalCharacters_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -425,24 +500,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata other = + (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) obj; if (state_ != other.state_) return false; - if (getTranslatedCharacters() - != other.getTranslatedCharacters()) return false; - if (getFailedCharacters() - != other.getFailedCharacters()) return false; - if (getTotalCharacters() - != other.getTotalCharacters()) return false; + if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false; + if (getFailedCharacters() != other.getFailedCharacters()) return false; + if (getTotalCharacters() != other.getTotalCharacters()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -458,14 +530,11 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTranslatedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters()); hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFailedCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters()); hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCharacters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters()); if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); @@ -476,131 +545,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.BatchTranslateMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State metadata for the batch translation operation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.cloud.translate.v3beta1.BatchTranslateMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.class, + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +692,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; } @java.lang.Override @@ -639,8 +713,11 @@ public com.google.cloud.translate.v3beta1.BatchTranslateMetadata build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = + new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -660,9 +737,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta result.totalCharacters_ = totalCharacters_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } } @@ -670,38 +745,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateMeta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateMetadata) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateMetadata) other); } else { super.mergeFrom(other); return this; @@ -709,7 +785,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateMetadata other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.BatchTranslateMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -751,39 +828,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - translatedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - failedCharacters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - totalCharacters_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + translatedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedCharacters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + totalCharacters_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -793,26 +874,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -823,24 +912,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = + com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -854,11 +952,14 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateMetadat return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -868,13 +969,16 @@ public Builder clearState() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -882,11 +986,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -898,11 +1005,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -912,14 +1022,17 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -927,12 +1040,15 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -944,12 +1060,15 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process so far (Unicode
      * codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -959,8 +1078,10 @@ public Builder clearFailedCharacters() { return this; } - private long totalCharacters_ ; + private long totalCharacters_; /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -968,6 +1089,7 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -975,6 +1097,8 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -982,6 +1106,7 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -993,6 +1118,8 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1000,6 +1127,7 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -1011,34 +1139,47 @@ public Builder clearTotalCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1059,14 +1200,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 5; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -1077,6 +1219,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1085,9 +1229,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1100,6 +1244,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1117,6 +1263,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1129,6 +1277,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1139,11 +1289,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1151,21 +1304,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1175,12 +1331,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateMetadata) private static final com.google.cloud.translate.v3beta1.BatchTranslateMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(); } @@ -1189,27 +1345,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchTranslateMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchTranslateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1224,6 +1380,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java index 24288b893c13..2911ae114fc0 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface BatchTranslateMetadataOrBuilder extends +public interface BatchTranslateMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the operation.
    * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return The state. */ com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState(); /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process so far (Unicode
    * codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -55,29 +85,38 @@ public interface BatchTranslateMetadataOrBuilder extends
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 5; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java index eb2e9d32ebce..f779d3c1d97e 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -13,46 +30,50 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
  */
-public final class BatchTranslateResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchTranslateResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
     BatchTranslateResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchTranslateResponse.newBuilder() to construct.
   private BatchTranslateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchTranslateResponse() {
-  }
+
+  private BatchTranslateResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchTranslateResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
+            com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
   }
 
   public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 1;
   private long totalCharacters_ = 0L;
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -63,11 +84,14 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_ = 0L; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -78,11 +102,14 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_ = 0L; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -93,11 +120,14 @@ public long getFailedCharacters() { public static final int SUBMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -105,11 +135,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ @java.lang.Override @@ -117,6 +150,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -131,6 +166,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -138,6 +175,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -145,6 +183,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -152,6 +192,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -159,6 +200,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -173,6 +216,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,8 +228,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalCharacters_ != 0L) {
       output.writeInt64(1, totalCharacters_);
     }
@@ -211,24 +254,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(1, totalCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalCharacters_);
     }
     if (translatedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, translatedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, translatedCharacters_);
     }
     if (failedCharacters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, failedCharacters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCharacters_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -238,28 +276,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateResponse other = (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
+    com.google.cloud.translate.v3beta1.BatchTranslateResponse other =
+        (com.google.cloud.translate.v3beta1.BatchTranslateResponse) obj;
 
-    if (getTotalCharacters()
-        != other.getTotalCharacters()) return false;
-    if (getTranslatedCharacters()
-        != other.getTranslatedCharacters()) return false;
-    if (getFailedCharacters()
-        != other.getFailedCharacters()) return false;
+    if (getTotalCharacters() != other.getTotalCharacters()) return false;
+    if (getTranslatedCharacters() != other.getTranslatedCharacters()) return false;
+    if (getFailedCharacters() != other.getFailedCharacters()) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -273,14 +307,11 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTotalCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCharacters());
     hash = (37 * hash) + TRANSLATED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getTranslatedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTranslatedCharacters());
     hash = (37 * hash) + FAILED_CHARACTERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFailedCharacters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCharacters());
     if (hasSubmitTime()) {
       hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getSubmitTime().hashCode();
@@ -295,98 +326,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -396,33 +433,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateResponse)
       com.google.cloud.translate.v3beta1.BatchTranslateResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class, com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.BatchTranslateResponse.class,
+              com.google.cloud.translate.v3beta1.BatchTranslateResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.BatchTranslateResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +480,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor;
     }
 
     @java.lang.Override
@@ -465,8 +501,11 @@ public com.google.cloud.translate.v3beta1.BatchTranslateResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.BatchTranslateResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.BatchTranslateResponse result = new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse result =
+          new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -483,14 +522,10 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
         result.failedCharacters_ = failedCharacters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -498,38 +533,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateResp
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +573,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.BatchTranslateResponse.getDefaultInstance())
+        return this;
       if (other.getTotalCharacters() != 0L) {
         setTotalCharacters(other.getTotalCharacters());
       }
@@ -579,41 +616,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              totalCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              translatedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              failedCharacters_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                totalCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                translatedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                failedCharacters_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -623,15 +662,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long totalCharacters_ ;
+    private long totalCharacters_;
     /**
+     *
+     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -639,11 +682,14 @@ public long getTotalCharacters() { return totalCharacters_; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ @@ -655,11 +701,14 @@ public Builder setTotalCharacters(long value) { return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { @@ -669,13 +718,16 @@ public Builder clearTotalCharacters() { return this; } - private long translatedCharacters_ ; + private long translatedCharacters_; /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -683,11 +735,14 @@ public long getTranslatedCharacters() { return translatedCharacters_; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @param value The translatedCharacters to set. * @return This builder for chaining. */ @@ -699,11 +754,14 @@ public Builder setTranslatedCharacters(long value) { return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { @@ -713,13 +771,16 @@ public Builder clearTranslatedCharacters() { return this; } - private long failedCharacters_ ; + private long failedCharacters_; /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -727,11 +788,14 @@ public long getFailedCharacters() { return failedCharacters_; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @param value The failedCharacters to set. * @return This builder for chaining. */ @@ -743,11 +807,14 @@ public Builder setFailedCharacters(long value) { return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { @@ -759,34 +826,47 @@ public Builder clearFailedCharacters() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -807,14 +887,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
* * .google.protobuf.Timestamp submit_time = 4; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -825,6 +906,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -833,9 +916,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -848,6 +931,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -865,6 +950,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -877,6 +964,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -887,11 +976,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -899,14 +991,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -914,8 +1009,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -923,12 +1023,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -936,6 +1039,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -946,6 +1050,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -968,6 +1074,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -976,8 +1084,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -988,6 +1095,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -998,9 +1107,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1013,6 +1122,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1032,6 +1143,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1046,6 +1159,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1058,11 +1173,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1072,21 +1188,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1096,12 +1215,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateResponse)
   private static final com.google.cloud.translate.v3beta1.BatchTranslateResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateResponse();
   }
@@ -1110,27 +1229,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1145,6 +1264,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
index 3c63f05430e4..33739b257319 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
@@ -1,61 +1,94 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateResponseOrBuilder extends
+public interface BatchTranslateResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ long getTotalCharacters(); /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ long getTranslatedCharacters(); /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ long getFailedCharacters(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
* * .google.protobuf.Timestamp submit_time = 4; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -65,6 +98,8 @@ public interface BatchTranslateResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -72,10 +107,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -83,10 +121,13 @@ public interface BatchTranslateResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
similarity index 65%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
index c952917b2f13..8cedb8afe7cd 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
@@ -1,48 +1,63 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The batch translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ -public final class BatchTranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchTranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) BatchTranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchTranslateTextRequest.newBuilder() to construct. private BatchTranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchTranslateTextRequest() { parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -51,22 +66,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -79,7 +99,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -88,14 +111,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -108,17 +132,18 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -127,14 +152,18 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -143,29 +172,29 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -174,38 +203,50 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { return targetLanguageCodes_; } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -213,46 +254,51 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } public static final int MODELS_FIELD_NUMBER = 4; + private static final class ModelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -274,20 +320,21 @@ public int getModelsCount() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsModels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetModels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getModels() {
     return getModelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -313,6 +360,8 @@ public java.util.Map getModelsMap() {
     return internalGetModels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -334,17 +383,19 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getModelsOrDefault(
+  public /* nullable */ java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -366,11 +417,11 @@ java.lang.String getModelsOrDefault(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getModelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -378,9 +429,12 @@ public java.lang.String getModelsOrThrow(
   }
 
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private java.util.List inputConfigs_;
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -388,13 +442,17 @@ public java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getInputConfigsList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -402,14 +460,18 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getInputConfigsOrBuilderList() { return inputConfigs_; } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -417,13 +479,17 @@ public java.util.List getInputCo
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getInputConfigsCount() { return inputConfigs_.size(); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -431,13 +497,17 @@ public int getInputConfigsCount() {
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { return inputConfigs_.get(index); } /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -445,7 +515,9 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( @@ -456,13 +528,18 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -470,126 +547,171 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } public static final int GLOSSARIES_FIELD_NUMBER = 7; + private static final class GlossariesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> defaultEntry = + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField - internalGetGlossaries() { + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + internalGetGlossaries() { if (glossaries_ == null) { - return com.google.protobuf.MapField.emptyMapField( - GlossariesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(GlossariesDefaultEntryHolder.defaultEntry); } return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -597,32 +719,34 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -637,20 +761,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -669,6 +794,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -683,17 +810,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -708,11 +837,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -720,6 +849,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -731,8 +861,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -742,30 +871,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < targetLanguageCodes_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCodes_.getRaw(i));
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetModels(),
-        ModelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 4);
     for (int i = 0; i < inputConfigs_.size(); i++) {
       output.writeMessage(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
       output.writeMessage(6, getOutputConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetGlossaries(),
-        GlossariesDefaultEntryHolder.defaultEntry,
-        7);
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        9);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetGlossaries(), GlossariesDefaultEntryHolder.defaultEntry, 7);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
     getUnknownFields().writeTo(output);
   }
 
@@ -789,43 +906,44 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getTargetLanguageCodesList().size();
     }
-    for (java.util.Map.Entry entry
-         : internalGetModels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      models__ = ModelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, models__);
+    for (java.util.Map.Entry entry :
+        internalGetModels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry models__ =
+          ModelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, models__);
     }
     for (int i = 0; i < inputConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, inputConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i));
     }
     if (outputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getOutputConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetGlossaries().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      glossaries__ = GlossariesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(7, glossaries__);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(9, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig());
+    }
+    for (java.util.Map.Entry<
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        entry : internalGetGlossaries().getMap().entrySet()) {
+      com.google.protobuf.MapEntry<
+              java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+          glossaries__ =
+              GlossariesDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, glossaries__);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -835,32 +953,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other = (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
-
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCodesList()
-        .equals(other.getTargetLanguageCodesList())) return false;
-    if (!internalGetModels().equals(
-        other.internalGetModels())) return false;
-    if (!getInputConfigsList()
-        .equals(other.getInputConfigsList())) return false;
+    com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other =
+        (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) obj;
+
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCodesList().equals(other.getTargetLanguageCodesList())) return false;
+    if (!internalGetModels().equals(other.internalGetModels())) return false;
+    if (!getInputConfigsList().equals(other.getInputConfigsList())) return false;
     if (hasOutputConfig() != other.hasOutputConfig()) return false;
     if (hasOutputConfig()) {
-      if (!getOutputConfig()
-          .equals(other.getOutputConfig())) return false;
+      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
     }
-    if (!internalGetGlossaries().equals(
-        other.internalGetGlossaries())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetGlossaries().equals(other.internalGetGlossaries())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -906,116 +1017,121 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.BatchTranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The batch translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.BatchTranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.BatchTranslateTextRequest) com.google.cloud.translate.v3beta1.BatchTranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetModels(); @@ -1024,13 +1140,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableModels(); @@ -1039,36 +1154,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 9: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; sourceLanguageCode_ = ""; - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableModels().clear(); if (inputConfigsBuilder_ == null) { inputConfigs_ = java.util.Collections.emptyList(); @@ -1088,13 +1201,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance(); } @@ -1109,14 +1223,18 @@ public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result = + new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { if (inputConfigsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); @@ -1128,7 +1246,8 @@ private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.Batch } } - private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -1145,9 +1264,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateText result.models_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.glossaries_ = internalGetGlossaries(); @@ -1163,38 +1281,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.BatchTranslateText public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1202,7 +1321,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest other) { - if (other == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1223,8 +1344,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe } onChanged(); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); bitField0_ |= 0x00000008; if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { @@ -1244,9 +1364,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000010); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1255,11 +1376,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); bitField0_ |= 0x00000040; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1287,75 +1406,90 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetLanguageCodesIsMutable(); - targetLanguageCodes_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableModels().getMutableMap().put( - models__.getKey(), models__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.cloud.translate.v3beta1.InputConfig m = - input.readMessage( - com.google.cloud.translate.v3beta1.InputConfig.parser(), - extensionRegistry); - if (inputConfigsBuilder_ == null) { - ensureInputConfigsIsMutable(); - inputConfigs_.add(m); - } else { - inputConfigsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGlossaries().getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetLanguageCodesIsMutable(); + targetLanguageCodes_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.translate.v3beta1.InputConfig m = + input.readMessage( + com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry); + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(m); + } else { + inputConfigsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlossaries() + .getMutableMap() + .put(glossaries__.getKey(), glossaries__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1365,10 +1499,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1381,14 +1518,16 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1397,6 +1536,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1409,16 +1550,17 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1426,6 +1568,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1438,19 +1582,25 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1463,7 +1613,10 @@ public Builder setParent(
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1473,6 +1626,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      *
@@ -1485,13 +1640,17 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1501,18 +1660,20 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1521,20 +1682,21 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1542,28 +1704,35 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1573,17 +1742,21 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Required. Source language code.
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1593,6 +1766,7 @@ public Builder setSourceLanguageCodeBytes( private com.google.protobuf.LazyStringArrayList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetLanguageCodesIsMutable() { if (!targetLanguageCodes_.isModifiable()) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); @@ -1600,35 +1774,46 @@ private void ensureTargetLanguageCodesIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getTargetLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList() { targetLanguageCodes_.makeImmutable(); return targetLanguageCodes_; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ public int getTargetLanguageCodesCount() { return targetLanguageCodes_.size(); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ @@ -1636,31 +1821,39 @@ public java.lang.String getTargetLanguageCodes(int index) { return targetLanguageCodes_.get(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) { return targetLanguageCodes_.getByteString(index); } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The targetLanguageCodes to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); bitField0_ |= 0x00000004; @@ -1668,17 +1861,22 @@ public Builder setTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); bitField0_ |= 0x00000004; @@ -1686,50 +1884,61 @@ public Builder addTargetLanguageCodes( return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllTargetLanguageCodes( - java.lang.Iterable values) { + public Builder addAllTargetLanguageCodes(java.lang.Iterable values) { ensureTargetLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetLanguageCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetLanguageCodes() { - targetLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Required. Specify up to 10 language codes here.
      * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); @@ -1738,21 +1947,19 @@ public Builder addTargetLanguageCodesBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> models_; - private com.google.protobuf.MapField - internalGetModels() { + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { if (models_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ModelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); } return models_; } + private com.google.protobuf.MapField internalGetMutableModels() { if (models_ == null) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); } if (!models_.isMutable()) { models_ = models_.copy(); @@ -1761,10 +1968,13 @@ public Builder addTargetLanguageCodesBytes( onChanged(); return models_; } + public int getModelsCount() { return internalGetModels().getMap().size(); } /** + * + * *
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1786,20 +1996,21 @@ public int getModelsCount() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetModels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getModelsMap()} instead.
-     */
+    /** Use {@link #getModelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getModels() {
       return getModelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1825,6 +2036,8 @@ public java.util.Map getModelsMap() {
       return internalGetModels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1846,17 +2059,19 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getModelsOrDefault(
+    public /* nullable */ java.lang.String getModelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1878,23 +2093,25 @@ java.lang.String getModelsOrDefault(
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getModelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearModels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableModels().getMutableMap()
-          .clear();
+      internalGetMutableModels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1915,23 +2132,22 @@ public Builder clearModels() {
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeModels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableModels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableModels() {
+    public java.util.Map getMutableModels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableModels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1952,17 +2168,20 @@ public Builder removeModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putModels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The models to use for translation. Map's key is target language
      * code. Map's value is model name. Value can be a built-in general model,
@@ -1983,27 +2202,32 @@ public Builder putModels(
      *
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllModels(
-        java.util.Map values) {
-      internalGetMutableModels().getMutableMap()
-          .putAll(values);
+    public Builder putAllModels(java.util.Map values) {
+      internalGetMutableModels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.util.List inputConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000010) != 0)) {
-        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ =
+            new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000010;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> inputConfigsBuilder_;
+            com.google.cloud.translate.v3beta1.InputConfig,
+            com.google.cloud.translate.v3beta1.InputConfig.Builder,
+            com.google.cloud.translate.v3beta1.InputConfigOrBuilder>
+        inputConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2011,7 +2235,9 @@ private void ensureInputConfigsIsMutable() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getInputConfigsList() { if (inputConfigsBuilder_ == null) { @@ -2021,6 +2247,8 @@ public java.util.List getInputCo } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2028,7 +2256,9 @@ public java.util.List getInputCo
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getInputConfigsCount() { if (inputConfigsBuilder_ == null) { @@ -2038,6 +2268,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2045,7 +2277,9 @@ public int getInputConfigsCount() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2055,6 +2289,8 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2062,7 +2298,9 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index)
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2079,6 +2317,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2086,7 +2326,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2100,6 +2342,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2107,7 +2351,9 @@ public Builder setInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig value) { if (inputConfigsBuilder_ == null) { @@ -2123,6 +2369,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2130,7 +2378,9 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.InputConfig va
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig value) { @@ -2147,6 +2397,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2154,7 +2406,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2168,6 +2422,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2175,7 +2431,9 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addInputConfigs( int index, com.google.cloud.translate.v3beta1.InputConfig.Builder builderForValue) { @@ -2189,6 +2447,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2196,14 +2456,15 @@ public Builder addInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllInputConfigs( java.lang.Iterable values) { if (inputConfigsBuilder_ == null) { ensureInputConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); onChanged(); } else { inputConfigsBuilder_.addAllMessages(values); @@ -2211,6 +2472,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2218,7 +2481,9 @@ public Builder addAllInputConfigs(
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfigs() { if (inputConfigsBuilder_ == null) { @@ -2231,6 +2496,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2238,7 +2505,9 @@ public Builder clearInputConfigs() {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeInputConfigs(int index) { if (inputConfigsBuilder_ == null) { @@ -2251,6 +2520,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2258,13 +2529,17 @@ public Builder removeInputConfigs(int index) {
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBuilder( int index) { return getInputConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2272,16 +2547,21 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder getInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( int index) { if (inputConfigsBuilder_ == null) { - return inputConfigs_.get(index); } else { + return inputConfigs_.get(index); + } else { return inputConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2289,10 +2569,12 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsOrBuilderList() { + public java.util.List + getInputConfigsOrBuilderList() { if (inputConfigsBuilder_ != null) { return inputConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2300,6 +2582,8 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2307,13 +2591,17 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder() { - return getInputConfigsFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2321,14 +2609,18 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBuilder( int index) { - return getInputConfigsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); + return getInputConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3beta1.InputConfig.getDefaultInstance()); } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2336,22 +2628,27 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui
      * The files must use UTF-8 encoding.
      * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getInputConfigsBuilderList() { + public java.util.List + getInputConfigsBuilderList() { return getInputConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder> + com.google.cloud.translate.v3beta1.InputConfig, + com.google.cloud.translate.v3beta1.InputConfig.Builder, + com.google.cloud.translate.v3beta1.InputConfigOrBuilder> getInputConfigsFieldBuilder() { if (inputConfigsBuilder_ == null) { - inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.InputConfig, com.google.cloud.translate.v3beta1.InputConfig.Builder, com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( - inputConfigs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.InputConfig, + com.google.cloud.translate.v3beta1.InputConfig.Builder, + com.google.cloud.translate.v3beta1.InputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2359,45 +2656,64 @@ public com.google.cloud.translate.v3beta1.InputConfig.Builder addInputConfigsBui private com.google.cloud.translate.v3beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.translate.v3beta1.OutputConfig, + com.google.cloud.translate.v3beta1.OutputConfig.Builder, + com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2413,13 +2729,17 @@ public Builder setOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig v return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.translate.v3beta1.OutputConfig.Builder builderForValue) { @@ -2433,19 +2753,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -2458,13 +2783,17 @@ public Builder mergeOutputConfig(com.google.cloud.translate.v3beta1.OutputConfig return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2477,13 +2806,17 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000020; @@ -2491,48 +2824,63 @@ public com.google.cloud.translate.v3beta1.OutputConfig.Builder getOutputConfigBu return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Output configuration.
      * If 2 input configs match to the same file (that is, same input path),
      * we don't generate output for duplicate inputs.
      * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.OutputConfig, + com.google.cloud.translate.v3beta1.OutputConfig.Builder, + com.google.cloud.translate.v3beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.OutputConfig, com.google.cloud.translate.v3beta1.OutputConfig.Builder, com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.OutputConfig, + com.google.cloud.translate.v3beta1.OutputConfig.Builder, + com.google.cloud.translate.v3beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> glossaries_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> internalGetGlossaries() { if (glossaries_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2540,11 +2888,13 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO } return glossaries_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> internalGetMutableGlossaries() { if (glossaries_ == null) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); + glossaries_ = + com.google.protobuf.MapField.newMapField(GlossariesDefaultEntryHolder.defaultEntry); } if (!glossaries_.isMutable()) { glossaries_ = glossaries_.copy(); @@ -2553,160 +2903,199 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO onChanged(); return glossaries_; } + public int getGlossariesCount() { return internalGetGlossaries().getMap().size(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGlossaries().getMap().containsKey(key); } - /** - * Use {@link #getGlossariesMap()} instead. - */ + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossaries() { return getGlossariesMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getGlossariesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getGlossariesMap() { return internalGetGlossaries().getMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + public /* nullable */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getGlossariesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearGlossaries() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableGlossaries().getMutableMap() - .clear(); + internalGetMutableGlossaries().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeGlossaries( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> getMutableGlossaries() { bitField0_ |= 0x00000040; return internalGetMutableGlossaries().getMutableMap(); } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlossaries( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * Optional. Glossaries to be applied for translation.
      * It's keyed by target language code.
      * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlossaries( - java.util.Map values) { - internalGetMutableGlossaries().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + values) { + internalGetMutableGlossaries().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2715,10 +3104,13 @@ public Builder putAllGlossaries( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2733,20 +3125,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2765,6 +3158,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2779,17 +3174,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2804,23 +3201,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2834,23 +3233,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2864,17 +3262,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2888,16 +3289,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2907,12 +3306,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
-  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.translate.v3beta1.BatchTranslateTextRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.BatchTranslateTextRequest();
   }
@@ -2921,27 +3321,27 @@ public static com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchTranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchTranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2956,6 +3356,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
index 4a36ace0b91d..910797b64825 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface BatchTranslateTextRequestOrBuilder extends
+public interface BatchTranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.BatchTranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -20,11 +38,16 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    *
@@ -37,74 +60,97 @@ public interface BatchTranslateTextRequestOrBuilder extends
    * error is returned.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Required. Source language code.
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the targetLanguageCodes. */ - java.util.List - getTargetLanguageCodesList(); + java.util.List getTargetLanguageCodesList(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of targetLanguageCodes. */ int getTargetLanguageCodesCount(); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The targetLanguageCodes at the given index. */ java.lang.String getTargetLanguageCodes(int index); /** + * + * *
    * Required. Specify up to 10 language codes here.
    * 
* - * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the targetLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getTargetLanguageCodesBytes(int index); + com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index); /** + * + * *
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -127,6 +173,8 @@ public interface BatchTranslateTextRequestOrBuilder extends
    */
   int getModelsCount();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -147,15 +195,13 @@ public interface BatchTranslateTextRequestOrBuilder extends
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsModels(
-      java.lang.String key);
-  /**
-   * Use {@link #getModelsMap()} instead.
-   */
+  boolean containsModels(java.lang.String key);
+  /** Use {@link #getModelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getModels();
+  java.util.Map getModels();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -176,9 +222,10 @@ boolean containsModels(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getModelsMap();
+  java.util.Map getModelsMap();
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -200,11 +247,13 @@ boolean containsModels(
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getModelsOrDefault(
+  java.lang.String getModelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The models to use for translation. Map's key is target language
    * code. Map's value is model name. Value can be a built-in general model,
@@ -225,10 +274,11 @@ java.lang.String getModelsOrDefault(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getModelsOrThrow(
-      java.lang.String key);
+  java.lang.String getModelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -236,11 +286,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getInputConfigsList(); + java.util.List getInputConfigsList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -248,10 +301,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -259,10 +316,14 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ int getInputConfigsCount(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -270,11 +331,15 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getInputConfigsOrBuilderList(); /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -282,104 +347,138 @@ java.lang.String getModelsOrThrow(
    * The files must use UTF-8 encoding.
    * 
* - * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder( - int index); + com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.translate.v3beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. Output configuration.
    * If 2 input configs match to the same file (that is, same input path),
    * we don't generate output for duplicate inputs.
    * 
* - * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlossariesCount(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsGlossaries( - java.lang.String key); - /** - * Use {@link #getGlossariesMap()} instead. + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsGlossaries(java.lang.String key); + /** Use {@link #getGlossariesMap()} instead. */ @java.lang.Deprecated java.util.Map - getGlossaries(); + getGlossaries(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getGlossariesMap(); + getGlossariesMap(); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue); /** + * + * *
    * Optional. Glossaries to be applied for translation.
    * It's keyed by target language code.
    * 
* - * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrThrow( java.lang.String key); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -395,6 +494,8 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -408,15 +509,13 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -430,9 +529,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -447,11 +547,13 @@ boolean containsLabels(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -465,6 +567,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
similarity index 70%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
index 3127085cac39..f7237dc2e115 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
  */
-public final class CreateGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
     CreateGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateGlossaryMetadata.newBuilder() to construct.
   private CreateGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
+            com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully created.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to create the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully created.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to create the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other = + (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,104 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +624,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryMetadata)
       com.google.cloud.translate.v3beta1.CreateGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class, com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.class,
+              com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +665,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +686,11 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result =
+          new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +704,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +712,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +752,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +791,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +825,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +852,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +874,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +912,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +936,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +969,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1009,14 @@ public Builder setState(com.google.cloud.translate.v3beta1.CreateGlossaryMetadat return this; } /** + * + * *
      * The current state of the glossary creation operation.
      * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1028,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1089,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1108,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1118,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1133,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1152,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1166,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1178,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1193,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.CreateGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(); } @@ -1090,27 +1234,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1269,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java index e5de66c9d72a..9408918bc8e2 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface CreateGlossaryMetadataOrBuilder extends +public interface CreateGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary creation operation.
    * 
* * .google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java similarity index 60% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java index 97c241454aee..a345727ae32f 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Request message for CreateGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ -public final class CreateGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) CreateGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateGlossaryRequest.newBuilder() to construct. private CreateGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateGlossaryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -93,11 +120,16 @@ public java.lang.String getParent() { public static final int GLOSSARY_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.Glossary glossary_; /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ @java.lang.Override @@ -105,30 +137,44 @@ public boolean hasGlossary() { return glossary_ != null; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary getGlossary() { - return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } /** + * + * *
    * Required. The glossary to create.
    * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { - return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -161,8 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (glossary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGlossary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,19 +216,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.CreateGlossaryRequest other = + (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasGlossary() != other.hasGlossary()) return false; if (hasGlossary()) { - if (!getGlossary() - .equals(other.getGlossary())) return false; + if (!getGlossary().equals(other.getGlossary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,131 +252,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for CreateGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.CreateGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.CreateGlossaryRequest) com.google.cloud.translate.v3beta1.CreateGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, + com.google.cloud.translate.v3beta1.CreateGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.CreateGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -348,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; } @java.lang.Override @@ -369,8 +417,11 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.CreateGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = + new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,9 +432,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossary_ = glossaryBuilder_ == null - ? glossary_ - : glossaryBuilder_.build(); + result.glossary_ = glossaryBuilder_ == null ? glossary_ : glossaryBuilder_.build(); } } @@ -391,38 +440,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.CreateGlossaryRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.CreateGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -430,7 +480,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.CreateGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -465,24 +516,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGlossaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,22 +544,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -516,20 +573,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -537,28 +597,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -568,17 +639,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -588,39 +665,58 @@ public Builder setParentBytes( private com.google.cloud.translate.v3beta1.Glossary glossary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossaryBuilder_; + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + glossaryBuilder_; /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the glossary field is set. */ public boolean hasGlossary() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The glossary. */ public com.google.cloud.translate.v3beta1.Glossary getGlossary() { if (glossaryBuilder_ == null) { - return glossary_ == null ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } else { return glossaryBuilder_.getMessage(); } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { @@ -636,11 +732,15 @@ public Builder setGlossary(com.google.cloud.translate.v3beta1.Glossary value) { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGlossary( com.google.cloud.translate.v3beta1.Glossary.Builder builderForValue) { @@ -654,17 +754,21 @@ public Builder setGlossary( return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) { if (glossaryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossary_ != null && - glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossary_ != null + && glossary_ != com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()) { getGlossaryBuilder().mergeFrom(value); } else { glossary_ = value; @@ -677,11 +781,15 @@ public Builder mergeGlossary(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGlossary() { bitField0_ = (bitField0_ & ~0x00000002); @@ -694,11 +802,15 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() { bitField0_ |= 0x00000002; @@ -706,43 +818,55 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossaryBuilder() return getGlossaryFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder() { if (glossaryBuilder_ != null) { return glossaryBuilder_.getMessageOrBuilder(); } else { - return glossary_ == null ? - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() : glossary_; + return glossary_ == null + ? com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance() + : glossary_; } } /** + * + * *
      * Required. The glossary to create.
      * 
* - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossaryFieldBuilder() { if (glossaryBuilder_ == null) { - glossaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - getGlossary(), - getParentForChildren(), - isClean()); + glossaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + getGlossary(), getParentForChildren(), isClean()); glossary_ = null; } return glossaryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -752,12 +876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.CreateGlossaryRequest) private static final com.google.cloud.translate.v3beta1.CreateGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(); } @@ -766,27 +890,27 @@ public static com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..b9810ef60902 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface CreateGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the glossary field is set. + */ + boolean hasGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The glossary. + */ + com.google.cloud.translate.v3beta1.Glossary getGlossary(); + /** + * + * + *
+   * Required. The glossary to create.
+   * 
+ * + * + * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java index 94664c7475ac..bb6208859ee1 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
  */
-public final class DeleteGlossaryMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
     DeleteGlossaryMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryMetadata.newBuilder() to construct.
   private DeleteGlossaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryMetadata() {
     name_ = "";
     state_ = 0;
@@ -28,34 +46,38 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
+            com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the possible states that the creation request can be in.
    * 
* * Protobuf enum {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid.
      * 
@@ -64,6 +86,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -72,6 +96,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -80,6 +106,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -88,6 +116,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -97,6 +127,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -108,6 +140,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -116,6 +150,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -124,6 +160,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -132,6 +170,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -140,6 +180,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -149,6 +191,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -157,7 +201,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,52 +225,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLING; - case 5: return CANCELLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLING; + case 5: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -245,14 +293,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -261,29 +313,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -294,37 +346,51 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } public static final int SUBMIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -332,11 +398,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ @java.lang.Override @@ -344,6 +413,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -356,6 +427,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,12 +439,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } if (submitTime_ != null) { @@ -390,13 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubmitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,20 +479,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other = + (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -446,98 +518,104 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Stored in the
    * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
@@ -546,33 +624,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryMetadata)
       com.google.cloud.translate.v3beta1.DeleteGlossaryMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class, com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.class,
+              com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -588,9 +665,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -609,8 +686,11 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result =
+          new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -624,9 +704,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
     }
 
@@ -634,38 +712,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryMeta
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +752,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -711,29 +791,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -743,22 +825,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,20 +852,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -788,28 +874,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -819,17 +912,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -839,22 +936,29 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -865,24 +969,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED : result; + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = + com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -896,11 +1009,14 @@ public Builder setState(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadat return this; } /** + * + * *
      * The current state of the glossary deletion operation.
      * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -912,34 +1028,47 @@ public Builder clearState() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -960,14 +1089,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 3; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -978,6 +1108,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -986,9 +1118,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -1001,6 +1133,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1018,6 +1152,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1030,6 +1166,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1040,11 +1178,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1052,21 +1193,24 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(); } @@ -1090,27 +1234,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,6 +1269,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java index c5b1c95fbbcd..3ff86a529e4c 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DeleteGlossaryMetadataOrBuilder extends +public interface DeleteGlossaryMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the glossary deletion operation.
    * 
* * .google.cloud.translation.v3beta1.DeleteGlossaryMetadata.State state = 2; + * * @return The state. */ com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 3; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java similarity index 63% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java index 62933e0cb9e8..b84dcc7a1214 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Request message for DeleteGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ -public final class DeleteGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) DeleteGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteGlossaryRequest.newBuilder() to construct. private DeleteGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other = + (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for DeleteGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryRequest) com.google.cloud.translate.v3beta1.DeleteGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +342,11 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = + new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +362,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +402,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +486,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +510,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +552,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryRequest) private static final com.google.cloud.translate.v3beta1.DeleteGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(); } @@ -537,27 +601,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..153d3300edb2 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface DeleteGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java similarity index 71% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java index 7ce6185f0757..aac9812103e2 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Stored in the
  * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -12,48 +29,54 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
  */
-public final class DeleteGlossaryResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteGlossaryResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     DeleteGlossaryResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteGlossaryResponse.newBuilder() to construct.
   private DeleteGlossaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteGlossaryResponse() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
+            com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getName() { public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -107,11 +133,14 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ @java.lang.Override @@ -119,6 +148,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -133,6 +164,8 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -140,6 +173,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -147,6 +181,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -154,6 +190,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -161,6 +198,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -175,6 +214,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -186,8 +226,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -210,12 +249,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (submitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSubmitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime());
     }
     if (endTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getEndTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -225,24 +262,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other = (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
+    com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other =
+        (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasSubmitTime() != other.hasSubmitTime()) return false;
     if (hasSubmitTime()) {
-      if (!getSubmitTime()
-          .equals(other.getSubmitTime())) return false;
+      if (!getSubmitTime().equals(other.getSubmitTime())) return false;
     }
     if (hasEndTime() != other.hasEndTime()) return false;
     if (hasEndTime()) {
-      if (!getEndTime()
-          .equals(other.getEndTime())) return false;
+      if (!getEndTime().equals(other.getEndTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -271,98 +306,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Stored in the
    * [google.longrunning.Operation.response][google.longrunning.Operation.response]
@@ -371,33 +412,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.DeleteGlossaryResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
       com.google.cloud.translate.v3beta1.DeleteGlossaryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class, com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.class,
+              com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +457,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +478,11 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result =
+          new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -450,14 +493,10 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.submitTime_ = submitTimeBuilder_ == null
-            ? submitTime_
-            : submitTimeBuilder_.build();
+        result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -465,38 +504,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DeleteGlossaryResp
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -504,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.DeleteGlossaryResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.DeleteGlossaryResponse.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -542,31 +583,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSubmitTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,22 +617,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -600,20 +644,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -621,28 +666,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -652,17 +704,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -672,34 +728,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -720,14 +789,15 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
* * .google.protobuf.Timestamp submit_time = 2; */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -738,6 +808,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -746,9 +818,9 @@ public Builder setSubmitTime( */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -761,6 +833,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -778,6 +852,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -790,6 +866,8 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -800,11 +878,14 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -812,14 +893,17 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -827,8 +911,13 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -836,12 +925,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -849,6 +941,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -859,6 +952,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -881,6 +976,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -889,8 +986,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -901,6 +997,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -911,9 +1009,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -926,6 +1024,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -945,6 +1045,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -959,6 +1061,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -971,11 +1075,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -985,21 +1090,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1009,12 +1117,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
   private static final com.google.cloud.translate.v3beta1.DeleteGlossaryResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse();
   }
@@ -1023,27 +1131,27 @@ public static com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DeleteGlossaryResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DeleteGlossaryResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1058,6 +1166,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
similarity index 74%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
index 3f333cae33e7..d3c3e76f020d 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
@@ -1,51 +1,80 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DeleteGlossaryResponseOrBuilder extends
+public interface DeleteGlossaryResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
* * .google.protobuf.Timestamp submit_time = 2; + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * The time when the operation was submitted to the server.
    * 
@@ -55,6 +84,8 @@ public interface DeleteGlossaryResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -62,10 +93,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -73,10 +107,13 @@ public interface DeleteGlossaryResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time when the glossary deletion is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
index 60e64a3a8567..48a14238139e 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The request message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ -public final class DetectLanguageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) DetectLanguageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageRequest.newBuilder() to construct. private DetectLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageRequest() { parent_ = ""; model_ = ""; @@ -27,45 +45,49 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -81,26 +103,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int PARENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -115,7 +142,10 @@ public int getNumber() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -124,14 +154,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -146,17 +177,18 @@ public java.lang.String getParent() {
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -165,9 +197,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -181,6 +216,7 @@ public java.lang.String getParent() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -189,14 +225,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -210,16 +247,15 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -229,22 +265,28 @@ public java.lang.String getModel() { public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { @@ -255,8 +297,7 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -265,23 +306,24 @@ public java.lang.String getContent() { } } /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -292,15 +334,19 @@ public java.lang.String getContent() { } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -309,30 +355,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -341,32 +387,34 @@ public java.lang.String getMimeType() { } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -381,20 +429,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -413,6 +462,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -427,17 +478,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -452,11 +505,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -464,6 +517,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -475,8 +529,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
     }
@@ -489,12 +542,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        6);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
     getUnknownFields().writeTo(output);
   }
 
@@ -516,15 +565,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -534,26 +583,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageRequest other = (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageRequest other =
+        (com.google.cloud.translate.v3beta1.DetectLanguageRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getContent()
-            .equals(other.getContent())) return false;
+        if (!getContent().equals(other.getContent())) return false;
         break;
       case 0:
       default:
@@ -593,153 +638,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.DetectLanguageRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageRequest) com.google.cloud.translate.v3beta1.DetectLanguageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, + com.google.cloud.translate.v3beta1.DetectLanguageRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -754,9 +802,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; } @java.lang.Override @@ -775,8 +823,11 @@ public com.google.cloud.translate.v3beta1.DetectLanguageRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageRequest buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageRequest result = new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DetectLanguageRequest result = + new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -799,7 +850,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageRequ } } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.DetectLanguageRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; } @@ -808,38 +860,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DetectLanguag public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageRequest) other); } else { super.mergeFrom(other); return this; @@ -847,7 +900,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRequest other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -863,19 +917,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageReques bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000010; switch (other.getSourceCase()) { - case CONTENT: { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -903,42 +958,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -948,12 +1011,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -967,6 +1030,8 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -981,14 +1046,16 @@ public Builder clearSource() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -997,6 +1064,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1011,16 +1080,17 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1028,6 +1098,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1042,19 +1114,25 @@ public java.lang.String getParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1069,7 +1147,10 @@ public Builder setParent(
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1079,6 +1160,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1093,13 +1176,17 @@ public Builder clearParent() {
      * Otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1109,6 +1196,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1122,13 +1211,13 @@ public Builder setParentBytes(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1137,6 +1226,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1150,15 +1241,14 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1166,6 +1256,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1179,18 +1271,22 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1204,6 +1300,7 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1213,6 +1310,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The language detection model to be used.
      *
@@ -1226,12 +1325,14 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -1240,11 +1341,14 @@ public Builder setModelBytes( } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -1252,11 +1356,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -1266,8 +1373,7 @@ public java.lang.String getContent() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 1) { source_ = s; @@ -1278,24 +1384,25 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 1) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCase_ == 1) { source_ = b; } @@ -1305,28 +1412,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1338,17 +1452,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; @@ -1358,19 +1476,21 @@ public Builder setContentBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1379,21 +1499,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1401,30 +1522,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1434,18 +1562,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      * "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000008; @@ -1453,21 +1585,19 @@ public Builder setMimeTypeBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1476,10 +1606,13 @@ public Builder setMimeTypeBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1494,20 +1627,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1526,6 +1660,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1540,17 +1676,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1565,23 +1703,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1595,23 +1735,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000010;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1625,17 +1764,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -1649,16 +1791,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1668,12 +1808,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageRequest)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageRequest();
   }
@@ -1682,27 +1822,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1717,6 +1857,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
similarity index 80%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
index 203bc5697745..775b7874f4f5 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageRequestOrBuilder extends
+public interface DetectLanguageRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -22,11 +40,16 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -41,13 +64,17 @@ public interface DetectLanguageRequestOrBuilder extends
    * Otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -61,10 +88,13 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The language detection model to be used.
    *
@@ -78,63 +108,78 @@ public interface DetectLanguageRequestOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The content of the input stored as a string.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    * "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -150,6 +195,8 @@ public interface DetectLanguageRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -163,15 +210,13 @@ public interface DetectLanguageRequestOrBuilder extends
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -185,9 +230,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -202,11 +248,13 @@ boolean containsLabels(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -220,8 +268,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   com.google.cloud.translate.v3beta1.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
similarity index 73%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
index a62e0d3ed065..564f1d3b3d84 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
@@ -1,52 +1,74 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ -public final class DetectLanguageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectLanguageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) DetectLanguageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectLanguageResponse.newBuilder() to construct. private DetectLanguageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectLanguageResponse() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -59,6 +81,8 @@ public java.util.List getLa
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -67,11 +91,13 @@ public java.util.List getLa
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -110,6 +140,7 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +152,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +166,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +176,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.DetectLanguageResponse other = (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
+    com.google.cloud.translate.v3beta1.DetectLanguageResponse other =
+        (com.google.cloud.translate.v3beta1.DetectLanguageResponse) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -177,131 +206,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.DetectLanguageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.DetectLanguageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectLanguageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectLanguageResponse) com.google.cloud.translate.v3beta1.DetectLanguageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); + com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, + com.google.cloud.translate.v3beta1.DetectLanguageResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectLanguageResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; } @java.lang.Override @@ -338,14 +372,18 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectLanguageResponse buildPartial() { - com.google.cloud.translate.v3beta1.DetectLanguageResponse result = new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); + com.google.cloud.translate.v3beta1.DetectLanguageResponse result = + new com.google.cloud.translate.v3beta1.DetectLanguageResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.DetectLanguageResponse result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +403,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectLanguageResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectLanguageResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectLanguageResponse) other); } else { super.mergeFrom(other); return this; @@ -404,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageResponse other) { - if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +463,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageRespon languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +498,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.DetectedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3beta1.DetectedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +528,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList( + languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3beta1.DetectedLanguage, + com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, + com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -515,6 +567,8 @@ public java.util.List getLa
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -530,6 +584,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -545,6 +601,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int inde
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -567,6 +625,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -586,6 +646,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -607,6 +669,8 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.DetectedLanguage
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -629,6 +693,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -648,6 +714,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -667,6 +735,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -678,8 +748,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +756,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -705,6 +776,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -723,6 +796,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -735,6 +810,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -745,11 +822,14 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder getLanguagesB
     public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -757,8 +837,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +846,8 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -774,10 +856,12 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -787,10 +871,13 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      */
     public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -798,27 +885,30 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage.Builder addLanguagesB
      *
      * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> 
+            com.google.cloud.translate.v3beta1.DetectedLanguage,
+            com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
+            com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.DetectedLanguage, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder, com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.DetectedLanguage,
+                com.google.cloud.translate.v3beta1.DetectedLanguage.Builder,
+                com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectLanguageResponse)
   private static final com.google.cloud.translate.v3beta1.DetectLanguageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectLanguageResponse();
   }
@@ -842,27 +932,27 @@ public static com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetectLanguageResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetectLanguageResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
index efeecfb6a1aa..7de0a0538e17 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface DetectLanguageResponseOrBuilder extends
+public interface DetectLanguageResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectLanguageResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -15,9 +33,10 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -27,6 +46,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   com.google.cloud.translate.v3beta1.DetectedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -36,6 +57,8 @@ public interface DetectLanguageResponseOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -43,9 +66,11 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -53,6 +78,5 @@ public interface DetectLanguageResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
similarity index 68%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
index 09a9eb377ea0..d021195a01f0 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
@@ -1,58 +1,81 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * The response message for language detection.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ -public final class DetectedLanguage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetectedLanguage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DetectedLanguage) DetectedLanguageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetectedLanguage.newBuilder() to construct. private DetectedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetectedLanguage() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedLanguage(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, + com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -61,30 +84,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -108,6 +134,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +146,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -140,8 +166,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,18 +176,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DetectedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DetectedLanguage other = (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; + com.google.cloud.translate.v3beta1.DetectedLanguage other = + (com.google.cloud.translate.v3beta1.DetectedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,139 +201,142 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DetectedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.DetectedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for language detection.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DetectedLanguage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DetectedLanguage) com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DetectedLanguage.class, com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); + com.google.cloud.translate.v3beta1.DetectedLanguage.class, + com.google.cloud.translate.v3beta1.DetectedLanguage.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DetectedLanguage.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; } @java.lang.Override @@ -341,8 +368,11 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DetectedLanguage buildPartial() { - com.google.cloud.translate.v3beta1.DetectedLanguage result = new com.google.cloud.translate.v3beta1.DetectedLanguage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DetectedLanguage result = + new com.google.cloud.translate.v3beta1.DetectedLanguage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -361,38 +391,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DetectedLanguage r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DetectedLanguage) { - return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DetectedLanguage) other); } else { super.mergeFrom(other); return this; @@ -400,7 +431,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectedLanguage other) { - if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DetectedLanguage.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000001; @@ -435,22 +467,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,23 +495,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object languageCode_ = ""; /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -485,21 +523,22 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -507,30 +546,37 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -540,18 +586,22 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * The BCP-47 language code of source content in the request, detected
      * automatically.
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -559,13 +609,16 @@ public Builder setLanguageCodeBytes( return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -573,11 +626,14 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ @@ -589,11 +645,14 @@ public Builder setConfidence(float value) { return this; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -602,9 +661,9 @@ public Builder clearConfidence() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +673,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DetectedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DetectedLanguage) private static final com.google.cloud.translate.v3beta1.DetectedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DetectedLanguage(); } @@ -628,27 +687,27 @@ public static com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,6 +722,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java similarity index 56% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java index 18315afd3353..cf19cfed0cc0 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DetectedLanguageOrBuilder extends +public interface DetectedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DetectedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The BCP-47 language code of source content in the request, detected
    * automatically.
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java similarity index 73% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java index 914665d42172..153fd3fc46ef 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * A document translation request input config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ -public final class DocumentInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentInputConfig) DocumentInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentInputConfig.newBuilder() to construct. private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentInputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT(1), GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -68,30 +91,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CONTENT; - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CONTENT; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int CONTENT_FIELD_NUMBER = 1; /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -99,11 +128,14 @@ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -116,12 +148,15 @@ public com.google.protobuf.ByteString getContent() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -129,22 +164,27 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -155,15 +195,18 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object mimeType_ = "";
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -178,6 +221,7 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
    * 
* * string mime_type = 4; + * * @return The mimeType. */ @java.lang.Override @@ -186,14 +230,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -208,16 +253,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -226,6 +270,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,11 +282,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) source_); + output.writeBytes(1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); @@ -259,13 +302,14 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) source_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) source_); } if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.translate.v3beta1.GcsSource) source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_); @@ -278,24 +322,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentInputConfig other = (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentInputConfig other = + (com.google.cloud.translate.v3beta1.DocumentInputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 2: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -331,131 +373,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DocumentInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request input config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentInputConfig.class, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentInputConfig.class, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +517,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; } @java.lang.Override @@ -491,8 +538,11 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentInputConfig result = new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DocumentInputConfig result = + new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -508,8 +558,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -518,38 +567,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentInput public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentInputConfig) other); } else { super.mergeFrom(other); return this; @@ -557,24 +607,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { - case CONTENT: { - setContent(other.getContent()); - break; - } - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CONTENT: + { + setContent(other.getContent()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -602,29 +656,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - source_ = input.readBytes(); - sourceCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + source_ = input.readBytes(); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,12 +690,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -652,22 +708,28 @@ public Builder clearSource() { private int bitField0_; /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return sourceCase_ == 1; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -677,27 +739,35 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } sourceCase_ = 1; source_ = value; onChanged(); return this; } /** + * + * *
      * Document's content represented as a stream of bytes.
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -710,14 +780,20 @@ public Builder clearContent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -725,12 +801,15 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -748,6 +827,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -769,6 +850,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -788,6 +871,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -797,10 +882,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -816,6 +904,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -840,6 +930,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -851,6 +943,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -870,6 +964,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -878,14 +974,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -898,6 +999,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
 
     private java.lang.Object mimeType_ = "";
     /**
+     *
+     *
      * 
      * Specifies the input document's mime_type.
      *
@@ -912,13 +1015,13 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * 
* * string mime_type = 4; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -927,6 +1030,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -941,15 +1046,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -957,6 +1061,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -971,18 +1077,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 4; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -997,6 +1107,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 4; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1006,6 +1117,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Specifies the input document's mime_type.
      *
@@ -1020,21 +1133,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 4; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1044,12 +1159,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentInputConfig) private static final com.google.cloud.translate.v3beta1.DocumentInputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentInputConfig(); } @@ -1058,27 +1173,27 @@ public static com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1093,6 +1208,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java index 06e08725269c..11b3263e5212 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentInputConfigOrBuilder extends +public interface DocumentInputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentInputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * Document's content represented as a stream of bytes.
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Google Cloud Storage location. This must be a single file.
    * For example: gs://example_bucket/example_file.pdf
@@ -57,6 +87,8 @@ public interface DocumentInputConfigOrBuilder extends
   com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    *
@@ -71,10 +103,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Specifies the input document's mime_type.
    *
@@ -89,10 +124,10 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java similarity index 81% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java index 9f0503508260..ecdf6ea09af0 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * A document translation request output config.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ -public final class DocumentOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) DocumentOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentOutputConfig.newBuilder() to construct. private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentOutputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentOutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -67,24 +90,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -131,7 +158,10 @@ public int getNumber() {
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -139,6 +169,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -185,17 +217,22 @@ public boolean hasGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -242,20 +279,25 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -269,6 +311,7 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -277,14 +320,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -298,16 +342,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -316,6 +359,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } @@ -345,8 +388,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); @@ -359,20 +403,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentOutputConfig other = (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; + com.google.cloud.translate.v3beta1.DocumentOutputConfig other = + (com.google.cloud.translate.v3beta1.DocumentOutputConfig) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -404,131 +447,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DocumentOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A document translation request output config.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.class, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +591,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; } @java.lang.Override @@ -564,8 +612,11 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.DocumentOutputConfig result = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.DocumentOutputConfig result = + new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -578,11 +629,11 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentOutputConf } } - private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.translate.v3beta1.DocumentOutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -591,38 +642,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.DocumentOutpu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentOutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -630,20 +682,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentOutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -671,24 +726,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -698,12 +754,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -716,8 +772,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -764,7 +825,10 @@ public Builder clearDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -772,6 +836,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -818,7 +884,10 @@ public boolean hasGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ @java.lang.Override @@ -836,6 +905,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -882,7 +953,9 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { @@ -898,6 +971,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -944,7 +1019,9 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcsDestination( com.google.cloud.translate.v3beta1.GcsDestination.Builder builderForValue) { @@ -958,6 +1035,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1004,14 +1083,20 @@ public Builder setGcsDestination(
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.translate.v3beta1.GcsDestination.newBuilder( + (com.google.cloud.translate.v3beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -1027,6 +1112,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1073,7 +1160,9 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -1092,6 +1181,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1138,12 +1229,16 @@ public Builder clearGcsDestination() {
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1190,7 +1285,9 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { @@ -1204,6 +1301,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat } } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1250,17 +1349,24 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * bucket.
      * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>( (com.google.cloud.translate.v3beta1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -1273,6 +1379,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1286,13 +1394,13 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1301,6 +1409,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1314,15 +1424,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1330,6 +1439,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1343,18 +1454,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1368,6 +1483,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1377,6 +1493,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Specifies the translated document's mime_type.
      * If not specified, the translated file's mime type will be the same as the
@@ -1390,21 +1508,23 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1414,12 +1534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentOutputConfig) private static final com.google.cloud.translate.v3beta1.DocumentOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentOutputConfig(); } @@ -1428,27 +1548,27 @@ public static com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1463,6 +1583,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java similarity index 87% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java index 17316468ae28..463254c21d21 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentOutputConfigOrBuilder extends +public interface DocumentOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -54,11 +72,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -105,11 +128,16 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -156,11 +184,15 @@ public interface DocumentOutputConfigOrBuilder extends
    * bucket.
    * 
* - * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -174,10 +206,13 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Specifies the translated document's mime_type.
    * If not specified, the translated file's mime type will be the same as the
@@ -191,10 +226,10 @@ public interface DocumentOutputConfigOrBuilder extends
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java index 89708b96024f..8ea93fed3c5a 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * A translated document message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ -public final class DocumentTranslation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.DocumentTranslation) DocumentTranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentTranslation.newBuilder() to construct. private DocumentTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DocumentTranslation() { byteStreamOutputs_ = java.util.Collections.emptyList(); mimeType_ = ""; @@ -27,28 +45,32 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentTranslation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List byteStreamOutputs_; /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -56,14 +78,16 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ @java.lang.Override - public java.util.List - getByteStreamOutputsList() { + public java.util.List getByteStreamOutputsList() { return byteStreamOutputs_; } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -71,12 +95,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -84,6 +111,7 @@ public int getByteStreamOutputsCount() {
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -92,14 +120,18 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { } public static final int MIME_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -139,9 +171,12 @@ public java.lang.String getMimeType() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -151,6 +186,7 @@ public java.lang.String getMimeType() {
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -159,14 +195,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -176,16 +213,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -194,6 +230,7 @@ public java.lang.String getDetectedLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -228,8 +264,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < byteStreamOutputs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(byteStreamOutputs_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(byteStreamOutputs_.get(i)); } size += dataSize; size += 1 * getByteStreamOutputsList().size(); @@ -248,19 +284,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.DocumentTranslation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.DocumentTranslation other = (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; + com.google.cloud.translate.v3beta1.DocumentTranslation other = + (com.google.cloud.translate.v3beta1.DocumentTranslation) obj; - if (!getByteStreamOutputsList() - .equals(other.getByteStreamOutputsList())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getByteStreamOutputsList().equals(other.getByteStreamOutputsList())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,131 +320,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.DocumentTranslation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.DocumentTranslation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.DocumentTranslation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.DocumentTranslation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.DocumentTranslation) com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.DocumentTranslation.class, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); + com.google.cloud.translate.v3beta1.DocumentTranslation.class, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; } @java.lang.Override @@ -443,14 +482,18 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation buildPartial() { - com.google.cloud.translate.v3beta1.DocumentTranslation result = new com.google.cloud.translate.v3beta1.DocumentTranslation(this); + com.google.cloud.translate.v3beta1.DocumentTranslation result = + new com.google.cloud.translate.v3beta1.DocumentTranslation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.DocumentTranslation result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.DocumentTranslation result) { if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); bitField0_ = (bitField0_ & ~0x00000001); @@ -472,38 +515,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.DocumentTranslatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.DocumentTranslation) { - return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation)other); + return mergeFrom((com.google.cloud.translate.v3beta1.DocumentTranslation) other); } else { super.mergeFrom(other); return this; @@ -511,7 +555,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.DocumentTranslation other) { - if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) + return this; if (!other.byteStreamOutputs_.isEmpty()) { if (byteStreamOutputs_.isEmpty()) { byteStreamOutputs_ = other.byteStreamOutputs_; @@ -558,28 +603,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureByteStreamOutputsIsMutable(); - byteStreamOutputs_.add(v); - break; - } // case 10 - case 18: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureByteStreamOutputsIsMutable(); + byteStreamOutputs_.add(v); + break; + } // case 10 + case 18: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,16 +638,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List byteStreamOutputs_ = java.util.Collections.emptyList(); + private java.util.List byteStreamOutputs_ = + java.util.Collections.emptyList(); + private void ensureByteStreamOutputsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(byteStreamOutputs_); + byteStreamOutputs_ = + new java.util.ArrayList(byteStreamOutputs_); bitField0_ |= 0x00000001; } } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -606,14 +661,17 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ - public java.util.List - getByteStreamOutputsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(byteStreamOutputs_) : byteStreamOutputs_; + public java.util.List getByteStreamOutputsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(byteStreamOutputs_) + : byteStreamOutputs_; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -621,12 +679,15 @@ private void ensureByteStreamOutputsIsMutable() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ public int getByteStreamOutputsCount() { return byteStreamOutputs_.size(); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -634,6 +695,7 @@ public int getByteStreamOutputsCount() {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ @@ -641,6 +703,8 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { return byteStreamOutputs_.get(index); } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -648,19 +712,23 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index to set the value at. * @param value The byteStreamOutputs to set. * @return This builder for chaining. */ - public Builder setByteStreamOutputs( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.set(index, value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -668,17 +736,22 @@ public Builder setByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param value The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureByteStreamOutputsIsMutable(); byteStreamOutputs_.add(value); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -686,18 +759,20 @@ public Builder addByteStreamOutputs(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @param values The byteStreamOutputs to add. * @return This builder for chaining. */ public Builder addAllByteStreamOutputs( java.lang.Iterable values) { ensureByteStreamOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, byteStreamOutputs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, byteStreamOutputs_); onChanged(); return this; } /** + * + * *
      * The array of translated documents. It is expected to be size 1 for now. We
      * may produce multiple translated documents in the future for other type of
@@ -705,6 +780,7 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -716,18 +792,20 @@ public Builder clearByteStreamOutputs() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -736,20 +814,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -757,28 +836,35 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -788,17 +874,21 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -808,6 +898,8 @@ public Builder setMimeTypeBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -817,13 +909,13 @@ public Builder setMimeTypeBytes(
      * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -832,6 +924,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -841,15 +935,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -857,6 +950,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -866,18 +961,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -887,6 +986,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 3; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -896,6 +996,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -905,21 +1007,23 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 3; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -929,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.DocumentTranslation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.DocumentTranslation) private static final com.google.cloud.translate.v3beta1.DocumentTranslation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.DocumentTranslation(); } @@ -943,27 +1047,27 @@ public static com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -978,6 +1082,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java similarity index 76% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java index 8dc2ef1084d3..542dcda58c23 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface DocumentTranslationOrBuilder extends +public interface DocumentTranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DocumentTranslation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -15,10 +33,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return A list containing the byteStreamOutputs. */ java.util.List getByteStreamOutputsList(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -26,10 +47,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @return The count of byteStreamOutputs. */ int getByteStreamOutputsCount(); /** + * + * *
    * The array of translated documents. It is expected to be size 1 for now. We
    * may produce multiple translated documents in the future for other type of
@@ -37,32 +61,40 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * repeated bytes byte_stream_outputs = 1; + * * @param index The index of the element to return. * @return The byteStreamOutputs at the given index. */ com.google.protobuf.ByteString getByteStreamOutputs(int index); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -72,10 +104,13 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The detected language for the input document.
    * If the user did not provide the source language for the input document,
@@ -85,8 +120,8 @@ public interface DocumentTranslationOrBuilder extends
    * 
* * string detected_language_code = 3; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java similarity index 69% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java index f3eba776ada7..fbafb7e18b90 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The Google Cloud Storage location for the output content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { outputUriPrefix_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, + com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object outputUriPrefix_ = ""; /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -62,14 +85,15 @@ public java.lang.String getOutputUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; } } /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -77,16 +101,15 @@ public java.lang.String getOutputUriPrefix() {
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -95,6 +118,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); } @@ -131,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsDestination other = (com.google.cloud.translate.v3beta1.GcsDestination) obj; + com.google.cloud.translate.v3beta1.GcsDestination other = + (com.google.cloud.translate.v3beta1.GcsDestination) obj; - if (!getOutputUriPrefix() - .equals(other.getOutputUriPrefix())) return false; + if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +182,135 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the output content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsDestination) com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsDestination.class, com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); + com.google.cloud.translate.v3beta1.GcsDestination.class, + com.google.cloud.translate.v3beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsDestination.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; } @java.lang.Override @@ -314,8 +341,11 @@ public com.google.cloud.translate.v3beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination buildPartial() { - com.google.cloud.translate.v3beta1.GcsDestination result = new com.google.cloud.translate.v3beta1.GcsDestination(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GcsDestination result = + new com.google.cloud.translate.v3beta1.GcsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +361,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsDestination res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsDestination) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -370,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GcsDestination other) { - if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) + return this; if (!other.getOutputUriPrefix().isEmpty()) { outputUriPrefix_ = other.outputUriPrefix_; bitField0_ |= 0x00000001; @@ -402,17 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - outputUriPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + outputUriPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,10 +456,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object outputUriPrefix_ = ""; /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -433,13 +470,13 @@ public Builder mergeFrom(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ public java.lang.String getOutputUriPrefix() { java.lang.Object ref = outputUriPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUriPrefix_ = s; return s; @@ -448,6 +485,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -455,15 +494,14 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - public com.google.protobuf.ByteString - getOutputUriPrefixBytes() { + public com.google.protobuf.ByteString getOutputUriPrefixBytes() { java.lang.Object ref = outputUriPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUriPrefix_ = b; return b; } else { @@ -471,6 +509,8 @@ public java.lang.String getOutputUriPrefix() { } } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -478,18 +518,22 @@ public java.lang.String getOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -497,6 +541,7 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { @@ -506,6 +551,8 @@ public Builder clearOutputUriPrefix() { return this; } /** + * + * *
      * Required. There must be no files under 'output_uri_prefix'.
      * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -513,21 +560,23 @@ public Builder clearOutputUriPrefix() {
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for outputUriPrefix to set. * @return This builder for chaining. */ - public Builder setOutputUriPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputUriPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsDestination) private static final com.google.cloud.translate.v3beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsDestination(); } @@ -551,27 +600,27 @@ public static com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java similarity index 59% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java index 7b92ba408335..f9f1a7cb3a5c 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -15,10 +33,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ java.lang.String getOutputUriPrefix(); /** + * + * *
    * Required. There must be no files under 'output_uri_prefix'.
    * 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
@@ -26,8 +47,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputUriPrefix. */ - com.google.protobuf.ByteString - getOutputUriPrefixBytes(); + com.google.protobuf.ByteString getOutputUriPrefixBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java similarity index 67% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java index bf6227f61875..e7120cf316d9 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { inputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, + com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputUri_ = ""; /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ @java.lang.Override @@ -60,29 +83,29 @@ public java.lang.String getInputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; } } /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -91,6 +114,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } @@ -127,15 +150,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GcsSource other = (com.google.cloud.translate.v3beta1.GcsSource) obj; + com.google.cloud.translate.v3beta1.GcsSource other = + (com.google.cloud.translate.v3beta1.GcsSource) obj; - if (!getInputUri() - .equals(other.getInputUri())) return false; + if (!getInputUri().equals(other.getInputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +177,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GcsSource) com.google.cloud.translate.v3beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GcsSource.class, com.google.cloud.translate.v3beta1.GcsSource.Builder.class); + com.google.cloud.translate.v3beta1.GcsSource.class, + com.google.cloud.translate.v3beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GcsSource.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; } @java.lang.Override @@ -310,8 +337,11 @@ public com.google.cloud.translate.v3beta1.GcsSource build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource buildPartial() { - com.google.cloud.translate.v3beta1.GcsSource result = new com.google.cloud.translate.v3beta1.GcsSource(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GcsSource result = + new com.google.cloud.translate.v3beta1.GcsSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +357,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GcsSource result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GcsSource) { - return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -398,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +451,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputUri_ = ""; /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputUri_ = s; return s; @@ -442,20 +478,21 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - public com.google.protobuf.ByteString - getInputUriBytes() { + public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputUri_ = b; return b; } else { @@ -463,28 +500,35 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputUri to set. * @return This builder for chaining. */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputUri() { @@ -494,26 +538,30 @@ public Builder clearInputUri() { return this; } /** + * + * *
      * Required. Source data URI. For example, `gs://my_bucket/my_object`.
      * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for inputUri to set. * @return This builder for chaining. */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GcsSource) private static final com.google.cloud.translate.v3beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GcsSource(); } @@ -537,27 +585,27 @@ public static com.google.cloud.translate.v3beta1.GcsSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java index 317cdff9cb9a..f38f9d999c8b 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputUri. */ java.lang.String getInputUri(); /** + * + * *
    * Required. Source data URI. For example, `gs://my_bucket/my_object`.
    * 
* * string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString - getInputUriBytes(); + com.google.protobuf.ByteString getInputUriBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java similarity index 62% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java index ee785a9bf764..79a98bca6ee3 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Request message for GetGlossary.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ -public final class GetGlossaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGlossaryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) GetGlossaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGlossaryRequest.newBuilder() to construct. private GetGlossaryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGlossaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGlossaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the glossary to retrieve.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -127,15 +154,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetGlossaryRequest other = (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; + com.google.cloud.translate.v3beta1.GetGlossaryRequest other = + (com.google.cloud.translate.v3beta1.GetGlossaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetGlossaryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.GetGlossaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for GetGlossary.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetGlossaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetGlossaryRequest) com.google.cloud.translate.v3beta1.GetGlossaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, + com.google.cloud.translate.v3beta1.GetGlossaryRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetGlossaryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; } @java.lang.Override @@ -310,8 +342,11 @@ public com.google.cloud.translate.v3beta1.GetGlossaryRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetGlossaryRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetGlossaryRequest result = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GetGlossaryRequest result = + new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +362,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GetGlossaryRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetGlossaryRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetGlossaryRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +402,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetGlossaryRequest other) { - if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -442,20 +486,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -463,28 +510,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -494,26 +552,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the glossary to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetGlossaryRequest) private static final com.google.cloud.translate.v3beta1.GetGlossaryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetGlossaryRequest(); } @@ -537,27 +601,27 @@ public static com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlossaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlossaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000000..fda4692c0f60 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public interface GetGlossaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the glossary to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java index 44ea1950af9a..6a2ca76cb00a 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The request message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ -public final class GetSupportedLanguagesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSupportedLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) GetSupportedLanguagesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSupportedLanguagesRequest.newBuilder() to construct. private GetSupportedLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSupportedLanguagesRequest() { parent_ = ""; displayLanguageCode_ = ""; @@ -27,28 +45,32 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -65,7 +87,10 @@ protected java.lang.Object newInstance(
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -74,14 +99,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -98,17 +124,18 @@ public java.lang.String getParent() {
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -117,9 +144,12 @@ public java.lang.String getParent() { } public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object displayLanguageCode_ = ""; /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -127,6 +157,7 @@ public java.lang.String getParent() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ @java.lang.Override @@ -135,14 +166,15 @@ public java.lang.String getDisplayLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -150,16 +182,15 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -168,9 +199,12 @@ public java.lang.String getDisplayLanguageCode() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -188,6 +222,7 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -221,16 +257,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -239,6 +274,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayLanguageCode_); } @@ -287,19 +322,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getDisplayLanguageCode() - .equals(other.getDisplayLanguageCode())) return false; - if (!getModel() - .equals(other.getModel())) return false; + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other = + (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayLanguageCode().equals(other.getDisplayLanguageCode())) return false; + if (!getModel().equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,131 +356,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GetSupportedLanguagesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -459,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance(); } @@ -480,13 +519,17 @@ public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest buildPartial() { - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = + new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -503,46 +546,50 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GetSupportedLangua public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { - if (other == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest other) { + if (other + == com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -584,27 +631,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - displayLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + displayLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,10 +665,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -634,14 +688,16 @@ public Builder mergeFrom(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -650,6 +706,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -666,16 +724,17 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -683,6 +742,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -699,19 +760,25 @@ public java.lang.String getParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -728,7 +795,10 @@ public Builder setParent(
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -738,6 +808,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -754,13 +826,17 @@ public Builder clearParent() {
      * otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -770,6 +846,8 @@ public Builder setParentBytes( private java.lang.Object displayLanguageCode_ = ""; /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -777,13 +855,13 @@ public Builder setParentBytes(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ public java.lang.String getDisplayLanguageCode() { java.lang.Object ref = displayLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayLanguageCode_ = s; return s; @@ -792,6 +870,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -799,15 +879,14 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - public com.google.protobuf.ByteString - getDisplayLanguageCodeBytes() { + public com.google.protobuf.ByteString getDisplayLanguageCodeBytes() { java.lang.Object ref = displayLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayLanguageCode_ = b; return b; } else { @@ -815,6 +894,8 @@ public java.lang.String getDisplayLanguageCode() { } } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -822,18 +903,22 @@ public java.lang.String getDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -841,6 +926,7 @@ public Builder setDisplayLanguageCode(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { @@ -850,6 +936,8 @@ public Builder clearDisplayLanguageCode() { return this; } /** + * + * *
      * Optional. The language to use to return localized, human readable names
      * of supported languages. If missing, then display names are not returned
@@ -857,12 +945,14 @@ public Builder clearDisplayLanguageCode() {
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayLanguageCode to set. * @return This builder for chaining. */ - public Builder setDisplayLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -872,6 +962,8 @@ public Builder setDisplayLanguageCodeBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -889,13 +981,13 @@ public Builder setDisplayLanguageCodeBytes(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -904,6 +996,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -921,15 +1015,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -937,6 +1030,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -954,18 +1049,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -983,6 +1082,7 @@ public Builder setModel(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -992,6 +1092,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      *
@@ -1009,21 +1111,23 @@ public Builder clearModel() {
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,41 +1137,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) - private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(); } - public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSupportedLanguagesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSupportedLanguagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,9 +1185,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java index 05467be3d1ae..35383185f638 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface GetSupportedLanguagesRequestOrBuilder extends +public interface GetSupportedLanguagesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetSupportedLanguagesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -24,11 +42,16 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -45,13 +68,17 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -59,10 +86,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ java.lang.String getDisplayLanguageCode(); /** + * + * *
    * Optional. The language to use to return localized, human readable names
    * of supported languages. If missing, then display names are not returned
@@ -70,12 +100,14 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayLanguageCode. */ - com.google.protobuf.ByteString - getDisplayLanguageCodeBytes(); + com.google.protobuf.ByteString getDisplayLanguageCodeBytes(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -93,10 +125,13 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. Get supported languages of this model.
    *
@@ -114,8 +149,8 @@ public interface GetSupportedLanguagesRequestOrBuilder extends
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java similarity index 71% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java index c664292ae449..9d415396e551 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java @@ -1,112 +1,145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Represents a glossary built from user provided data.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ -public final class Glossary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Glossary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary) GlossaryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Glossary.newBuilder() to construct. private Glossary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Glossary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Glossary(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, + com.google.cloud.translate.v3beta1.Glossary.Builder.class); } - public interface LanguageCodePairOrBuilder extends + public interface LanguageCodePairOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class LanguageCodePair extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodePair extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) LanguageCodePairOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodePair.newBuilder() to construct. private LanguageCodePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodePair() { sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -114,34 +147,39 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodePair(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -150,30 +188,30 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The BCP-47 language code of the input text, for example,
      * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -182,15 +220,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -199,30 +241,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
      * Required. The BCP-47 language code for translation output, for example,
      * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
      * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -231,6 +273,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +285,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguageCode_); } @@ -273,17 +315,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other = + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) obj; - if (!getSourceLanguageCode() - .equals(other.getSourceLanguageCode())) return false; - if (!getTargetLanguageCode() - .equals(other.getTargetLanguageCode())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -305,89 +346,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -397,39 +443,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodePair} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,13 +488,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } @@ -461,13 +510,17 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = + new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sourceLanguageCode_ = sourceLanguageCode_; @@ -481,38 +534,41 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) other); } else { super.mergeFrom(other); return this; @@ -520,7 +576,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair other) { - if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) + return this; if (!other.getSourceLanguageCode().isEmpty()) { sourceLanguageCode_ = other.sourceLanguageCode_; bitField0_ |= 0x00000001; @@ -557,22 +615,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,23 +643,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -607,21 +671,22 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -629,30 +694,37 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -662,18 +734,22 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
        * Required. The BCP-47 language code of the input text, for example,
        * "en-US". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string source_language_code = 1; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000001; @@ -683,19 +759,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -704,21 +782,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -726,30 +805,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -759,24 +845,29 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
        * Required. The BCP-47 language code for translation output, for example,
        * "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
        * 
* * string target_language_code = 2; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -789,41 +880,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodePair) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,17 +929,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface LanguageCodesSetOrBuilder extends + public interface LanguageCodesSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -853,11 +950,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -865,10 +964,13 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -876,11 +978,14 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -888,58 +993,64 @@ public interface LanguageCodesSetOrBuilder extends
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString - getLanguageCodesBytes(int index); + com.google.protobuf.ByteString getLanguageCodesBytes(int index); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class LanguageCodesSet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LanguageCodesSet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) LanguageCodesSetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LanguageCodesSet.newBuilder() to construct. private LanguageCodesSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LanguageCodesSet() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodesSet(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -947,13 +1058,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_; } /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -961,12 +1074,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -974,6 +1090,7 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -981,6 +1098,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -988,15 +1107,16 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1008,8 +1128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } @@ -1038,15 +1157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other = + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) obj; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1068,89 +1187,94 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1160,56 +1284,58 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary.LanguageCodesSet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.class, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1224,13 +1350,17 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet buildPartial() { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = + new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { languageCodes_.makeImmutable(); @@ -1242,38 +1372,41 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary.LanguageC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) other); } else { super.mergeFrom(other); return this; @@ -1281,7 +1414,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet other) { - if (other == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) + return this; if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; @@ -1318,18 +1453,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1339,10 +1476,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLanguageCodesIsMutable() { if (!languageCodes_.isModifiable()) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); @@ -1350,6 +1489,8 @@ private void ensureLanguageCodesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1357,14 +1498,16 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { languageCodes_.makeImmutable(); return languageCodes_; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1372,12 +1515,15 @@ private void ensureLanguageCodesIsMutable() {
        * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1385,6 +1531,7 @@ public int getLanguageCodesCount() {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -1392,6 +1539,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1399,14 +1548,16 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1414,13 +1565,15 @@ public java.lang.String getLanguageCodes(int index) {
        * 
* * repeated string language_codes = 1; + * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); bitField0_ |= 0x00000001; @@ -1428,6 +1581,8 @@ public Builder setLanguageCodes( return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1435,12 +1590,14 @@ public Builder setLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.add(value); bitField0_ |= 0x00000001; @@ -1448,6 +1605,8 @@ public Builder addLanguageCodes( return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1455,19 +1614,20 @@ public Builder addLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes( - java.lang.Iterable values) { + public Builder addAllLanguageCodes(java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1475,16 +1635,19 @@ public Builder addAllLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { - languageCodes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + languageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1492,12 +1655,14 @@ public Builder clearLanguageCodes() {
        * 
* * repeated string language_codes = 1; + * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -1505,6 +1670,7 @@ public Builder addLanguageCodesBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1517,41 +1683,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary.LanguageCodesSet) - private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(); } - public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LanguageCodesSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageCodesSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1563,22 +1732,26 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int languagesCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object languages_; + public enum LanguagesCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LANGUAGE_PAIR(3), LANGUAGE_CODES_SET(4), LANGUAGES_NOT_SET(0); private final int value; + private LanguagesCase(int value) { this.value = value; } @@ -1594,33 +1767,40 @@ public static LanguagesCase valueOf(int value) { public static LanguagesCase forNumber(int value) { switch (value) { - case 3: return LANGUAGE_PAIR; - case 4: return LANGUAGE_CODES_SET; - case 0: return LANGUAGES_NOT_SET; - default: return null; + case 3: + return LANGUAGE_PAIR; + case 4: + return LANGUAGE_CODES_SET; + case 0: + return LANGUAGES_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -1629,30 +1809,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1662,11 +1842,14 @@ public java.lang.String getName() { public static final int LANGUAGE_PAIR_FIELD_NUMBER = 3; /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -1674,21 +1857,26 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -1696,20 +1884,25 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if (languagesCase_ == 3) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } public static final int LANGUAGE_CODES_SET_FIELD_NUMBER = 4; /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -1717,31 +1910,39 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return The languageCodesSet. */ @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if (languagesCase_ == 4) { - return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; + return (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_; } return com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } @@ -1749,12 +1950,15 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder get public static final int INPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -1762,19 +1966,26 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -1784,17 +1995,22 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() {
    */
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
-    return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+    return inputConfig_ == null
+        ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
+        : inputConfig_;
   }
 
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   private int entryCount_ = 0;
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -1805,11 +2021,15 @@ public int getEntryCount() { public static final int SUBMIT_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp submitTime_; /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ @java.lang.Override @@ -1817,11 +2037,15 @@ public boolean hasSubmitTime() { return submitTime_ != null; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ @java.lang.Override @@ -1829,11 +2053,14 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { @@ -1843,11 +2070,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1855,11 +2086,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1867,11 +2102,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1879,6 +2117,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1890,16 +2129,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (languagesCase_ == 3) { - output.writeMessage(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + output.writeMessage( + 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - output.writeMessage(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + output.writeMessage( + 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { output.writeMessage(5, getInputConfig()); @@ -1926,28 +2166,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (languagesCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); } if (languagesCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputConfig()); } if (entryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, entryCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, entryCount_); } if (submitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSubmitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSubmitTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1957,41 +2195,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Glossary)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Glossary other = (com.google.cloud.translate.v3beta1.Glossary) obj; + com.google.cloud.translate.v3beta1.Glossary other = + (com.google.cloud.translate.v3beta1.Glossary) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } - if (getEntryCount() - != other.getEntryCount()) return false; + if (getEntryCount() != other.getEntryCount()) return false; if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { - if (!getSubmitTime() - .equals(other.getSubmitTime())) return false; + if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (!getLanguagesCase().equals(other.getLanguagesCase())) return false; switch (languagesCase_) { case 3: - if (!getLanguagePair() - .equals(other.getLanguagePair())) return false; + if (!getLanguagePair().equals(other.getLanguagePair())) return false; break; case 4: - if (!getLanguageCodesSet() - .equals(other.getLanguageCodesSet())) return false; + if (!getLanguageCodesSet().equals(other.getLanguageCodesSet())) return false; break; case 0: default: @@ -2040,132 +2272,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Glossary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Glossary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Glossary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a glossary built from user provided data.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Glossary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Glossary) com.google.cloud.translate.v3beta1.GlossaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Glossary.class, com.google.cloud.translate.v3beta1.Glossary.Builder.class); + com.google.cloud.translate.v3beta1.Glossary.class, + com.google.cloud.translate.v3beta1.Glossary.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Glossary.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2199,9 +2435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; } @java.lang.Override @@ -2220,8 +2456,11 @@ public com.google.cloud.translate.v3beta1.Glossary build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Glossary buildPartial() { - com.google.cloud.translate.v3beta1.Glossary result = new com.google.cloud.translate.v3beta1.Glossary(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Glossary result = + new com.google.cloud.translate.v3beta1.Glossary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2233,34 +2472,27 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Glossary result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.inputConfig_ = inputConfigBuilder_ == null - ? inputConfig_ - : inputConfigBuilder_.build(); + result.inputConfig_ = + inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.entryCount_ = entryCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null - ? submitTime_ - : submitTimeBuilder_.build(); + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary result) { result.languagesCase_ = languagesCase_; result.languages_ = this.languages_; - if (languagesCase_ == 3 && - languagePairBuilder_ != null) { + if (languagesCase_ == 3 && languagePairBuilder_ != null) { result.languages_ = languagePairBuilder_.build(); } - if (languagesCase_ == 4 && - languageCodesSetBuilder_ != null) { + if (languagesCase_ == 4 && languageCodesSetBuilder_ != null) { result.languages_ = languageCodesSetBuilder_.build(); } } @@ -2269,38 +2501,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.Glossary resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Glossary) { - return mergeFrom((com.google.cloud.translate.v3beta1.Glossary)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Glossary) other); } else { super.mergeFrom(other); return this; @@ -2327,17 +2560,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.Glossary other) { mergeEndTime(other.getEndTime()); } switch (other.getLanguagesCase()) { - case LANGUAGE_PAIR: { - mergeLanguagePair(other.getLanguagePair()); - break; - } - case LANGUAGE_CODES_SET: { - mergeLanguageCodesSet(other.getLanguageCodesSet()); - break; - } - case LANGUAGES_NOT_SET: { - break; - } + case LANGUAGE_PAIR: + { + mergeLanguagePair(other.getLanguagePair()); + break; + } + case LANGUAGE_CODES_SET: + { + mergeLanguageCodesSet(other.getLanguageCodesSet()); + break; + } + case LANGUAGES_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2365,57 +2601,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - input.readMessage( - getLanguagePairFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getLanguageCodesSetFieldBuilder().getBuilder(), - extensionRegistry); - languagesCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 48: { - entryCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - input.readMessage( - getSubmitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getLanguagePairFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getLanguageCodesSetFieldBuilder().getBuilder(), extensionRegistry); + languagesCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + entryCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2425,12 +2660,12 @@ public Builder mergeFrom( } // finally return this; } + private int languagesCase_ = 0; private java.lang.Object languages_; - public LanguagesCase - getLanguagesCase() { - return LanguagesCase.forNumber( - languagesCase_); + + public LanguagesCase getLanguagesCase() { + return LanguagesCase.forNumber(languagesCase_); } public Builder clearLanguages() { @@ -2444,19 +2679,21 @@ public Builder clearLanguages() { private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2465,21 +2702,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2487,30 +2725,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2520,18 +2765,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the glossary. Glossary names have the form
      * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2540,13 +2789,19 @@ public Builder setNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> languagePairBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> + languagePairBuilder_; /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ @java.lang.Override @@ -2554,11 +2809,14 @@ public boolean hasLanguagePair() { return languagesCase_ == 3; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ @java.lang.Override @@ -2576,13 +2834,16 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguageP } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder setLanguagePair( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2596,6 +2857,8 @@ public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.Langu return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2614,18 +2877,26 @@ public Builder setLanguagePair( return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { + public Builder mergeLanguagePair( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair value) { if (languagePairBuilder_ == null) { - if (languagesCase_ == 3 && - languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 3 + && languages_ + != com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair + .getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.newBuilder( + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2641,6 +2912,8 @@ public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.Lan return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2664,16 +2937,21 @@ public Builder clearLanguagePair() { return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder getLanguagePairBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder + getLanguagePairBuilder() { return getLanguagePairFieldBuilder().getBuilder(); } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2681,7 +2959,8 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder getL * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder + getLanguagePairOrBuilder() { if ((languagesCase_ == 3) && (languagePairBuilder_ != null)) { return languagePairBuilder_.getMessageOrBuilder(); } else { @@ -2692,6 +2971,8 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder get } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2699,14 +2980,20 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder get * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder> getLanguagePairFieldBuilder() { if (languagePairBuilder_ == null) { if (!(languagesCase_ == 3)) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.getDefaultInstance(); } - languagePairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( + languagePairBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_, getParentForChildren(), isClean()); @@ -2718,13 +3005,20 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder get } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> languageCodesSetBuilder_; + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> + languageCodesSetBuilder_; /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return Whether the languageCodesSet field is set. */ @java.lang.Override @@ -2732,11 +3026,15 @@ public boolean hasLanguageCodesSet() { return languagesCase_ == 4; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return The languageCodesSet. */ @java.lang.Override @@ -2754,13 +3052,17 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageC } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - public Builder setLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder setLanguageCodesSet( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2774,11 +3076,14 @@ public Builder setLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.L return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ public Builder setLanguageCodesSet( com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder builderForValue) { @@ -2792,18 +3097,27 @@ public Builder setLanguageCodesSet( return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { + public Builder mergeLanguageCodesSet( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet value) { if (languageCodesSetBuilder_ == null) { - if (languagesCase_ == 4 && - languages_ != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance()) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) - .mergeFrom(value).buildPartial(); + if (languagesCase_ == 4 + && languages_ + != com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet + .getDefaultInstance()) { + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.newBuilder( + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) + .mergeFrom(value) + .buildPartial(); } else { languages_ = value; } @@ -2819,11 +3133,14 @@ public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3beta1.Glossary return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ public Builder clearLanguageCodesSet() { if (languageCodesSetBuilder_ == null) { @@ -2842,24 +3159,32 @@ public Builder clearLanguageCodesSet() { return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder + getLanguageCodesSetBuilder() { return getLanguageCodesSetFieldBuilder().getBuilder(); } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder() { + public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder() { if ((languagesCase_ == 4) && (languageCodesSetBuilder_ != null)) { return languageCodesSetBuilder_.getMessageOrBuilder(); } else { @@ -2870,21 +3195,30 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder get } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder> getLanguageCodesSetFieldBuilder() { if (languageCodesSetBuilder_ == null) { if (!(languagesCase_ == 4)) { - languages_ = com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); + languages_ = + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.getDefaultInstance(); } - languageCodesSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( + languageCodesSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder, + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder>( (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_, getParentForChildren(), isClean()); @@ -2897,36 +3231,49 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder get private com.google.cloud.translate.v3beta1.GlossaryInputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.translate.v3beta1.GlossaryInputConfig, + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, + com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
      * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ public com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -2948,6 +3295,8 @@ public Builder setInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputCo
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -2967,6 +3316,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -2976,9 +3327,10 @@ public Builder setInputConfig(
      */
     public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInputConfig value) {
       if (inputConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          inputConfig_ != null &&
-          inputConfig_ != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && inputConfig_ != null
+            && inputConfig_
+                != com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) {
           getInputConfigBuilder().mergeFrom(value);
         } else {
           inputConfig_ = value;
@@ -2991,6 +3343,8 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInput
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3009,6 +3363,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3022,6 +3378,8 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3029,15 +3387,19 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputCo
      *
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
-    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder() {
+    public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder
+        getInputConfigOrBuilder() {
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null ?
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance() : inputConfig_;
+        return inputConfig_ == null
+            ? com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()
+            : inputConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3046,26 +3408,32 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputC
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder> 
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig,
+            com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
+            com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder, com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
-                getInputConfig(),
-                getParentForChildren(),
-                isClean());
+        inputConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GlossaryInputConfig,
+                com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder,
+                com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder>(
+                getInputConfig(), getParentForChildren(), isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
     }
 
-    private int entryCount_ ;
+    private int entryCount_;
     /**
+     *
+     *
      * 
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ @java.lang.Override @@ -3073,11 +3441,14 @@ public int getEntryCount() { return entryCount_; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The entryCount to set. * @return This builder for chaining. */ @@ -3089,11 +3460,14 @@ public Builder setEntryCount(int value) { return this; } /** + * + * *
      * Output only. The number of entries defined in the glossary.
      * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -3105,39 +3479,58 @@ public Builder clearEntryCount() { private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { - return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { @@ -3153,14 +3546,17 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSubmitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { @@ -3171,17 +3567,21 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - submitTime_ != null && - submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; @@ -3194,11 +3594,15 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3211,11 +3615,15 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000020; @@ -3223,36 +3631,48 @@ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; } } /** + * + * *
      * Output only. When CreateGlossary was called.
      * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), - getParentForChildren(), - isClean()); + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; @@ -3260,24 +3680,35 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3288,11 +3719,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3308,14 +3742,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -3326,17 +3762,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -3349,11 +3788,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3366,11 +3808,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000040; @@ -3378,43 +3823,51 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. When the glossary creation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3424,12 +3877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Glossary) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Glossary) private static final com.google.cloud.translate.v3beta1.Glossary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Glossary(); } @@ -3438,27 +3891,27 @@ public static com.google.cloud.translate.v3beta1.Glossary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Glossary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Glossary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3473,6 +3926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java similarity index 78% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java index d5d80ac45297..6db570106ae1 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Input configuration for glossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ -public final class GlossaryInputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GlossaryInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) GlossaryInputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GlossaryInputConfig.newBuilder() to construct. private GlossaryInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GlossaryInputConfig() { - } + + private GlossaryInputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GlossaryInputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -110,6 +136,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -117,6 +144,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -143,16 +172,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -183,12 +215,13 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -200,8 +233,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (sourceCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
@@ -215,8 +247,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (sourceCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -226,18 +259,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.GlossaryInputConfig other = (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
+    com.google.cloud.translate.v3beta1.GlossaryInputConfig other =
+        (com.google.cloud.translate.v3beta1.GlossaryInputConfig) obj;
 
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 1:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -267,131 +300,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.GlossaryInputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.GlossaryInputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for glossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.GlossaryInputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.GlossaryInputConfig) com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); + com.google.cloud.translate.v3beta1.GlossaryInputConfig.class, + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; } @java.lang.Override @@ -426,8 +464,11 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.GlossaryInputConfig buildPartial() { - com.google.cloud.translate.v3beta1.GlossaryInputConfig result = new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.GlossaryInputConfig result = + new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -440,8 +481,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.GlossaryInputConfi private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -450,38 +490,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.GlossaryInput public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.GlossaryInputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.GlossaryInputConfig) other); } else { super.mergeFrom(other); return this; @@ -489,15 +530,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.GlossaryInputConfig other) { - if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.GlossaryInputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -525,19 +569,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -547,12 +591,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -565,8 +609,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -593,6 +642,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -600,6 +650,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -626,6 +678,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -643,6 +696,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -684,6 +739,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -723,6 +780,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -752,10 +811,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -771,6 +833,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -815,6 +879,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -846,6 +912,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -885,6 +953,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location of glossary data.
      * File format is determined based on the filename extension. API returns
@@ -913,14 +983,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -930,9 +1005,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -942,12 +1017,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.GlossaryInputConfig)
   private static final com.google.cloud.translate.v3beta1.GlossaryInputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.GlossaryInputConfig();
   }
@@ -956,27 +1031,27 @@ public static com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GlossaryInputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GlossaryInputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -991,6 +1066,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
similarity index 85%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
index cac321359c9f..02eb6c051740 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryInputConfigOrBuilder extends
+public interface GlossaryInputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GlossaryInputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -34,10 +52,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
@@ -64,10 +85,13 @@ public interface GlossaryInputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location of glossary data.
    * File format is determined based on the filename extension. API returns
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
similarity index 100%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
similarity index 79%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
index bb8954758e80..f81f9ca76e95 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
@@ -1,53 +1,82 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface GlossaryOrBuilder extends
+public interface GlossaryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Glossary)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the glossary. Glossary names have the form
    * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return Whether the languagePair field is set. */ boolean hasLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
* * .google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3; + * * @return The languagePair. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair getLanguagePair(); /** + * + * *
    * Used with unidirectional glossaries.
    * 
@@ -57,53 +86,73 @@ public interface GlossaryOrBuilder extends com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return Whether the languageCodesSet field is set. */ boolean hasLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * + * * @return The languageCodesSet. */ com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet getLanguageCodesSet(); /** + * + * *
    * Used with equivalent term set glossaries.
    * 
* - * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * .google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4; + * */ - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder(); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSetOrBuilder + getLanguageCodesSetOrBuilder(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
    * 
* * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5; + * * @return The inputConfig. */ com.google.cloud.translate.v3beta1.GlossaryInputConfig getInputConfig(); /** + * + * *
    * Required. Provides examples to build the glossary from.
    * Total glossary must not exceed 10M Unicode codepoints.
@@ -114,66 +163,91 @@ public interface GlossaryOrBuilder extends
   com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The number of entries defined in the glossary.
    * 
* * int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The entryCount. */ int getEntryCount(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** + * + * *
    * Output only. When CreateGlossary was called.
    * 
* - * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. When the glossary creation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java index 47d8b92b8df0..508d508c7c7d 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Input configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, + com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -67,26 +90,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int MIME_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -95,6 +123,7 @@ public int getNumber() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -103,14 +132,15 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -119,16 +149,15 @@ public java.lang.String getMimeType() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -138,6 +167,8 @@ public java.lang.String getMimeType() { public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -160,6 +191,7 @@ public java.lang.String getMimeType() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -167,6 +199,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -189,16 +223,19 @@ public boolean hasGcsSource() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.translate.v3beta1.GcsSource) source_; + return (com.google.cloud.translate.v3beta1.GcsSource) source_; } return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -225,12 +262,13 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 2) {
-       return (com.google.cloud.translate.v3beta1.GcsSource) source_;
+      return (com.google.cloud.translate.v3beta1.GcsSource) source_;
     }
     return com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -242,8 +280,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
     }
@@ -263,8 +300,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
     }
     if (sourceCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.translate.v3beta1.GcsSource) source_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,20 +312,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.InputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.InputConfig other = (com.google.cloud.translate.v3beta1.InputConfig) obj;
+    com.google.cloud.translate.v3beta1.InputConfig other =
+        (com.google.cloud.translate.v3beta1.InputConfig) obj;
 
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getGcsSource()
-            .equals(other.getGcsSource())) return false;
+        if (!getGcsSource().equals(other.getGcsSource())) return false;
         break;
       case 0:
       default:
@@ -318,132 +355,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.InputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.InputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3beta1.InputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Input configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.InputConfig) com.google.cloud.translate.v3beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.InputConfig.class, com.google.cloud.translate.v3beta1.InputConfig.Builder.class); + com.google.cloud.translate.v3beta1.InputConfig.class, + com.google.cloud.translate.v3beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.InputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; } @java.lang.Override @@ -479,8 +520,11 @@ public com.google.cloud.translate.v3beta1.InputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.InputConfig buildPartial() { - com.google.cloud.translate.v3beta1.InputConfig result = new com.google.cloud.translate.v3beta1.InputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.InputConfig result = + new com.google.cloud.translate.v3beta1.InputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -496,8 +540,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.InputConfig result private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -506,38 +549,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.InputConfig r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.InputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -552,13 +596,15 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.InputConfig other) { onChanged(); } switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -586,24 +632,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,12 +660,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -632,6 +679,8 @@ public Builder clearSource() { private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -640,13 +689,13 @@ public Builder clearSource() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -655,6 +704,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -663,15 +714,14 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -679,6 +729,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -687,18 +739,22 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -707,6 +763,7 @@ public Builder setMimeType(
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -716,6 +773,8 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -724,12 +783,14 @@ public Builder clearMimeType() {
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000001; @@ -738,8 +799,13 @@ public Builder setMimeTypeBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.translate.v3beta1.GcsSource, + com.google.cloud.translate.v3beta1.GcsSource.Builder, + com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -762,6 +828,7 @@ public Builder setMimeTypeBytes(
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -769,6 +836,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -791,6 +860,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -808,6 +878,8 @@ public com.google.cloud.translate.v3beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -845,6 +917,8 @@ public Builder setGcsSource(com.google.cloud.translate.v3beta1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -880,6 +954,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -905,10 +981,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 2 &&
-            source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.translate.v3beta1.GcsSource.newBuilder((com.google.cloud.translate.v3beta1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 2
+            && source_ != com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.translate.v3beta1.GcsSource.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -924,6 +1003,8 @@ public Builder mergeGcsSource(com.google.cloud.translate.v3beta1.GcsSource value
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -964,6 +1045,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -991,6 +1074,8 @@ public com.google.cloud.translate.v3beta1.GcsSource.Builder getGcsSourceBuilder(
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1026,6 +1111,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -1050,14 +1137,19 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
      * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsSource,
+            com.google.cloud.translate.v3beta1.GcsSource.Builder,
+            com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 2)) {
           source_ = com.google.cloud.translate.v3beta1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsSource, com.google.cloud.translate.v3beta1.GcsSource.Builder, com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsSource,
+                com.google.cloud.translate.v3beta1.GcsSource.Builder,
+                com.google.cloud.translate.v3beta1.GcsSourceOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -1067,9 +1159,9 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
       onChanged();
       return gcsSourceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1079,12 +1171,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.InputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.InputConfig)
   private static final com.google.cloud.translate.v3beta1.InputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.InputConfig();
   }
@@ -1093,27 +1185,27 @@ public static com.google.cloud.translate.v3beta1.InputConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public InputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public InputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1128,6 +1220,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
similarity index 86%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
index 327cbca77222..76cde0ffa5ee 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface InputConfigOrBuilder extends
+public interface InputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.InputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -16,10 +34,13 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. Can be "text/plain" or "text/html".
    * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -28,12 +49,14 @@ public interface InputConfigOrBuilder extends
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -56,10 +79,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -82,10 +108,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.translate.v3beta1.GcsSource getGcsSource(); /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
similarity index 75%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
index be23ee907b9d..2f4b0893b854 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * Request message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ -public final class ListGlossariesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) ListGlossariesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesRequest.newBuilder() to construct. private ListGlossariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,33 +45,40 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,12 +122,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -109,9 +139,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -144,16 +179,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -162,9 +196,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -185,6 +222,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -193,14 +231,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -221,16 +260,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -239,6 +277,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -277,8 +315,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -294,21 +331,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesRequest other = (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.translate.v3beta1.ListGlossariesRequest other = + (com.google.cloud.translate.v3beta1.ListGlossariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,131 +368,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.ListGlossariesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.cloud.translate.v3beta1.ListGlossariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, + com.google.cloud.translate.v3beta1.ListGlossariesRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; } @java.lang.Override @@ -492,8 +531,11 @@ public com.google.cloud.translate.v3beta1.ListGlossariesRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesRequest buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesRequest result = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.ListGlossariesRequest result = + new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -518,38 +560,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesRequest) other); } else { super.mergeFrom(other); return this; @@ -557,7 +600,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRequest other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -602,32 +646,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,22 +686,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -661,20 +715,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -682,28 +739,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -713,17 +781,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project from which to list all of the glossaries.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -731,14 +805,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -746,12 +823,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -763,12 +843,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Requested page size. The server may return fewer glossaries than
      * requested. If unspecified, the server picks an appropriate default.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -780,6 +863,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -788,13 +873,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -803,6 +888,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -811,15 +898,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -827,6 +913,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -835,18 +923,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -855,6 +947,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -864,6 +957,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A token identifying a page of results the server should return.
      * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -872,12 +967,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -887,6 +984,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -907,13 +1006,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -922,6 +1021,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -942,15 +1043,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -958,6 +1058,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -978,18 +1080,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1010,6 +1116,7 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1019,6 +1126,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1039,21 +1148,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1063,12 +1174,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesRequest) private static final com.google.cloud.translate.v3beta1.ListGlossariesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesRequest(); } @@ -1077,27 +1188,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1223,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java index 2e12d3cd5f33..be11c428891c 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java @@ -1,44 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesRequestOrBuilder extends +public interface ListGlossariesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project from which to list all of the glossaries.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Requested page size. The server may return fewer glossaries than
    * requested. If unspecified, the server picks an appropriate default.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -47,10 +77,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results the server should return.
    * Typically, this is the value of [ListGlossariesResponse.next_page_token]
@@ -59,12 +92,14 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -85,10 +120,13 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter specifying constraints of a list operation.
    * Specify the constraint by the format of "key=value", where key must be
@@ -109,8 +147,8 @@ public interface ListGlossariesRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java similarity index 72% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java index 860706a571b6..7c1f6a877695 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Response message for ListGlossaries.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ -public final class ListGlossariesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGlossariesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) ListGlossariesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGlossariesResponse.newBuilder() to construct. private ListGlossariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGlossariesResponse() { glossaries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } public static final int GLOSSARIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List glossaries_; /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -59,6 +81,8 @@ public java.util.List getGlossaries return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -66,11 +90,13 @@ public java.util.List getGlossaries * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGlossariesOrBuilderList() { return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -82,6 +108,8 @@ public int getGlossariesCount() { return glossaries_.size(); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -100,15 +130,17 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { return glossaries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -116,6 +148,7 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < glossaries_.size(); i++) { output.writeMessage(1, glossaries_.get(i)); } @@ -186,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < glossaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, glossaries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, glossaries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.ListGlossariesResponse other = (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; + com.google.cloud.translate.v3beta1.ListGlossariesResponse other = + (com.google.cloud.translate.v3beta1.ListGlossariesResponse) obj; - if (!getGlossariesList() - .equals(other.getGlossariesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getGlossariesList().equals(other.getGlossariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,131 +265,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.ListGlossariesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.ListGlossariesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for ListGlossaries.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.ListGlossariesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.cloud.translate.v3beta1.ListGlossariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); + com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, + com.google.cloud.translate.v3beta1.ListGlossariesResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.ListGlossariesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; } @java.lang.Override @@ -396,14 +432,18 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.ListGlossariesResponse buildPartial() { - com.google.cloud.translate.v3beta1.ListGlossariesResponse result = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); + com.google.cloud.translate.v3beta1.ListGlossariesResponse result = + new com.google.cloud.translate.v3beta1.ListGlossariesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.ListGlossariesResponse result) { if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.ListGlossariesResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.ListGlossariesResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse)other); + return mergeFrom((com.google.cloud.translate.v3beta1.ListGlossariesResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesResponse other) { - if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance()) + return this; if (glossariesBuilder_ == null) { if (!other.glossaries_.isEmpty()) { if (glossaries_.isEmpty()) { @@ -484,9 +526,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.ListGlossariesRespon glossariesBuilder_ = null; glossaries_ = other.glossaries_; bitField0_ = (bitField0_ & ~0x00000001); - glossariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGlossariesFieldBuilder() : null; + glossariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGlossariesFieldBuilder() + : null; } else { glossariesBuilder_.addAllMessages(other.glossaries_); } @@ -523,30 +566,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.Glossary m = - input.readMessage( - com.google.cloud.translate.v3beta1.Glossary.parser(), - extensionRegistry); - if (glossariesBuilder_ == null) { - ensureGlossariesIsMutable(); - glossaries_.add(m); - } else { - glossariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3beta1.Glossary m = + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); + if (glossariesBuilder_ == null) { + ensureGlossariesIsMutable(); + glossaries_.add(m); + } else { + glossariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +601,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List glossaries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGlossariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - glossaries_ = new java.util.ArrayList(glossaries_); + glossaries_ = + new java.util.ArrayList(glossaries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> glossariesBuilder_; + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + glossariesBuilder_; /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -585,6 +638,8 @@ public java.util.List getGlossaries } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -599,6 +654,8 @@ public int getGlossariesCount() { } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -613,14 +670,15 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder setGlossaries( - int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder setGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +692,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -652,6 +712,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -672,14 +734,15 @@ public Builder addGlossaries(com.google.cloud.translate.v3beta1.Glossary value) return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public Builder addGlossaries( - int index, com.google.cloud.translate.v3beta1.Glossary value) { + public Builder addGlossaries(int index, com.google.cloud.translate.v3beta1.Glossary value) { if (glossariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,6 +756,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -711,6 +776,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -729,6 +796,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -739,8 +808,7 @@ public Builder addAllGlossaries( java.lang.Iterable values) { if (glossariesBuilder_ == null) { ensureGlossariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, glossaries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaries_); onChanged(); } else { glossariesBuilder_.addAllMessages(values); @@ -748,6 +816,8 @@ public Builder addAllGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -765,6 +835,8 @@ public Builder clearGlossaries() { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -782,39 +854,44 @@ public Builder removeGlossaries(int index) { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder( - int index) { + public com.google.cloud.translate.v3beta1.Glossary.Builder getGlossariesBuilder(int index) { return getGlossariesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( - int index) { + public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index) { if (glossariesBuilder_ == null) { - return glossaries_.get(index); } else { + return glossaries_.get(index); + } else { return glossariesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesOrBuilderList() { + public java.util.List + getGlossariesOrBuilderList() { if (glossariesBuilder_ != null) { return glossariesBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +899,8 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -829,42 +908,48 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder() { - return getGlossariesFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + return getGlossariesFieldBuilder() + .addBuilder(com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( - int index) { - return getGlossariesFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); + public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(int index) { + return getGlossariesFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance()); } /** + * + * *
      * The list of glossaries for a project.
      * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - public java.util.List - getGlossariesBuilderList() { + public java.util.List + getGlossariesBuilderList() { return getGlossariesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder> + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder> getGlossariesFieldBuilder() { if (glossariesBuilder_ == null) { - glossariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Glossary, com.google.cloud.translate.v3beta1.Glossary.Builder, com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( - glossaries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + glossariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Glossary, + com.google.cloud.translate.v3beta1.Glossary.Builder, + com.google.cloud.translate.v3beta1.GlossaryOrBuilder>( + glossaries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); glossaries_ = null; } return glossariesBuilder_; @@ -872,6 +957,8 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -879,13 +966,13 @@ public com.google.cloud.translate.v3beta1.Glossary.Builder addGlossariesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +981,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -901,15 +990,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1005,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -924,18 +1014,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -943,6 +1037,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1047,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve a page of results. Pass this value in the
      * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -959,21 +1056,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1082,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.ListGlossariesResponse) private static final com.google.cloud.translate.v3beta1.ListGlossariesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.ListGlossariesResponse(); } @@ -997,27 +1096,27 @@ public static com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGlossariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGlossariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java index 4642bd830907..eba0cb31b8ad 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface ListGlossariesResponseOrBuilder extends +public interface ListGlossariesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.ListGlossariesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List - getGlossariesList(); + java.util.List getGlossariesList(); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -25,6 +44,8 @@ public interface ListGlossariesResponseOrBuilder extends */ com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index); /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -33,25 +54,30 @@ public interface ListGlossariesResponseOrBuilder extends */ int getGlossariesCount(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - java.util.List + java.util.List getGlossariesOrBuilderList(); /** + * + * *
    * The list of glossaries for a project.
    * 
* * repeated .google.cloud.translation.v3beta1.Glossary glossaries = 1; */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder( - int index); + com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(int index); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -59,10 +85,13 @@ com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve a page of results. Pass this value in the
    * [ListGlossariesRequest.page_token] field in the subsequent call to
@@ -70,8 +99,8 @@ com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java similarity index 88% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java index cf4bf3fa1c41..d50960132abc 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java @@ -1,56 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Output configuration for BatchTranslateText request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, + com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -66,24 +88,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -159,6 +185,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -166,6 +193,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -241,16 +270,19 @@ public boolean hasGcsDestination() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; + return (com.google.cloud.translate.v3beta1.GcsDestination) destination_; } return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -330,12 +362,13 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() {
   @java.lang.Override
   public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
+      return (com.google.cloud.translate.v3beta1.GcsDestination) destination_;
     }
     return com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -347,8 +380,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
@@ -362,8 +394,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (destinationCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.translate.v3beta1.GcsDestination) destination_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -373,18 +406,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.OutputConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.OutputConfig other = (com.google.cloud.translate.v3beta1.OutputConfig) obj;
+    com.google.cloud.translate.v3beta1.OutputConfig other =
+        (com.google.cloud.translate.v3beta1.OutputConfig) obj;
 
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 1:
-        if (!getGcsDestination()
-            .equals(other.getGcsDestination())) return false;
+        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
         break;
       case 0:
       default:
@@ -413,132 +446,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.OutputConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.OutputConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.translate.v3beta1.OutputConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Output configuration for BatchTranslateText request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.OutputConfig) com.google.cloud.translate.v3beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.OutputConfig.class, com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); + com.google.cloud.translate.v3beta1.OutputConfig.class, + com.google.cloud.translate.v3beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.OutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +589,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; } @java.lang.Override @@ -573,8 +610,11 @@ public com.google.cloud.translate.v3beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.translate.v3beta1.OutputConfig buildPartial() { - com.google.cloud.translate.v3beta1.OutputConfig result = new com.google.cloud.translate.v3beta1.OutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.OutputConfig result = + new com.google.cloud.translate.v3beta1.OutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -587,8 +627,7 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.OutputConfig resul private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -597,38 +636,39 @@ private void buildPartialOneofs(com.google.cloud.translate.v3beta1.OutputConfig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.OutputConfig) { - return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.translate.v3beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -636,15 +676,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.OutputConfig other) { - if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.OutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -672,19 +715,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -694,12 +737,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -712,8 +755,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.translate.v3beta1.GcsDestination, + com.google.cloud.translate.v3beta1.GcsDestination.Builder, + com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -789,6 +837,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -796,6 +845,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -871,6 +922,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -888,6 +940,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination() { } } /** + * + * *
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -978,6 +1032,8 @@ public Builder setGcsDestination(com.google.cloud.translate.v3beta1.GcsDestinati
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1066,6 +1122,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1144,10 +1202,14 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.translate.v3beta1.GcsDestination.newBuilder((com.google.cloud.translate.v3beta1.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_
+                != com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.translate.v3beta1.GcsDestination.newBuilder(
+                      (com.google.cloud.translate.v3beta1.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -1163,6 +1225,8 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3beta1.GcsDestina
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1256,6 +1320,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1336,6 +1402,8 @@ public com.google.cloud.translate.v3beta1.GcsDestination.Builder getGcsDestinati
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1424,6 +1492,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       }
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage destination for output content.
      * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -1501,14 +1571,19 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
      * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder> 
+            com.google.cloud.translate.v3beta1.GcsDestination,
+            com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+            com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.translate.v3beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.GcsDestination, com.google.cloud.translate.v3beta1.GcsDestination.Builder, com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.GcsDestination,
+                com.google.cloud.translate.v3beta1.GcsDestination.Builder,
+                com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.translate.v3beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
@@ -1518,9 +1593,9 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
       onChanged();
       return gcsDestinationBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1530,12 +1605,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.OutputConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.OutputConfig)
   private static final com.google.cloud.translate.v3beta1.OutputConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.OutputConfig();
   }
@@ -1544,27 +1619,27 @@ public static com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public OutputConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public OutputConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1579,6 +1654,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
similarity index 94%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
index 3c96e59668b6..f52b193db66f 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface OutputConfigOrBuilder extends
+public interface OutputConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.OutputConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -83,10 +101,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
@@ -162,10 +183,13 @@ public interface OutputConfigOrBuilder extends
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.translate.v3beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Google Cloud Storage destination for output content.
    * For every single input file (for example, gs://a/b/c.[extension]), we
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
index 94104c7b5560..bb7e028c6a16 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A single supported language response corresponds to information related
  * to one supported language.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
  */
-public final class SupportedLanguage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SupportedLanguage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguage)
     SupportedLanguageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SupportedLanguage.newBuilder() to construct.
   private SupportedLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SupportedLanguage() {
     languageCode_ = "";
     displayName_ = "";
@@ -27,28 +45,32 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+            com.google.cloud.translate.v3beta1.SupportedLanguage.class,
+            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object languageCode_ = "";
   /**
+   *
+   *
    * 
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -65,14 +88,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -81,16 +105,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -99,15 +122,19 @@ public java.lang.String getLanguageCode() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -116,30 +143,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -150,11 +177,14 @@ public java.lang.String getDisplayName() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_ = false; /** + * + * *
    * Can be used as source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -165,11 +195,14 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_ = false; /** + * + * *
    * Can be used as target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -178,6 +211,7 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +223,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -219,12 +252,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (supportSource_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, supportSource_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportSource_); } if (supportTarget_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, supportTarget_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportTarget_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +265,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguage)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.SupportedLanguage other = (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; + com.google.cloud.translate.v3beta1.SupportedLanguage other = + (com.google.cloud.translate.v3beta1.SupportedLanguage) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getSupportSource() - != other.getSupportSource()) return false; - if (getSupportTarget() - != other.getSupportTarget()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getSupportSource() != other.getSupportSource()) return false; + if (getSupportTarget() != other.getSupportTarget()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,109 +293,112 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + SUPPORT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportSource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportSource()); hash = (37 * hash) + SUPPORT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSupportTarget()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportTarget()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.SupportedLanguage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.SupportedLanguage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single supported language response corresponds to information related
    * to one supported language.
@@ -375,33 +406,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguage)
       com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.SupportedLanguage.class, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
+              com.google.cloud.translate.v3beta1.SupportedLanguage.class,
+              com.google.cloud.translate.v3beta1.SupportedLanguage.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.SupportedLanguage.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor;
     }
 
     @java.lang.Override
@@ -435,8 +465,11 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.SupportedLanguage buildPartial() {
-      com.google.cloud.translate.v3beta1.SupportedLanguage result = new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.SupportedLanguage result =
+          new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -461,38 +494,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguage
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguage) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -500,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguage other) {
-      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance())
+        return this;
       if (!other.getLanguageCode().isEmpty()) {
         languageCode_ = other.languageCode_;
         bitField0_ |= 0x00000001;
@@ -543,32 +578,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              supportSource_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              supportTarget_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                supportSource_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                supportTarget_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -578,10 +618,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object languageCode_ = "";
     /**
+     *
+     *
      * 
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -590,13 +633,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -605,6 +648,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -613,15 +658,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -629,6 +673,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -637,18 +683,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -657,6 +707,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -666,6 +717,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -674,12 +727,14 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000001; @@ -689,19 +744,21 @@ public Builder setLanguageCodeBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -710,21 +767,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -732,30 +790,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -765,18 +830,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human readable name of the language localized in the display language
      * specified in the request.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -784,13 +853,16 @@ public Builder setDisplayNameBytes( return this; } - private boolean supportSource_ ; + private boolean supportSource_; /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -798,11 +870,14 @@ public boolean getSupportSource() { return supportSource_; } /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @param value The supportSource to set. * @return This builder for chaining. */ @@ -814,11 +889,14 @@ public Builder setSupportSource(boolean value) { return this; } /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return This builder for chaining. */ public Builder clearSupportSource() { @@ -828,13 +906,16 @@ public Builder clearSupportSource() { return this; } - private boolean supportTarget_ ; + private boolean supportTarget_; /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -842,11 +923,14 @@ public boolean getSupportTarget() { return supportTarget_; } /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @param value The supportTarget to set. * @return This builder for chaining. */ @@ -858,11 +942,14 @@ public Builder setSupportTarget(boolean value) { return this; } /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return This builder for chaining. */ public Builder clearSupportTarget() { @@ -871,9 +958,9 @@ public Builder clearSupportTarget() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguage) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguage) private static final com.google.cloud.translate.v3beta1.SupportedLanguage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguage(); } @@ -897,27 +984,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SupportedLanguage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SupportedLanguage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,6 +1019,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java similarity index 69% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java index 58290ccfb950..f514bf7fb8b8 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface SupportedLanguageOrBuilder extends +public interface SupportedLanguageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -16,10 +34,13 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Supported language code, generally consisting of its ISO 639-1
    * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -28,49 +49,60 @@ public interface SupportedLanguageOrBuilder extends
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human readable name of the language localized in the display language
    * specified in the request.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Can be used as source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ boolean getSupportSource(); /** + * + * *
    * Can be used as target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ boolean getSupportTarget(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java similarity index 74% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java index 2b25540df510..458b7e8bbb64 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The response message for discovering supported languages.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ -public final class SupportedLanguages extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SupportedLanguages extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.SupportedLanguages) SupportedLanguagesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SupportedLanguages.newBuilder() to construct. private SupportedLanguages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SupportedLanguages() { languages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SupportedLanguages(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, + com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } public static final int LANGUAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List languages_; /** + * + * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -59,6 +81,8 @@ public java.util.List getL
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -67,11 +91,13 @@ public java.util.List getL
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLanguagesOrBuilderList() {
     return languages_;
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -84,6 +110,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -96,6 +124,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
     return languages_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -110,6 +140,7 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -121,8 +152,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < languages_.size(); i++) {
       output.writeMessage(1, languages_.get(i));
     }
@@ -136,8 +166,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < languages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, languages_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, languages_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -147,15 +176,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.SupportedLanguages)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.SupportedLanguages other = (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
+    com.google.cloud.translate.v3beta1.SupportedLanguages other =
+        (com.google.cloud.translate.v3beta1.SupportedLanguages) obj;
 
-    if (!getLanguagesList()
-        .equals(other.getLanguagesList())) return false;
+    if (!getLanguagesList().equals(other.getLanguagesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -177,131 +206,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.SupportedLanguages parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.SupportedLanguages prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response message for discovering supported languages.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.SupportedLanguages} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.SupportedLanguages) com.google.cloud.translate.v3beta1.SupportedLanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.SupportedLanguages.class, com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); + com.google.cloud.translate.v3beta1.SupportedLanguages.class, + com.google.cloud.translate.v3beta1.SupportedLanguages.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.SupportedLanguages.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; } @java.lang.Override @@ -338,14 +372,18 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages build() { @java.lang.Override public com.google.cloud.translate.v3beta1.SupportedLanguages buildPartial() { - com.google.cloud.translate.v3beta1.SupportedLanguages result = new com.google.cloud.translate.v3beta1.SupportedLanguages(this); + com.google.cloud.translate.v3beta1.SupportedLanguages result = + new com.google.cloud.translate.v3beta1.SupportedLanguages(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.SupportedLanguages result) { + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.SupportedLanguages result) { if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -365,38 +403,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.SupportedLanguages public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.SupportedLanguages) { - return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages)other); + return mergeFrom((com.google.cloud.translate.v3beta1.SupportedLanguages) other); } else { super.mergeFrom(other); return this; @@ -404,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages other) { - if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance()) + return this; if (languagesBuilder_ == null) { if (!other.languages_.isEmpty()) { if (languages_.isEmpty()) { @@ -423,9 +463,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.SupportedLanguages o languagesBuilder_ = null; languages_ = other.languages_; bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; + languagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLanguagesFieldBuilder() + : null; } else { languagesBuilder_.addAllMessages(other.languages_); } @@ -457,25 +498,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.SupportedLanguage m = - input.readMessage( - com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), - extensionRegistry); - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(m); - } else { - languagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.translate.v3beta1.SupportedLanguage m = + input.readMessage( + com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), + extensionRegistry); + if (languagesBuilder_ == null) { + ensureLanguagesIsMutable(); + languages_.add(m); + } else { + languagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,21 +528,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List languages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLanguagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(languages_); + languages_ = + new java.util.ArrayList( + languages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> languagesBuilder_; + com.google.cloud.translate.v3beta1.SupportedLanguage, + com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, + com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> + languagesBuilder_; /** + * + * *
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -515,6 +567,8 @@ public java.util.List getL
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -530,6 +584,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -545,6 +601,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int ind
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -567,6 +625,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -586,6 +646,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -607,6 +669,8 @@ public Builder addLanguages(com.google.cloud.translate.v3beta1.SupportedLanguage
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -629,6 +693,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -648,6 +714,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -667,6 +735,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -678,8 +748,7 @@ public Builder addAllLanguages(
         java.lang.Iterable values) {
       if (languagesBuilder_ == null) {
         ensureLanguagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, languages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languages_);
         onChanged();
       } else {
         languagesBuilder_.addAllMessages(values);
@@ -687,6 +756,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -705,6 +776,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -723,6 +796,8 @@ public Builder removeLanguages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -735,6 +810,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
       return getLanguagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -745,11 +822,14 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder getLanguages
     public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
         int index) {
       if (languagesBuilder_ == null) {
-        return languages_.get(index);  } else {
+        return languages_.get(index);
+      } else {
         return languagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -757,8 +837,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesOrBuilderList() {
+    public java.util.List
+        getLanguagesOrBuilderList() {
       if (languagesBuilder_ != null) {
         return languagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -766,6 +846,8 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -774,10 +856,12 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder() {
-      return getLanguagesFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -787,10 +871,13 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      */
     public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguagesBuilder(
         int index) {
-      return getLanguagesFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
+      return getLanguagesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.translate.v3beta1.SupportedLanguage.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -798,27 +885,30 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage.Builder addLanguages
      *
      * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
      */
-    public java.util.List 
-         getLanguagesBuilderList() {
+    public java.util.List
+        getLanguagesBuilderList() {
       return getLanguagesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> 
+            com.google.cloud.translate.v3beta1.SupportedLanguage,
+            com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
+            com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>
         getLanguagesFieldBuilder() {
       if (languagesBuilder_ == null) {
-        languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.SupportedLanguage, com.google.cloud.translate.v3beta1.SupportedLanguage.Builder, com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
-                languages_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        languagesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.SupportedLanguage,
+                com.google.cloud.translate.v3beta1.SupportedLanguage.Builder,
+                com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder>(
+                languages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         languages_ = null;
       }
       return languagesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -828,12 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.SupportedLanguages)
   private static final com.google.cloud.translate.v3beta1.SupportedLanguages DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.SupportedLanguages();
   }
@@ -842,27 +932,27 @@ public static com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SupportedLanguages parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SupportedLanguages parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -877,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
index e457d1adcc8a..c3e2f4007068 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface SupportedLanguagesOrBuilder extends
+public interface SupportedLanguagesOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.SupportedLanguages)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -15,9 +33,10 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List 
-      getLanguagesList();
+  java.util.List getLanguagesList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -27,6 +46,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   com.google.cloud.translate.v3beta1.SupportedLanguage getLanguages(int index);
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -36,6 +57,8 @@ public interface SupportedLanguagesOrBuilder extends
    */
   int getLanguagesCount();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -43,9 +66,11 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  java.util.List 
+  java.util.List
       getLanguagesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -53,6 +78,5 @@ public interface SupportedLanguagesOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
    */
-  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(
-      int index);
+  com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguagesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
similarity index 69%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
index 046270e794d9..e1d973149b45 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A document translation request.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ -public final class TranslateDocumentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) TranslateDocumentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentRequest.newBuilder() to construct. private TranslateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentRequest() { parent_ = ""; sourceLanguageCode_ = ""; @@ -28,40 +46,43 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -77,6 +98,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -85,14 +107,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -108,16 +131,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -126,9 +148,12 @@ public java.lang.String getParent() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -139,6 +164,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -147,14 +173,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -165,16 +192,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -183,15 +209,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -200,30 +230,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -234,11 +264,16 @@ public java.lang.String getTargetLanguageCode() { public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ @java.lang.Override @@ -246,32 +281,48 @@ public boolean hasDocumentInputConfig() { return documentInputConfig_ != null; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { - return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -280,7 +331,10 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocume
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -288,6 +342,8 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -296,14 +352,21 @@ public boolean hasDocumentOutputConfig() {
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -312,17 +375,25 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -340,6 +411,7 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -348,14 +420,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -373,16 +446,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -393,13 +465,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -407,60 +484,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -476,20 +569,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -509,6 +603,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -524,17 +620,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -550,11 +648,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -562,6 +660,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -573,8 +672,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -596,12 +694,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (glossaryConfig_ != null) {
       output.writeMessage(7, getGlossaryConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        8);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8);
     getUnknownFields().writeTo(output);
   }
 
@@ -621,29 +715,27 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_);
     }
     if (documentInputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getDocumentInputConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentInputConfig());
     }
     if (documentOutputConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getDocumentOutputConfig());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentOutputConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getGlossaryConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(8, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -653,38 +745,31 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other = (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
+    com.google.cloud.translate.v3beta1.TranslateDocumentRequest other =
+        (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode()
-        .equals(other.getTargetLanguageCode())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
     if (hasDocumentInputConfig() != other.hasDocumentInputConfig()) return false;
     if (hasDocumentInputConfig()) {
-      if (!getDocumentInputConfig()
-          .equals(other.getDocumentInputConfig())) return false;
+      if (!getDocumentInputConfig().equals(other.getDocumentInputConfig())) return false;
     }
     if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false;
     if (hasDocumentOutputConfig()) {
-      if (!getDocumentOutputConfig()
-          .equals(other.getDocumentOutputConfig())) return false;
+      if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false;
     }
-    if (!getModel()
-        .equals(other.getModel())) return false;
+    if (!getModel().equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig()
-          .equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -726,153 +811,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.TranslateDocumentRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A document translation request.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentRequest) com.google.cloud.translate.v3beta1.TranslateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, + com.google.cloud.translate.v3beta1.TranslateDocumentRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -901,9 +989,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; } @java.lang.Override @@ -922,8 +1010,11 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = + new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -940,22 +1031,23 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR result.targetLanguageCode_ = targetLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentInputConfig_ = documentInputConfigBuilder_ == null - ? documentInputConfig_ - : documentInputConfigBuilder_.build(); + result.documentInputConfig_ = + documentInputConfigBuilder_ == null + ? documentInputConfig_ + : documentInputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentOutputConfig_ = documentOutputConfigBuilder_ == null - ? documentOutputConfig_ - : documentOutputConfigBuilder_.build(); + result.documentOutputConfig_ = + documentOutputConfigBuilder_ == null + ? documentOutputConfig_ + : documentOutputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -967,38 +1059,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) other); } else { super.mergeFrom(other); return this; @@ -1006,7 +1099,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -1036,8 +1130,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentReq if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1065,62 +1158,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getDocumentInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getDocumentOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDocumentInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getDocumentOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1130,10 +1230,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1149,13 +1252,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1164,6 +1267,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1179,15 +1284,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1195,6 +1299,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1210,18 +1316,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1237,6 +1347,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1246,6 +1357,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Location to make a regional call.
      *
@@ -1261,12 +1374,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1276,6 +1391,8 @@ public Builder setParentBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1286,13 +1403,13 @@ public Builder setParentBytes(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1301,6 +1418,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1311,15 +1430,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1327,6 +1445,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1337,18 +1457,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1359,6 +1483,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1368,6 +1493,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input document if known, for
      * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -1378,12 +1505,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000002; @@ -1393,19 +1522,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1414,21 +1545,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1436,30 +1568,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1469,18 +1608,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * document, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1490,41 +1633,61 @@ public Builder setTargetLanguageCodeBytes( private com.google.cloud.translate.v3beta1.DocumentInputConfig documentInputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> documentInputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentInputConfig, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> + documentInputConfigBuilder_; /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ public boolean hasDocumentInputConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ public com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig() { if (documentInputConfigBuilder_ == null) { - return documentInputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } else { return documentInputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder setDocumentInputConfig( + com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1538,11 +1701,15 @@ public Builder setDocumentInputConfig(com.google.cloud.translate.v3beta1.Documen return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDocumentInputConfig( com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder builderForValue) { @@ -1556,17 +1723,23 @@ public Builder setDocumentInputConfig( return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3beta1.DocumentInputConfig value) { + public Builder mergeDocumentInputConfig( + com.google.cloud.translate.v3beta1.DocumentInputConfig value) { if (documentInputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - documentInputConfig_ != null && - documentInputConfig_ != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && documentInputConfig_ != null + && documentInputConfig_ + != com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance()) { getDocumentInputConfigBuilder().mergeFrom(value); } else { documentInputConfig_ = value; @@ -1579,11 +1752,15 @@ public Builder mergeDocumentInputConfig(com.google.cloud.translate.v3beta1.Docum return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDocumentInputConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1596,48 +1773,66 @@ public Builder clearDocumentInputConfig() { return this; } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder getDocumentInputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder + getDocumentInputConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDocumentInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { if (documentInputConfigBuilder_ != null) { return documentInputConfigBuilder_.getMessageOrBuilder(); } else { - return documentInputConfig_ == null ? - com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() : documentInputConfig_; + return documentInputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentInputConfig.getDefaultInstance() + : documentInputConfig_; } } /** + * + * *
      * Required. Input configurations.
      * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentInputConfig, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder> getDocumentInputConfigFieldBuilder() { if (documentInputConfigBuilder_ == null) { - documentInputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentInputConfig, com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( - getDocumentInputConfig(), - getParentForChildren(), - isClean()); + documentInputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentInputConfig, + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder>( + getDocumentInputConfig(), getParentForChildren(), isClean()); documentInputConfig_ = null; } return documentInputConfigBuilder_; @@ -1645,8 +1840,13 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocume private com.google.cloud.translate.v3beta1.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; + com.google.cloud.translate.v3beta1.DocumentOutputConfig, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> + documentOutputConfigBuilder_; /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1655,13 +1855,18 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocume
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1670,17 +1875,24 @@ public boolean hasDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1689,9 +1901,12 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutput
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig( + com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1705,6 +1920,8 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docume return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1713,7 +1930,9 @@ public Builder setDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docume
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDocumentOutputConfig( com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder builderForValue) { @@ -1727,6 +1946,8 @@ public Builder setDocumentOutputConfig( return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1735,13 +1956,17 @@ public Builder setDocumentOutputConfig(
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig( + com.google.cloud.translate.v3beta1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - documentOutputConfig_ != null && - documentOutputConfig_ != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && documentOutputConfig_ != null + && documentOutputConfig_ + != com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance()) { getDocumentOutputConfigBuilder().mergeFrom(value); } else { documentOutputConfig_ = value; @@ -1754,6 +1979,8 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docu return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1762,7 +1989,9 @@ public Builder mergeDocumentOutputConfig(com.google.cloud.translate.v3beta1.Docu
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDocumentOutputConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1775,6 +2004,8 @@ public Builder clearDocumentOutputConfig() { return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1783,14 +2014,19 @@ public Builder clearDocumentOutputConfig() {
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder + getDocumentOutputConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1799,17 +2035,23 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder getDocume
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null ? - com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; + return documentOutputConfig_ == null + ? com.google.cloud.translate.v3beta1.DocumentOutputConfig.getDefaultInstance() + : documentOutputConfig_; } } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1818,17 +2060,22 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum
      * the same as the input file's mime type.
      * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> + com.google.cloud.translate.v3beta1.DocumentOutputConfig, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentOutputConfig, com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), - getParentForChildren(), - isClean()); + documentOutputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentOutputConfig, + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder, + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), getParentForChildren(), isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; @@ -1836,6 +2083,8 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1853,13 +2102,13 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1868,6 +2117,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1885,15 +2136,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1901,6 +2151,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1918,18 +2170,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1947,6 +2203,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1956,6 +2213,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1973,12 +2232,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -1988,47 +2249,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2042,13 +2323,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2062,19 +2347,26 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2087,13 +2379,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2106,74 +2402,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be within the same
      * region (have the same location-id) as the model, otherwise an
      * INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2182,10 +2494,13 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder g onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2201,20 +2516,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2234,6 +2550,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2249,17 +2567,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2275,23 +2595,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2306,23 +2628,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2337,17 +2658,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2362,16 +2686,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2381,12 +2703,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateDocumentRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentRequest();
   }
@@ -2395,27 +2717,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateDocumentRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateDocumentRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2430,6 +2752,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
index 6e25f8caa4f9..0d7adac307e9 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateDocumentRequestOrBuilder extends
+public interface TranslateDocumentRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Location to make a regional call.
    *
@@ -23,10 +41,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Location to make a regional call.
    *
@@ -42,12 +63,14 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -58,10 +81,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The BCP-47 language code of the input document if known, for
    * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -72,61 +98,82 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * document, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the documentInputConfig field is set. */ boolean hasDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The documentInputConfig. */ com.google.cloud.translate.v3beta1.DocumentInputConfig getDocumentInputConfig(); /** + * + * *
    * Required. Input configurations.
    * 
* - * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.translation.v3beta1.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder getDocumentInputConfigOrBuilder(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -135,11 +182,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -148,11 +200,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The documentOutputConfig. */ com.google.cloud.translate.v3beta1.DocumentOutputConfig getDocumentOutputConfig(); /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -161,11 +218,16 @@ public interface TranslateDocumentRequestOrBuilder extends
    * the same as the input file's mime type.
    * 
* - * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -183,10 +245,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -204,45 +269,62 @@ public interface TranslateDocumentRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be within the same
    * region (have the same location-id) as the model, otherwise an
    * INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -259,6 +341,8 @@ public interface TranslateDocumentRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -273,15 +357,13 @@ public interface TranslateDocumentRequestOrBuilder extends
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -296,9 +378,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -314,11 +397,13 @@ boolean containsLabels(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -333,6 +418,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
similarity index 67%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
index e7e13e27cd26..08635eb4923a 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
@@ -1,56 +1,78 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A translated document response message.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ -public final class TranslateDocumentResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateDocumentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) TranslateDocumentResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateDocumentResponse.newBuilder() to construct. private TranslateDocumentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateDocumentResponse() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER = 1; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ @java.lang.Override @@ -58,18 +80,25 @@ public boolean hasDocumentTranslation() { return documentTranslation_ != null; } /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { - return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } /** + * + * *
    * Translated document.
    * 
@@ -77,20 +106,27 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTransla * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { - return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER = 2; private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ @java.lang.Override @@ -98,37 +134,52 @@ public boolean hasGlossaryDocumentTranslation() { return glossaryDocumentTranslation_ != null; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ @java.lang.Override public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -141,6 +192,7 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossa
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -149,14 +201,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -169,16 +222,15 @@ public java.lang.String getModel() {
    * 
* * string model = 3; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -189,11 +241,14 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -201,18 +256,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -220,11 +282,15 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,8 +302,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (documentTranslation_ != null) { output.writeMessage(1, getDocumentTranslation()); } @@ -260,19 +325,18 @@ public int getSerializedSize() { size = 0; if (documentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDocumentTranslation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocumentTranslation()); } if (glossaryDocumentTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGlossaryDocumentTranslation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getGlossaryDocumentTranslation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlossaryConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,29 +346,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; + com.google.cloud.translate.v3beta1.TranslateDocumentResponse other = + (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) obj; if (hasDocumentTranslation() != other.hasDocumentTranslation()) return false; if (hasDocumentTranslation()) { - if (!getDocumentTranslation() - .equals(other.getDocumentTranslation())) return false; + if (!getDocumentTranslation().equals(other.getDocumentTranslation())) return false; } if (hasGlossaryDocumentTranslation() != other.hasGlossaryDocumentTranslation()) return false; if (hasGlossaryDocumentTranslation()) { - if (!getGlossaryDocumentTranslation() - .equals(other.getGlossaryDocumentTranslation())) return false; + if (!getGlossaryDocumentTranslation().equals(other.getGlossaryDocumentTranslation())) + return false; } - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -337,131 +399,136 @@ public int hashCode() { } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A translated document response message.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateDocumentResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.cloud.translate.v3beta1.TranslateDocumentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, + com.google.cloud.translate.v3beta1.TranslateDocumentResponse.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateDocumentResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -486,13 +553,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateDocumentResponse + getDefaultInstanceForType() { return com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance(); } @@ -507,31 +575,36 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateDocumentResponse buildPartial() { - com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = + new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { + private void buildPartial0( + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.documentTranslation_ = documentTranslationBuilder_ == null - ? documentTranslation_ - : documentTranslationBuilder_.build(); + result.documentTranslation_ = + documentTranslationBuilder_ == null + ? documentTranslation_ + : documentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.glossaryDocumentTranslation_ = glossaryDocumentTranslationBuilder_ == null - ? glossaryDocumentTranslation_ - : glossaryDocumentTranslationBuilder_.build(); + result.glossaryDocumentTranslation_ = + glossaryDocumentTranslationBuilder_ == null + ? glossaryDocumentTranslation_ + : glossaryDocumentTranslationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +612,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateDocumentR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateDocumentResponse) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse)other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateDocumentResponse) other); } else { super.mergeFrom(other); return this; @@ -578,7 +652,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentResponse other) { - if (other == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance()) + return this; if (other.hasDocumentTranslation()) { mergeDocumentTranslation(other.getDocumentTranslation()); } @@ -619,38 +695,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGlossaryDocumentTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getGlossaryDocumentTranslationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,45 +737,60 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.translate.v3beta1.DocumentTranslation documentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> documentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + documentTranslationBuilder_; /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ public boolean hasDocumentTranslation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation() { if (documentTranslationBuilder_ == null) { - return documentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } else { return documentTranslationBuilder_.getMessage(); } } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,6 +804,8 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.Documen return this; } /** + * + * *
      * Translated document.
      * 
@@ -730,17 +824,21 @@ public Builder setDocumentTranslation( return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (documentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - documentTranslation_ != null && - documentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && documentTranslation_ != null + && documentTranslation_ + != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getDocumentTranslationBuilder().mergeFrom(value); } else { documentTranslation_ = value; @@ -753,6 +851,8 @@ public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.Docum return this; } /** + * + * *
      * Translated document.
      * 
@@ -770,33 +870,42 @@ public Builder clearDocumentTranslation() { return this; } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder + getDocumentTranslationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * Translated document.
      * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { if (documentTranslationBuilder_ != null) { return documentTranslationBuilder_.getMessageOrBuilder(); } else { - return documentTranslation_ == null ? - com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : documentTranslation_; + return documentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : documentTranslation_; } } /** + * + * *
      * Translated document.
      * 
@@ -804,14 +913,17 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocume * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getDocumentTranslationFieldBuilder() { if (documentTranslationBuilder_ == null) { - documentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getDocumentTranslation(), - getParentForChildren(), - isClean()); + documentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getDocumentTranslation(), getParentForChildren(), isClean()); documentTranslation_ = null; } return documentTranslationBuilder_; @@ -819,47 +931,67 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocume private com.google.cloud.translate.v3beta1.DocumentTranslation glossaryDocumentTranslation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> glossaryDocumentTranslationBuilder_; + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + glossaryDocumentTranslationBuilder_; /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ public boolean hasGlossaryDocumentTranslation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ public com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation() { if (glossaryDocumentTranslationBuilder_ == null) { - return glossaryDocumentTranslation_ == null ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } else { return glossaryDocumentTranslationBuilder_.getMessage(); } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder setGlossaryDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -873,13 +1005,17 @@ public Builder setGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1 return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ public Builder setGlossaryDocumentTranslation( com.google.cloud.translate.v3beta1.DocumentTranslation.Builder builderForValue) { @@ -893,19 +1029,25 @@ public Builder setGlossaryDocumentTranslation( return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3beta1.DocumentTranslation value) { + public Builder mergeGlossaryDocumentTranslation( + com.google.cloud.translate.v3beta1.DocumentTranslation value) { if (glossaryDocumentTranslationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - glossaryDocumentTranslation_ != null && - glossaryDocumentTranslation_ != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && glossaryDocumentTranslation_ != null + && glossaryDocumentTranslation_ + != com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance()) { getGlossaryDocumentTranslationBuilder().mergeFrom(value); } else { glossaryDocumentTranslation_ = value; @@ -918,13 +1060,17 @@ public Builder mergeGlossaryDocumentTranslation(com.google.cloud.translate.v3bet return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ public Builder clearGlossaryDocumentTranslation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -937,54 +1083,72 @@ public Builder clearGlossaryDocumentTranslation() { return this; } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslation.Builder + getGlossaryDocumentTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGlossaryDocumentTranslationFieldBuilder().getBuilder(); } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { if (glossaryDocumentTranslationBuilder_ != null) { return glossaryDocumentTranslationBuilder_.getMessageOrBuilder(); } else { - return glossaryDocumentTranslation_ == null ? - com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() : glossaryDocumentTranslation_; + return glossaryDocumentTranslation_ == null + ? com.google.cloud.translate.v3beta1.DocumentTranslation.getDefaultInstance() + : glossaryDocumentTranslation_; } } /** + * + * *
      * The document's translation output if a glossary is provided in the request.
      * This can be the same as [TranslateDocumentResponse.document_translation]
      * if no glossary terms apply.
      * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder> getGlossaryDocumentTranslationFieldBuilder() { if (glossaryDocumentTranslationBuilder_ == null) { - glossaryDocumentTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.DocumentTranslation, com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( - getGlossaryDocumentTranslation(), - getParentForChildren(), - isClean()); + glossaryDocumentTranslationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.DocumentTranslation, + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder, + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder>( + getGlossaryDocumentTranslation(), getParentForChildren(), isClean()); glossaryDocumentTranslation_ = null; } return glossaryDocumentTranslationBuilder_; @@ -992,6 +1156,8 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossa private java.lang.Object model_ = ""; /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1004,13 +1170,13 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossa
      * 
* * string model = 3; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1019,6 +1185,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1031,15 +1199,14 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1047,6 +1214,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1059,18 +1228,22 @@ public java.lang.String getModel() {
      * 
* * string model = 3; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1083,6 +1256,7 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1092,6 +1266,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1104,12 +1280,14 @@ public Builder clearModel() {
      * 
* * string model = 3; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000004; @@ -1119,41 +1297,58 @@ public Builder setModelBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1167,11 +1362,14 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1185,17 +1383,23 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1208,11 +1412,14 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1225,55 +1432,70 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,12 +1505,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateDocumentResponse) - private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.TranslateDocumentResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(); } @@ -1297,27 +1520,27 @@ public static com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateDocumentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateDocumentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,6 +1555,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java index a4631438ec4c..f107a6051686 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateDocumentResponseOrBuilder extends +public interface TranslateDocumentResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateDocumentResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return Whether the documentTranslation field is set. */ boolean hasDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
* * .google.cloud.translation.v3beta1.DocumentTranslation document_translation = 1; + * * @return The documentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getDocumentTranslation(); /** + * + * *
    * Translated document.
    * 
@@ -35,39 +59,53 @@ public interface TranslateDocumentResponseOrBuilder extends com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return Whether the glossaryDocumentTranslation field is set. */ boolean hasGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * + * * @return The glossaryDocumentTranslation. */ com.google.cloud.translate.v3beta1.DocumentTranslation getGlossaryDocumentTranslation(); /** + * + * *
    * The document's translation output if a glossary is provided in the request.
    * This can be the same as [TranslateDocumentResponse.document_translation]
    * if no glossary terms apply.
    * 
* - * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * .google.cloud.translation.v3beta1.DocumentTranslation glossary_document_translation = 2; + * */ - com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder(); + com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -80,10 +118,13 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -96,35 +137,44 @@ public interface TranslateDocumentResponseOrBuilder extends
    * 
* * string model = 3; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 4; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); } diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java similarity index 67% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java index a99f5402f33e..78be4e17b6f2 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * Configures which glossary should be used for a specific target language,
  * and defines options for applying that glossary.
@@ -11,49 +28,55 @@
  *
  * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
  */
-public final class TranslateTextGlossaryConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranslateTextGlossaryConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
     TranslateTextGlossaryConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextGlossaryConfig.newBuilder() to construct.
   private TranslateTextGlossaryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextGlossaryConfig() {
     glossary_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextGlossaryConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
+            com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
   }
 
   public static final int GLOSSARY_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object glossary_ = "";
   /**
+   *
+   *
    * 
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ @java.lang.Override @@ -62,30 +85,30 @@ public java.lang.String getGlossary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; } } /** + * + * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ @java.lang.Override - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -96,12 +119,15 @@ public java.lang.String getGlossary() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; private boolean ignoreCase_ = false; /** + * + * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -110,6 +136,7 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(glossary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, glossary_); } @@ -142,8 +168,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, glossary_); } if (ignoreCase_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, ignoreCase_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -153,17 +178,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other = + (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) obj; - if (!getGlossary() - .equals(other.getGlossary())) return false; - if (getIgnoreCase() - != other.getIgnoreCase()) return false; + if (!getGlossary().equals(other.getGlossary())) return false; + if (getIgnoreCase() != other.getIgnoreCase()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,106 +202,111 @@ public int hashCode() { hash = (37 * hash) + GLOSSARY_FIELD_NUMBER; hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnoreCase()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configures which glossary should be used for a specific target language,
    * and defines options for applying that glossary.
@@ -285,33 +314,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextGlossaryConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig)
       com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.class,
+              com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -322,13 +350,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() {
+    public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance();
     }
 
@@ -343,13 +372,17 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result =
+          new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
+    private void buildPartial0(
+        com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.glossary_ = glossary_;
@@ -363,38 +396,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextGloss
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -402,7 +436,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig other) {
-      if (other == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance())
+        return this;
       if (!other.getGlossary().isEmpty()) {
         glossary_ = other.glossary_;
         bitField0_ |= 0x00000001;
@@ -437,22 +473,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              glossary_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              ignoreCase_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                glossary_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                ignoreCase_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -462,23 +501,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object glossary_ = "";
     /**
+     *
+     *
      * 
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ public java.lang.String getGlossary() { java.lang.Object ref = glossary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); glossary_ = s; return s; @@ -487,21 +529,22 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - public com.google.protobuf.ByteString - getGlossaryBytes() { + public com.google.protobuf.ByteString getGlossaryBytes() { java.lang.Object ref = glossary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); glossary_ = b; return b; } else { @@ -509,30 +552,37 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The glossary to set. * @return This builder for chaining. */ - public Builder setGlossary( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } glossary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGlossary() { @@ -542,18 +592,22 @@ public Builder clearGlossary() { return this; } /** + * + * *
      * Required. Specifies the glossary used for this translation. Use
      * this format: projects/*/locations/*/glossaries/*
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); glossary_ = value; bitField0_ |= 0x00000001; @@ -561,14 +615,17 @@ public Builder setGlossaryBytes( return this; } - private boolean ignoreCase_ ; + private boolean ignoreCase_; /** + * + * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ @java.lang.Override @@ -576,12 +633,15 @@ public boolean getIgnoreCase() { return ignoreCase_; } /** + * + * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ignoreCase to set. * @return This builder for chaining. */ @@ -593,12 +653,15 @@ public Builder setIgnoreCase(boolean value) { return this; } /** + * + * *
      * Optional. Indicates match is case-insensitive.
      * Default value is false if missing.
      * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIgnoreCase() { @@ -607,9 +670,9 @@ public Builder clearIgnoreCase() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,41 +682,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) - private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig DEFAULT_INSTANCE; + private static final com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(); } - public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstance() { + public static com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextGlossaryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextGlossaryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,9 +730,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getDefaultInstanceForType() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java index e89e78055fa2..25b7f1dab52b 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java @@ -1,41 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextGlossaryConfigOrBuilder extends +public interface TranslateTextGlossaryConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextGlossaryConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ java.lang.String getGlossary(); /** + * + * *
    * Required. Specifies the glossary used for this translation. Use
    * this format: projects/*/locations/*/glossaries/*
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for glossary. */ - com.google.protobuf.ByteString - getGlossaryBytes(); + com.google.protobuf.ByteString getGlossaryBytes(); /** + * + * *
    * Optional. Indicates match is case-insensitive.
    * Default value is false if missing.
    * 
* * bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreCase. */ boolean getIgnoreCase(); diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java similarity index 73% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java index 910b2c66cff2..9202f20107c6 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java @@ -1,27 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; /** + * + * *
  * The request message for synchronous translation.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ -public final class TranslateTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextRequest) TranslateTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateTextRequest.newBuilder() to construct. private TranslateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateTextRequest() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -31,41 +48,44 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateTextRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -74,13 +94,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { return contents_; } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -89,12 +111,15 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -103,6 +128,7 @@ public int getContentsCount() {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -110,6 +136,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -118,24 +146,28 @@ public java.lang.String getContents(int index) {
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } public static final int MIME_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -144,30 +176,30 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -176,9 +208,12 @@ public java.lang.String getMimeType() { } public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -188,6 +223,7 @@ public java.lang.String getMimeType() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -196,14 +232,15 @@ public java.lang.String getSourceLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; } } /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -213,16 +250,15 @@ public java.lang.String getSourceLanguageCode() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -231,15 +267,19 @@ public java.lang.String getSourceLanguageCode() { } public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object targetLanguageCode_ = ""; /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ @java.lang.Override @@ -248,30 +288,30 @@ public java.lang.String getTargetLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; } } /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -280,9 +320,12 @@ public java.lang.String getTargetLanguageCode() { } public static final int PARENT_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -300,7 +343,10 @@ public java.lang.String getTargetLanguageCode() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -309,14 +355,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -334,17 +381,18 @@ public java.lang.String getParent() {
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -353,9 +401,12 @@ public java.lang.String getParent() { } public static final int MODEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -376,6 +427,7 @@ public java.lang.String getParent() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -384,14 +436,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -412,16 +465,15 @@ public java.lang.String getModel() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -432,13 +484,18 @@ public java.lang.String getModel() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -446,60 +503,76 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } public static final int LABELS_FIELD_NUMBER = 10; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -514,20 +587,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -546,6 +620,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -560,17 +636,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -585,11 +663,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -597,6 +675,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -608,8 +687,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < contents_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_.getRaw(i));
     }
@@ -631,12 +709,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, parent_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        10);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10);
     getUnknownFields().writeTo(output);
   }
 
@@ -667,21 +741,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, model_);
     }
     if (glossaryConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getGlossaryConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGlossaryConfig());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, parent_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(10, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -691,32 +764,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextRequest other = (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
-
-    if (!getContentsList()
-        .equals(other.getContentsList())) return false;
-    if (!getMimeType()
-        .equals(other.getMimeType())) return false;
-    if (!getSourceLanguageCode()
-        .equals(other.getSourceLanguageCode())) return false;
-    if (!getTargetLanguageCode()
-        .equals(other.getTargetLanguageCode())) return false;
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getModel()
-        .equals(other.getModel())) return false;
+    com.google.cloud.translate.v3beta1.TranslateTextRequest other =
+        (com.google.cloud.translate.v3beta1.TranslateTextRequest) obj;
+
+    if (!getContentsList().equals(other.getContentsList())) return false;
+    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false;
+    if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getModel().equals(other.getModel())) return false;
     if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false;
     if (hasGlossaryConfig()) {
-      if (!getGlossaryConfig()
-          .equals(other.getGlossaryConfig())) return false;
+      if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -756,159 +822,161 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.TranslateTextRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for synchronous translation.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextRequest) com.google.cloud.translate.v3beta1.TranslateTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 10: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.TranslateTextRequest.class, com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); + com.google.cloud.translate.v3beta1.TranslateTextRequest.class, + com.google.cloud.translate.v3beta1.TranslateTextRequest.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.TranslateTextRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); mimeType_ = ""; sourceLanguageCode_ = ""; targetLanguageCode_ = ""; @@ -924,9 +992,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; } @java.lang.Override @@ -945,8 +1013,11 @@ public com.google.cloud.translate.v3beta1.TranslateTextRequest build() { @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextRequest buildPartial() { - com.google.cloud.translate.v3beta1.TranslateTextRequest result = new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.TranslateTextRequest result = + new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -973,9 +1044,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque result.model_ = model_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -987,38 +1057,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextRequest) { - return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest)other); + return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextRequest) other); } else { super.mergeFrom(other); return this; @@ -1026,7 +1097,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest other) { - if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance()) + return this; if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; @@ -1065,8 +1137,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1094,59 +1165,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureContentsIsMutable(); - contents_.add(s); - break; - } // case 10 - case 26: { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - sourceLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - targetLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 82: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureContentsIsMutable(); + contents_.add(s); + break; + } // case 10 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1156,10 +1236,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureContentsIsMutable() { if (!contents_.isModifiable()) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); @@ -1167,6 +1249,8 @@ private void ensureContentsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1175,14 +1259,16 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - public com.google.protobuf.ProtocolStringList - getContentsList() { + public com.google.protobuf.ProtocolStringList getContentsList() { contents_.makeImmutable(); return contents_; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1191,12 +1277,15 @@ private void ensureContentsIsMutable() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ public int getContentsCount() { return contents_.size(); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1205,6 +1294,7 @@ public int getContentsCount() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ @@ -1212,6 +1302,8 @@ public java.lang.String getContents(int index) { return contents_.get(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1220,14 +1312,16 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - public com.google.protobuf.ByteString - getContentsBytes(int index) { + public com.google.protobuf.ByteString getContentsBytes(int index) { return contents_.getByteString(index); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1236,13 +1330,15 @@ public java.lang.String getContents(int index) {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.set(index, value); bitField0_ |= 0x00000001; @@ -1250,6 +1346,8 @@ public Builder setContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1258,12 +1356,14 @@ public Builder setContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The contents to add. * @return This builder for chaining. */ - public Builder addContents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureContentsIsMutable(); contents_.add(value); bitField0_ |= 0x00000001; @@ -1271,6 +1371,8 @@ public Builder addContents( return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1279,19 +1381,20 @@ public Builder addContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The contents to add. * @return This builder for chaining. */ - public Builder addAllContents( - java.lang.Iterable values) { + public Builder addAllContents(java.lang.Iterable values) { ensureContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1300,16 +1403,19 @@ public Builder addAllContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContents() { - contents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + contents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1318,12 +1424,14 @@ public Builder clearContents() {
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the contents to add. * @return This builder for chaining. */ - public Builder addContentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); @@ -1334,19 +1442,21 @@ public Builder addContentsBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1355,21 +1465,22 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString - getMimeTypeBytes() { + public com.google.protobuf.ByteString getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1377,30 +1488,37 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mimeType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1410,18 +1528,22 @@ public Builder clearMimeType() { return this; } /** + * + * *
      * Optional. The format of the source text, for example, "text/html",
      *  "text/plain". If left blank, the MIME type defaults to "text/html".
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000002; @@ -1431,6 +1553,8 @@ public Builder setMimeTypeBytes( private java.lang.Object sourceLanguageCode_ = ""; /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1440,13 +1564,13 @@ public Builder setMimeTypeBytes(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ public java.lang.String getSourceLanguageCode() { java.lang.Object ref = sourceLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceLanguageCode_ = s; return s; @@ -1455,6 +1579,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1464,15 +1590,14 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - public com.google.protobuf.ByteString - getSourceLanguageCodeBytes() { + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { java.lang.Object ref = sourceLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceLanguageCode_ = b; return b; } else { @@ -1480,6 +1605,8 @@ public java.lang.String getSourceLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1489,18 +1616,22 @@ public java.lang.String getSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1510,6 +1641,7 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { @@ -1519,6 +1651,8 @@ public Builder clearSourceLanguageCode() { return this; } /** + * + * *
      * Optional. The BCP-47 language code of the input text if
      * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -1528,12 +1662,14 @@ public Builder clearSourceLanguageCode() {
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1543,19 +1679,21 @@ public Builder setSourceLanguageCodeBytes( private java.lang.Object targetLanguageCode_ = ""; /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ public java.lang.String getTargetLanguageCode() { java.lang.Object ref = targetLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetLanguageCode_ = s; return s; @@ -1564,21 +1702,22 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - public com.google.protobuf.ByteString - getTargetLanguageCodeBytes() { + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { java.lang.Object ref = targetLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetLanguageCode_ = b; return b; } else { @@ -1586,30 +1725,37 @@ public java.lang.String getTargetLanguageCode() { } } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLanguageCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetLanguageCode() { @@ -1619,18 +1765,22 @@ public Builder clearTargetLanguageCode() { return this; } /** + * + * *
      * Required. The BCP-47 language code to use for translation of the input
      * text, set to one of the language codes listed in Language Support.
      * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLanguageCode_ = value; bitField0_ |= 0x00000008; @@ -1640,6 +1790,8 @@ public Builder setTargetLanguageCodeBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1657,14 +1809,16 @@ public Builder setTargetLanguageCodeBytes(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1673,6 +1827,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1690,16 +1846,17 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1707,6 +1864,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1724,19 +1883,25 @@ public java.lang.String getParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1754,7 +1919,10 @@ public Builder setParent(
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1764,6 +1932,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1781,13 +1951,17 @@ public Builder clearParent() {
      * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
      * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; @@ -1797,6 +1971,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1817,13 +1993,13 @@ public Builder setParentBytes(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -1832,6 +2008,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1852,15 +2030,14 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1868,6 +2045,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1888,18 +2067,22 @@ public java.lang.String getModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1920,6 +2103,7 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -1929,6 +2113,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      *
@@ -1949,12 +2135,14 @@ public Builder clearModel() {
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000020; @@ -1964,47 +2152,67 @@ public Builder setModelBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2018,13 +2226,17 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -2038,19 +2250,26 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -2063,13 +2282,17 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2082,74 +2305,90 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * Optional. Glossary to be applied. The glossary must be
      * within the same region (have the same location-id) as the model, otherwise
      * an INVALID_ARGUMENT (400) error is returned.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2158,10 +2397,13 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder g onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2176,20 +2418,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2208,6 +2451,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2222,17 +2467,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2247,23 +2494,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2277,23 +2526,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2307,17 +2555,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      *
@@ -2331,16 +2582,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2350,12 +2599,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextRequest)
   private static final com.google.cloud.translate.v3beta1.TranslateTextRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextRequest();
   }
@@ -2364,27 +2613,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TranslateTextRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TranslateTextRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2399,6 +2648,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
similarity index 81%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
index 8c4f854d1c1f..a2b67beb8821 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-public interface TranslateTextRequestOrBuilder extends
+public interface TranslateTextRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -16,11 +34,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the contents. */ - java.util.List - getContentsList(); + java.util.List getContentsList(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -29,10 +49,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of contents. */ int getContentsCount(); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -41,11 +64,14 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The contents at the given index. */ java.lang.String getContents(int index); /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -54,35 +80,42 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the contents at the given index. */ - com.google.protobuf.ByteString - getContentsBytes(int index); + com.google.protobuf.ByteString getContentsBytes(int index); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Optional. The format of the source text, for example, "text/html",
    *  "text/plain". If left blank, the MIME type defaults to "text/html".
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -92,10 +125,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ java.lang.String getSourceLanguageCode(); /** + * + * *
    * Optional. The BCP-47 language code of the input text if
    * known, for example, "en-US" or "sr-Latn". Supported language codes are
@@ -105,34 +141,41 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceLanguageCode. */ - com.google.protobuf.ByteString - getSourceLanguageCodeBytes(); + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetLanguageCode. */ java.lang.String getTargetLanguageCode(); /** + * + * *
    * Required. The BCP-47 language code to use for translation of the input
    * text, set to one of the language codes listed in Language Support.
    * 
* * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetLanguageCode. */ - com.google.protobuf.ByteString - getTargetLanguageCodeBytes(); + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -150,11 +193,16 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -172,13 +220,17 @@ public interface TranslateTextRequestOrBuilder extends
    * location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
    * 
* - * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -199,10 +251,13 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Optional. The `model` type requested for this translation.
    *
@@ -223,45 +278,62 @@ public interface TranslateTextRequestOrBuilder extends
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * Optional. Glossary to be applied. The glossary must be
    * within the same region (have the same location-id) as the model, otherwise
    * an INVALID_ARGUMENT (400) error is returned.
    * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -277,6 +349,8 @@ public interface TranslateTextRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -290,15 +364,13 @@ public interface TranslateTextRequestOrBuilder extends
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -312,9 +384,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -329,11 +402,13 @@ boolean containsLabels(
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    *
@@ -347,6 +422,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
similarity index 78%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
index b4ef91e7dab4..133b0fc1347a 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
@@ -1,20 +1,34 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
-/**
- * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
- */
-public final class TranslateTextResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
+public final class TranslateTextResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
     TranslateTextResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslateTextResponse.newBuilder() to construct.
   private TranslateTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslateTextResponse() {
     translations_ = java.util.Collections.emptyList();
     glossaryTranslations_ = java.util.Collections.emptyList();
@@ -22,28 +36,32 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+    return com.google.cloud.translate.v3beta1.TranslationServiceProto
+        .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+            com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
+            com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
   }
 
   public static final int TRANSLATIONS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List translations_;
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -57,6 +75,8 @@ public java.util.List getTransla
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -66,11 +86,13 @@ public java.util.List getTransla
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTranslationsOrBuilderList() {
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -84,6 +106,8 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -97,6 +121,8 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
     return translations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -112,9 +138,12 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
   }
 
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List glossaryTranslations_;
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -126,10 +155,13 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List getGlossaryTranslationsList() {
+  public java.util.List
+      getGlossaryTranslationsList() {
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -141,11 +173,13 @@ public java.util.List getGlossar
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGlossaryTranslationsOrBuilderList() {
     return glossaryTranslations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -161,6 +195,8 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -176,6 +212,8 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
     return glossaryTranslations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -193,6 +231,7 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -204,8 +243,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < translations_.size(); i++) {
       output.writeMessage(1, translations_.get(i));
     }
@@ -222,12 +260,11 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < translations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, translations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, translations_.get(i));
     }
     for (int i = 0; i < glossaryTranslations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, glossaryTranslations_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(3, glossaryTranslations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -237,17 +274,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.translate.v3beta1.TranslateTextResponse other = (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
+    com.google.cloud.translate.v3beta1.TranslateTextResponse other =
+        (com.google.cloud.translate.v3beta1.TranslateTextResponse) obj;
 
-    if (!getTranslationsList()
-        .equals(other.getTranslationsList())) return false;
-    if (!getGlossaryTranslationsList()
-        .equals(other.getGlossaryTranslationsList())) return false;
+    if (!getTranslationsList().equals(other.getTranslationsList())) return false;
+    if (!getGlossaryTranslationsList().equals(other.getGlossaryTranslationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,127 +309,128 @@ public int hashCode() {
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.translate.v3beta1.TranslateTextResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.translate.v3beta1.TranslateTextResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.TranslateTextResponse)
       com.google.cloud.translate.v3beta1.TranslateTextResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.translate.v3beta1.TranslateTextResponse.class, com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
+              com.google.cloud.translate.v3beta1.TranslateTextResponse.class,
+              com.google.cloud.translate.v3beta1.TranslateTextResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.translate.v3beta1.TranslateTextResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +453,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.translate.v3beta1.TranslationServiceProto
+          .internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor;
     }
 
     @java.lang.Override
@@ -437,14 +474,18 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse build() {
 
     @java.lang.Override
     public com.google.cloud.translate.v3beta1.TranslateTextResponse buildPartial() {
-      com.google.cloud.translate.v3beta1.TranslateTextResponse result = new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
+      com.google.cloud.translate.v3beta1.TranslateTextResponse result =
+          new com.google.cloud.translate.v3beta1.TranslateTextResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -473,38 +514,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.TranslateTextRespo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.translate.v3beta1.TranslateTextResponse) {
-        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse)other);
+        return mergeFrom((com.google.cloud.translate.v3beta1.TranslateTextResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextResponse other) {
-      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())
+        return this;
       if (translationsBuilder_ == null) {
         if (!other.translations_.isEmpty()) {
           if (translations_.isEmpty()) {
@@ -531,9 +574,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             translationsBuilder_ = null;
             translations_ = other.translations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            translationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTranslationsFieldBuilder() : null;
+            translationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTranslationsFieldBuilder()
+                    : null;
           } else {
             translationsBuilder_.addAllMessages(other.translations_);
           }
@@ -557,9 +601,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRespons
             glossaryTranslationsBuilder_ = null;
             glossaryTranslations_ = other.glossaryTranslations_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            glossaryTranslationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getGlossaryTranslationsFieldBuilder() : null;
+            glossaryTranslationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getGlossaryTranslationsFieldBuilder()
+                    : null;
           } else {
             glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
           }
@@ -591,38 +636,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.translate.v3beta1.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3beta1.Translation.parser(),
-                      extensionRegistry);
-              if (translationsBuilder_ == null) {
-                ensureTranslationsIsMutable();
-                translations_.add(m);
-              } else {
-                translationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 26: {
-              com.google.cloud.translate.v3beta1.Translation m =
-                  input.readMessage(
-                      com.google.cloud.translate.v3beta1.Translation.parser(),
-                      extensionRegistry);
-              if (glossaryTranslationsBuilder_ == null) {
-                ensureGlossaryTranslationsIsMutable();
-                glossaryTranslations_.add(m);
-              } else {
-                glossaryTranslationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.translate.v3beta1.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
+                if (translationsBuilder_ == null) {
+                  ensureTranslationsIsMutable();
+                  translations_.add(m);
+                } else {
+                  translationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 26:
+              {
+                com.google.cloud.translate.v3beta1.Translation m =
+                    input.readMessage(
+                        com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry);
+                if (glossaryTranslationsBuilder_ == null) {
+                  ensureGlossaryTranslationsIsMutable();
+                  glossaryTranslations_.add(m);
+                } else {
+                  glossaryTranslationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -632,21 +678,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List translations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        translations_ = new java.util.ArrayList(translations_);
+        translations_ =
+            new java.util.ArrayList(translations_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> translationsBuilder_;
+            com.google.cloud.translate.v3beta1.Translation,
+            com.google.cloud.translate.v3beta1.Translation.Builder,
+            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
+        translationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -663,6 +717,8 @@ public java.util.List getTransla
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -679,6 +735,8 @@ public int getTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -695,6 +753,8 @@ public com.google.cloud.translate.v3beta1.Translation getTranslations(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -718,6 +778,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -738,6 +800,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -760,6 +824,8 @@ public Builder addTranslations(com.google.cloud.translate.v3beta1.Translation va
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -783,6 +849,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -803,6 +871,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -823,6 +893,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -835,8 +907,7 @@ public Builder addAllTranslations(
         java.lang.Iterable values) {
       if (translationsBuilder_ == null) {
         ensureTranslationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, translations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
         onChanged();
       } else {
         translationsBuilder_.addAllMessages(values);
@@ -844,6 +915,8 @@ public Builder addAllTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -863,6 +936,8 @@ public Builder clearTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -882,6 +957,8 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -895,6 +972,8 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
       return getTranslationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -906,11 +985,14 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getTranslationsBui
     public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
         int index) {
       if (translationsBuilder_ == null) {
-        return translations_.get(index);  } else {
+        return translations_.get(index);
+      } else {
         return translationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -919,8 +1001,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsOrBuilderList() {
+    public java.util.List
+        getTranslationsOrBuilderList() {
       if (translationsBuilder_ != null) {
         return translationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -928,6 +1010,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -937,10 +1021,12 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder() {
-      return getTranslationsFieldBuilder().addBuilder(
-          com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder()
+          .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -951,10 +1037,12 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      */
     public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBuilder(
         int index) {
-      return getTranslationsFieldBuilder().addBuilder(
-          index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
+      return getTranslationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -963,38 +1051,49 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addTranslationsBui
      *
      * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
      */
-    public java.util.List 
-         getTranslationsBuilderList() {
+    public java.util.List
+        getTranslationsBuilderList() {
       return getTranslationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> 
+            com.google.cloud.translate.v3beta1.Translation,
+            com.google.cloud.translate.v3beta1.Translation.Builder,
+            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
         getTranslationsFieldBuilder() {
       if (translationsBuilder_ == null) {
-        translationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
-                translations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        translationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.translate.v3beta1.Translation,
+                com.google.cloud.translate.v3beta1.Translation.Builder,
+                com.google.cloud.translate.v3beta1.TranslationOrBuilder>(
+                translations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         translations_ = null;
       }
       return translationsBuilder_;
     }
 
     private java.util.List glossaryTranslations_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureGlossaryTranslationsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        glossaryTranslations_ = new java.util.ArrayList(glossaryTranslations_);
+        glossaryTranslations_ =
+            new java.util.ArrayList(
+                glossaryTranslations_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> glossaryTranslationsBuilder_;
+            com.google.cloud.translate.v3beta1.Translation,
+            com.google.cloud.translate.v3beta1.Translation.Builder,
+            com.google.cloud.translate.v3beta1.TranslationOrBuilder>
+        glossaryTranslationsBuilder_;
 
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1003,9 +1102,11 @@ private void ensureGlossaryTranslationsIsMutable() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ - public java.util.List getGlossaryTranslationsList() { + public java.util.List + getGlossaryTranslationsList() { if (glossaryTranslationsBuilder_ == null) { return java.util.Collections.unmodifiableList(glossaryTranslations_); } else { @@ -1013,6 +1114,8 @@ public java.util.List getGlossar } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1021,7 +1124,8 @@ public java.util.List getGlossar
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public int getGlossaryTranslationsCount() { if (glossaryTranslationsBuilder_ == null) { @@ -1031,6 +1135,8 @@ public int getGlossaryTranslationsCount() { } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1039,7 +1145,8 @@ public int getGlossaryTranslationsCount() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1049,6 +1156,8 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1057,7 +1166,8 @@ public com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(in
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1074,6 +1184,8 @@ public Builder setGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1082,7 +1194,8 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder setGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1096,6 +1209,8 @@ public Builder setGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1104,7 +1219,8 @@ public Builder setGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Translation value) { if (glossaryTranslationsBuilder_ == null) { @@ -1120,6 +1236,8 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1128,7 +1246,8 @@ public Builder addGlossaryTranslations(com.google.cloud.translate.v3beta1.Transl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation value) { @@ -1145,6 +1264,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1153,7 +1274,8 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations( com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1167,6 +1289,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1175,7 +1299,8 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addGlossaryTranslations( int index, com.google.cloud.translate.v3beta1.Translation.Builder builderForValue) { @@ -1189,6 +1314,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1197,14 +1324,14 @@ public Builder addGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder addAllGlossaryTranslations( java.lang.Iterable values) { if (glossaryTranslationsBuilder_ == null) { ensureGlossaryTranslationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, glossaryTranslations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTranslations_); onChanged(); } else { glossaryTranslationsBuilder_.addAllMessages(values); @@ -1212,6 +1339,8 @@ public Builder addAllGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1220,7 +1349,8 @@ public Builder addAllGlossaryTranslations(
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder clearGlossaryTranslations() { if (glossaryTranslationsBuilder_ == null) { @@ -1233,6 +1363,8 @@ public Builder clearGlossaryTranslations() { return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1241,7 +1373,8 @@ public Builder clearGlossaryTranslations() {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public Builder removeGlossaryTranslations(int index) { if (glossaryTranslationsBuilder_ == null) { @@ -1254,6 +1387,8 @@ public Builder removeGlossaryTranslations(int index) { return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1262,13 +1397,16 @@ public Builder removeGlossaryTranslations(int index) {
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTranslationsBuilder( int index) { return getGlossaryTranslationsFieldBuilder().getBuilder(index); } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1277,16 +1415,20 @@ public com.google.cloud.translate.v3beta1.Translation.Builder getGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTranslationsOrBuilder( int index) { if (glossaryTranslationsBuilder_ == null) { - return glossaryTranslations_.get(index); } else { + return glossaryTranslations_.get(index); + } else { return glossaryTranslationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1295,10 +1437,11 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ - public java.util.List - getGlossaryTranslationsOrBuilderList() { + public java.util.List + getGlossaryTranslationsOrBuilderList() { if (glossaryTranslationsBuilder_ != null) { return glossaryTranslationsBuilder_.getMessageOrBuilderList(); } else { @@ -1306,6 +1449,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1314,13 +1459,16 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder() { - return getGlossaryTranslationsFieldBuilder().addBuilder( - com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder() + .addBuilder(com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1329,14 +1477,17 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTranslationsBuilder( int index) { - return getGlossaryTranslationsFieldBuilder().addBuilder( - index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); + return getGlossaryTranslationsFieldBuilder() + .addBuilder(index, com.google.cloud.translate.v3beta1.Translation.getDefaultInstance()); } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1345,18 +1496,25 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla
      * [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
      * 
* - * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3; + * */ - public java.util.List - getGlossaryTranslationsBuilderList() { + public java.util.List + getGlossaryTranslationsBuilderList() { return getGlossaryTranslationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder> + com.google.cloud.translate.v3beta1.Translation, + com.google.cloud.translate.v3beta1.Translation.Builder, + com.google.cloud.translate.v3beta1.TranslationOrBuilder> getGlossaryTranslationsFieldBuilder() { if (glossaryTranslationsBuilder_ == null) { - glossaryTranslationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.translate.v3beta1.Translation, com.google.cloud.translate.v3beta1.Translation.Builder, com.google.cloud.translate.v3beta1.TranslationOrBuilder>( + glossaryTranslationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.Translation, + com.google.cloud.translate.v3beta1.Translation.Builder, + com.google.cloud.translate.v3beta1.TranslationOrBuilder>( glossaryTranslations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1365,9 +1523,9 @@ public com.google.cloud.translate.v3beta1.Translation.Builder addGlossaryTransla } return glossaryTranslationsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1377,12 +1535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.TranslateTextResponse) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.TranslateTextResponse) private static final com.google.cloud.translate.v3beta1.TranslateTextResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.TranslateTextResponse(); } @@ -1391,27 +1549,27 @@ public static com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateTextResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateTextResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1426,6 +1584,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java similarity index 85% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java index 3fb798bbb0fa..c887d44f9b2a 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslateTextResponseOrBuilder extends +public interface TranslateTextResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.TranslateTextResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -16,9 +34,10 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List 
-      getTranslationsList();
+  java.util.List getTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -29,6 +48,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   com.google.cloud.translate.v3beta1.Translation getTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -39,6 +60,8 @@ public interface TranslateTextResponseOrBuilder extends
    */
   int getTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -47,9 +70,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  java.util.List 
+  java.util.List
       getTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -58,10 +83,11 @@ public interface TranslateTextResponseOrBuilder extends
    *
    * repeated .google.cloud.translation.v3beta1.Translation translations = 1;
    */
-  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(
-      int index);
+  com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -72,9 +98,10 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List 
-      getGlossaryTranslationsList();
+  java.util.List getGlossaryTranslationsList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -87,6 +114,8 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    */
   com.google.cloud.translate.v3beta1.Translation getGlossaryTranslations(int index);
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -99,6 +128,8 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    */
   int getGlossaryTranslationsCount();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -109,9 +140,11 @@ com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOrBuilder
    *
    * repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
    */
-  java.util.List 
+  java.util.List
       getGlossaryTranslationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
similarity index 72%
rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
index 5ad5286246b5..7731461b8598 100644
--- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
+++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/translate/v3beta1/translation_service.proto
 
 package com.google.cloud.translate.v3beta1;
 
 /**
+ *
+ *
  * 
  * A single translation response.
  * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ -public final class Translation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Translation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.Translation) TranslationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Translation.newBuilder() to construct. private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Translation() { translatedText_ = ""; model_ = ""; @@ -27,28 +45,32 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Translation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, + com.google.cloud.translate.v3beta1.Translation.Builder.class); } public static final int TRANSLATED_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object translatedText_ = ""; /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string translated_text = 1; + * * @return The translatedText. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getTranslatedText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; } } /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -79,16 +103,15 @@ public java.lang.String getTranslatedText() {
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTranslatedText() { } public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -112,6 +138,7 @@ public java.lang.String getTranslatedText() {
    * 
* * string model = 2; + * * @return The model. */ @java.lang.Override @@ -120,14 +147,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -140,16 +168,15 @@ public java.lang.String getModel() {
    * 
* * string model = 2; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -158,9 +185,12 @@ public java.lang.String getModel() { } public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -169,6 +199,7 @@ public java.lang.String getModel() {
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -177,14 +208,15 @@ public java.lang.String getDetectedLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; } } /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -193,16 +225,15 @@ public java.lang.String getDetectedLanguageCode() {
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -213,11 +244,14 @@ public java.lang.String getDetectedLanguageCode() { public static final int GLOSSARY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ @java.lang.Override @@ -225,18 +259,25 @@ public boolean hasGlossaryConfig() { return glossaryConfig_ != null; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ @java.lang.Override public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } /** + * + * *
    * The `glossary_config` used for this translation.
    * 
@@ -244,11 +285,15 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ @java.lang.Override - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedText_); } @@ -290,8 +334,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (glossaryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGlossaryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGlossaryConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detectedLanguageCode_); @@ -304,23 +347,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.translate.v3beta1.Translation)) { return super.equals(obj); } - com.google.cloud.translate.v3beta1.Translation other = (com.google.cloud.translate.v3beta1.Translation) obj; + com.google.cloud.translate.v3beta1.Translation other = + (com.google.cloud.translate.v3beta1.Translation) obj; - if (!getTranslatedText() - .equals(other.getTranslatedText())) return false; - if (!getModel() - .equals(other.getModel())) return false; - if (!getDetectedLanguageCode() - .equals(other.getDetectedLanguageCode())) return false; + if (!getTranslatedText().equals(other.getTranslatedText())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getDetectedLanguageCode().equals(other.getDetectedLanguageCode())) return false; if (hasGlossaryConfig() != other.hasGlossaryConfig()) return false; if (hasGlossaryConfig()) { - if (!getGlossaryConfig() - .equals(other.getGlossaryConfig())) return false; + if (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -348,132 +388,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.translate.v3beta1.Translation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.translate.v3beta1.Translation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.translate.v3beta1.Translation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A single translation response.
    * 
* * Protobuf type {@code google.cloud.translation.v3beta1.Translation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.Translation) com.google.cloud.translate.v3beta1.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.translate.v3beta1.Translation.class, com.google.cloud.translate.v3beta1.Translation.Builder.class); + com.google.cloud.translate.v3beta1.Translation.class, + com.google.cloud.translate.v3beta1.Translation.Builder.class); } // Construct using com.google.cloud.translate.v3beta1.Translation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_Translation_descriptor; } @java.lang.Override @@ -511,8 +555,11 @@ public com.google.cloud.translate.v3beta1.Translation build() { @java.lang.Override public com.google.cloud.translate.v3beta1.Translation buildPartial() { - com.google.cloud.translate.v3beta1.Translation result = new com.google.cloud.translate.v3beta1.Translation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.translate.v3beta1.Translation result = + new com.google.cloud.translate.v3beta1.Translation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -529,9 +576,8 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result result.detectedLanguageCode_ = detectedLanguageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.glossaryConfig_ = glossaryConfigBuilder_ == null - ? glossaryConfig_ - : glossaryConfigBuilder_.build(); + result.glossaryConfig_ = + glossaryConfigBuilder_ == null ? glossaryConfig_ : glossaryConfigBuilder_.build(); } } @@ -539,38 +585,39 @@ private void buildPartial0(com.google.cloud.translate.v3beta1.Translation result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.translate.v3beta1.Translation) { - return mergeFrom((com.google.cloud.translate.v3beta1.Translation)other); + return mergeFrom((com.google.cloud.translate.v3beta1.Translation) other); } else { super.mergeFrom(other); return this; @@ -623,34 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - translatedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getGlossaryConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - detectedLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + translatedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getGlossaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + detectedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,10 +710,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object translatedText_ = ""; /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -671,13 +724,13 @@ public Builder mergeFrom(
      * 
* * string translated_text = 1; + * * @return The translatedText. */ public java.lang.String getTranslatedText() { java.lang.Object ref = translatedText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedText_ = s; return s; @@ -686,6 +739,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -693,15 +748,14 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - public com.google.protobuf.ByteString - getTranslatedTextBytes() { + public com.google.protobuf.ByteString getTranslatedTextBytes() { java.lang.Object ref = translatedText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedText_ = b; return b; } else { @@ -709,6 +763,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -716,18 +772,22 @@ public java.lang.String getTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } translatedText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -735,6 +795,7 @@ public Builder setTranslatedText(
      * 
* * string translated_text = 1; + * * @return This builder for chaining. */ public Builder clearTranslatedText() { @@ -744,6 +805,8 @@ public Builder clearTranslatedText() { return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -751,12 +814,14 @@ public Builder clearTranslatedText() {
      * 
* * string translated_text = 1; + * * @param value The bytes for translatedText to set. * @return This builder for chaining. */ - public Builder setTranslatedTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); translatedText_ = value; bitField0_ |= 0x00000001; @@ -766,6 +831,8 @@ public Builder setTranslatedTextBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -778,13 +845,13 @@ public Builder setTranslatedTextBytes(
      * 
* * string model = 2; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -793,6 +860,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -805,15 +874,14 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -821,6 +889,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -833,18 +903,22 @@ public java.lang.String getModel() {
      * 
* * string model = 2; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -857,6 +931,7 @@ public Builder setModel(
      * 
* * string model = 2; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -866,6 +941,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -878,12 +955,14 @@ public Builder clearModel() {
      * 
* * string model = 2; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; @@ -893,6 +972,8 @@ public Builder setModelBytes( private java.lang.Object detectedLanguageCode_ = ""; /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -901,13 +982,13 @@ public Builder setModelBytes(
      * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ public java.lang.String getDetectedLanguageCode() { java.lang.Object ref = detectedLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detectedLanguageCode_ = s; return s; @@ -916,6 +997,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -924,15 +1007,14 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - public com.google.protobuf.ByteString - getDetectedLanguageCodeBytes() { + public com.google.protobuf.ByteString getDetectedLanguageCodeBytes() { java.lang.Object ref = detectedLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detectedLanguageCode_ = b; return b; } else { @@ -940,6 +1022,8 @@ public java.lang.String getDetectedLanguageCode() { } } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -948,18 +1032,22 @@ public java.lang.String getDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } detectedLanguageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -968,6 +1056,7 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 4; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { @@ -977,6 +1066,8 @@ public Builder clearDetectedLanguageCode() { return this; } /** + * + * *
      * The BCP-47 language code of source text in the initial request, detected
      * automatically, if no source language was passed within the initial
@@ -985,12 +1076,14 @@ public Builder clearDetectedLanguageCode() {
      * 
* * string detected_language_code = 4; + * * @param value The bytes for detectedLanguageCode to set. * @return This builder for chaining. */ - public Builder setDetectedLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); detectedLanguageCode_ = value; bitField0_ |= 0x00000004; @@ -1000,41 +1093,58 @@ public Builder setDetectedLanguageCodeBytes( private com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig glossaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> glossaryConfigBuilder_; + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + glossaryConfigBuilder_; /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * + * * @return Whether the glossaryConfig field is set. */ public boolean hasGlossaryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * + * * @return The glossaryConfig. */ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig() { if (glossaryConfigBuilder_ == null) { - return glossaryConfig_ == null ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } else { return glossaryConfigBuilder_.getMessage(); } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder setGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,11 +1158,14 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTex return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ public Builder setGlossaryConfig( com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder builderForValue) { @@ -1066,17 +1179,23 @@ public Builder setGlossaryConfig( return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { + public Builder mergeGlossaryConfig( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig value) { if (glossaryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - glossaryConfig_ != null && - glossaryConfig_ != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && glossaryConfig_ != null + && glossaryConfig_ + != com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig + .getDefaultInstance()) { getGlossaryConfigBuilder().mergeFrom(value); } else { glossaryConfig_ = value; @@ -1089,11 +1208,14 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3beta1.TranslateT return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ public Builder clearGlossaryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1106,55 +1228,70 @@ public Builder clearGlossaryConfig() { return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder + getGlossaryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlossaryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ - public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { if (glossaryConfigBuilder_ != null) { return glossaryConfigBuilder_.getMessageOrBuilder(); } else { - return glossaryConfig_ == null ? - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() : glossaryConfig_; + return glossaryConfig_ == null + ? com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.getDefaultInstance() + : glossaryConfig_; } } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
* - * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder> getGlossaryConfigFieldBuilder() { if (glossaryConfigBuilder_ == null) { - glossaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( - getGlossaryConfig(), - getParentForChildren(), - isClean()); + glossaryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder>( + getGlossaryConfig(), getParentForChildren(), isClean()); glossaryConfig_ = null; } return glossaryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,12 +1301,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.Translation) } // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.Translation) private static final com.google.cloud.translate.v3beta1.Translation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.Translation(); } @@ -1178,27 +1315,27 @@ public static com.google.cloud.translate.v3beta1.Translation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1350,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java similarity index 78% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java index ed3732dfbd34..0708e2df6059 100644 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; -public interface TranslationOrBuilder extends +public interface TranslationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.Translation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -15,10 +33,13 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The translatedText. */ java.lang.String getTranslatedText(); /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -26,12 +47,14 @@ public interface TranslationOrBuilder extends
    * 
* * string translated_text = 1; + * * @return The bytes for translatedText. */ - com.google.protobuf.ByteString - getTranslatedTextBytes(); + com.google.protobuf.ByteString getTranslatedTextBytes(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -44,10 +67,13 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -60,12 +86,14 @@ public interface TranslationOrBuilder extends
    * 
* * string model = 2; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -74,10 +102,13 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ java.lang.String getDetectedLanguageCode(); /** + * + * *
    * The BCP-47 language code of source text in the initial request, detected
    * automatically, if no source language was passed within the initial
@@ -86,35 +117,44 @@ public interface TranslationOrBuilder extends
    * 
* * string detected_language_code = 4; + * * @return The bytes for detectedLanguageCode. */ - com.google.protobuf.ByteString - getDetectedLanguageCodeBytes(); + com.google.protobuf.ByteString getDetectedLanguageCodeBytes(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return Whether the glossaryConfig field is set. */ boolean hasGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; + * * @return The glossaryConfig. */ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossaryConfig(); /** + * + * *
    * The `glossary_config` used for this translation.
    * 
* * .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig glossary_config = 3; */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java new file mode 100644 index 000000000000..d5ebbba25ba0 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/translate/v3beta1/translation_service.proto + +package com.google.cloud.translate.v3beta1; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Translation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/translate/v3beta1/transla" + + "tion_service.proto\022 google.cloud.transla" + + "tion.v3beta1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032#google/longrunning/operations.p" + + "roto\032\037google/protobuf/timestamp.proto\"P\n" + + "\033TranslateTextGlossaryConfig\022\026\n\010glossary" + + "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" + + "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" + + "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" + + "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" + + "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" + + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" + + "onfig\030\007 \001(\0132=.google.cloud.translation.v" + + "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" + + "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" + + "ion.v3beta1.TranslateTextRequest.LabelsE" + + "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" + + "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" + + ".translation.v3beta1.Translation\022L\n\025glos" + + "sary_translations\030\003 \003(\0132-.google.cloud.t" + + "ranslation.v3beta1.Translation\"\255\001\n\013Trans" + + "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" + + "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" + + "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" + + "ranslation.v3beta1.TranslateTextGlossary" + + "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" + + "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." + + "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" + + "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" + + "\006labels\030\006 \003(\0132C.google.cloud.translation" + + ".v3beta1.DetectLanguageRequest.LabelsEnt" + + "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + + "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + + "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" + + "nguages\030\001 \003(\01322.google.cloud.translation" + + ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" + + "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" + + "\372A#\n!locations.googleapis.com/Location\022#" + + "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" + + "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" + + "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" + + "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" + + "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" + + "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" + + "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" + + "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" + + "(\0132+.google.cloud.translation.v3beta1.Gc" + + "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" + + "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" + + "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" + + ".cloud.translation.v3beta1.GcsDestinatio" + + "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" + + "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" + + "\0132+.google.cloud.translation.v3beta1.Gcs" + + "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" + + "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" + + "n\030\001 \001(\01320.google.cloud.translation.v3bet" + + "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" + + " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" + + "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" + + "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" + + "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" + + "_input_config\030\004 \001(\01325.google.cloud.trans" + + "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" + + "\022\\\n\026document_output_config\030\005 \001(\01326.googl" + + "e.cloud.translation.v3beta1.DocumentOutp" + + "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" + + "lossary_config\030\007 \001(\0132=.google.cloud.tran" + + "slation.v3beta1.TranslateTextGlossaryCon" + + "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" + + ".translation.v3beta1.TranslateDocumentRe" + + "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + + "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + + "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" + + "nse\022S\n\024document_translation\030\001 \001(\01325.goog" + + "le.cloud.translation.v3beta1.DocumentTra" + + "nslation\022\\\n\035glossary_document_translatio" + + "n\030\002 \001(\01325.google.cloud.translation.v3bet" + + "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" + + "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" + + "anslation.v3beta1.TranslateTextGlossaryC" + + "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + + "is.com/Location\022\"\n\024source_language_code\030" + + "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" + + "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." + + "translation.v3beta1.BatchTranslateTextRe" + + "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" + + "\030\005 \003(\0132-.google.cloud.translation.v3beta" + + "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" + + "(\0132..google.cloud.translation.v3beta1.Ou" + + "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" + + "oogle.cloud.translation.v3beta1.BatchTra" + + "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" + + "]\n\006labels\030\t \003(\0132G.google.cloud.translati" + + "on.v3beta1.BatchTranslateTextRequest.Lab" + + "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" + + "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" + + "oud.translation.v3beta1.TranslateTextGlo" + + "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" + + "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." + + "translation.v3beta1.BatchTranslateMetada" + + "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" + + "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" + + "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + + "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + + "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" + + "_characters\030\001 \001(\003\022\035\n\025translated_characte" + + "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" + + "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" + + "_source\030\001 \001(\0132+.google.cloud.translation" + + ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" + + "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" + + "\030\003 \001(\0132;.google.cloud.translation.v3beta" + + "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" + + "e_codes_set\030\004 \001(\0132;.google.cloud.transla" + + "tion.v3beta1.Glossary.LanguageCodesSetH\000" + + "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" + + "anslation.v3beta1.GlossaryInputConfig\022\031\n" + + "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" + + "e_language_code\030\001 \001(\t\022\034\n\024target_language" + + "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" + + "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" + + "is.com/Glossary\022=projects/{project}/loca" + + "tions/{location}/glossaries/{glossary}B\013" + + "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" + + "ogle.cloud.translation.v3beta1.GlossaryB" + + "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" + + "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" + + "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" + + " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" + + "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" + + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + + "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" + + "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" + + "ssaries\030\001 \003(\0132*.google.cloud.translation" + + ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " + + "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" + + "ation.v3beta1.CreateGlossaryMetadata.Sta" + + "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" + + "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" + + "tate\030\002 \001(\0162>.google.cloud.translation.v3" + + "beta1.DeleteGlossaryMetadata.State\022/\n\013su" + + "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" + + "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" + + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" + + "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + + "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" + + "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" + + "pis.com/Location\022\"\n\024source_language_code" + + "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " + + "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" + + "e.cloud.translation.v3beta1.BatchDocumen" + + "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" + + "\0132;.google.cloud.translation.v3beta1.Bat" + + "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" + + " \003(\0132K.google.cloud.translation.v3beta1." + + "BatchTranslateDocumentRequest.ModelsEntr" + + "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" + + "ud.translation.v3beta1.BatchTranslateDoc" + + "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" + + "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" + + "anslation.v3beta1.BatchTranslateDocument" + + "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" + + "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" + + "alue\030\002 \001(\0132=.google.cloud.translation.v3" + + "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + + "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" + + "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" + + "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" + + "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" + + "tination\030\001 \001(\01320.google.cloud.translatio" + + "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" + + "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" + + "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " + + "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" + + "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" + + "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" + + "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" + + "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" + + "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" + + "F.google.cloud.translation.v3beta1.Batch" + + "TranslateDocumentMetadata.State\022\023\n\013total" + + "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" + + "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" + + "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" + + "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" + + "aracters\030\010 \001(\003\022!\n\031total_billable_charact" + + "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." + + "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + + "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + + "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" + + "xt\0226.google.cloud.translation.v3beta1.Tr" + + "anslateTextRequest\0327.google.cloud.transl" + + "ation.v3beta1.TranslateTextResponse\"r\202\323\344" + + "\223\002l\"6/v3beta1/{parent=projects/*/locatio" + + "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" + + "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" + + "ctLanguage\0227.google.cloud.translation.v3" + + "beta1.DetectLanguageRequest\0328.google.clo" + + "ud.translation.v3beta1.DetectLanguageRes" + + "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" + + "7/v3beta1/{parent=projects/*/locations/*" + + "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" + + "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" + + "portedLanguages\022>.google.cloud.translati" + + "on.v3beta1.GetSupportedLanguagesRequest\032" + + "4.google.cloud.translation.v3beta1.Suppo" + + "rtedLanguages\"\233\001\332A\"parent,display_langua" + + "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" + + "ojects/*/locations/*}/supportedLanguages" + + "Z1\022//v3beta1/{parent=projects/*}/support" + + "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" + + "le.cloud.translation.v3beta1.TranslateDo" + + "cumentRequest\032;.google.cloud.translation" + + ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" + + "\002?\":/v3beta1/{parent=projects/*/location" + + "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" + + "lateText\022;.google.cloud.translation.v3be" + + "ta1.BatchTranslateTextRequest\032\035.google.l" + + "ongrunning.Operation\"y\312A0\n\026BatchTranslat" + + "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" + + ";/v3beta1/{parent=projects/*/locations/*" + + "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" + + "teDocument\022?.google.cloud.translation.v3" + + "beta1.BatchTranslateDocumentRequest\032\035.go" + + "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" + + "ranslateDocumentResponse\022\036BatchTranslate" + + "DocumentMetadata\332AMparent,source_languag" + + "e_code,target_language_codes,input_confi" + + "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" + + "=projects/*/locations/*}:batchTranslateD" + + "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" + + "loud.translation.v3beta1.CreateGlossaryR" + + "equest\032\035.google.longrunning.Operation\"|\312" + + "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" + + "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" + + "rojects/*/locations/*}/glossaries:\010gloss" + + "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" + + "anslation.v3beta1.ListGlossariesRequest\032" + + "8.google.cloud.translation.v3beta1.ListG" + + "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" + + "5\0223/v3beta1/{parent=projects/*/locations" + + "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." + + "cloud.translation.v3beta1.GetGlossaryReq" + + "uest\032*.google.cloud.translation.v3beta1." + + "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" + + "projects/*/locations/*/glossaries/*}\022\337\001\n" + + "\016DeleteGlossary\0227.google.cloud.translati" + + "on.v3beta1.DeleteGlossaryRequest\032\035.googl" + + "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" + + "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" + + "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" + + "ations/*/glossaries/*}\032~\312A\030translate.goo" + + "gleapis.com\322A`https://www.googleapis.com" + + "/auth/cloud-platform,https://www.googlea" + + "pis.com/auth/cloud-translationB\360\001\n\"com.g" + + "oogle.cloud.translate.v3beta1B\027Translati" + + "onServiceProtoP\001ZFcloud.google.com/go/tr" + + "anslation/apiv3beta1/translationpb;trans" + + "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" + + "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" + + "Google::Cloud::Translate::V3beta1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, + new java.lang.String[] { + "Glossary", "IgnoreCase", + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, + new java.lang.String[] { + "Contents", + "MimeType", + "SourceLanguageCode", + "TargetLanguageCode", + "Parent", + "Model", + "GlossaryConfig", + "Labels", + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, + new java.lang.String[] { + "Translations", "GlossaryTranslations", + }); + internal_static_google_cloud_translation_v3beta1_Translation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Translation_descriptor, + new java.lang.String[] { + "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, + new java.lang.String[] { + "Parent", "Model", "Content", "MimeType", "Labels", "Source", + }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "Confidence", + }); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayLanguageCode", "Model", + }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, + new java.lang.String[] { + "Languages", + }); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, + new java.lang.String[] { + "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", + }); + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, + new java.lang.String[] { + "InputUri", + }); + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, + new java.lang.String[] { + "MimeType", "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, + new java.lang.String[] { + "OutputUriPrefix", + }); + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, + new java.lang.String[] { + "Content", "GcsSource", "MimeType", "Source", + }); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "MimeType", "Destination", + }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCode", + "DocumentInputConfig", + "DocumentOutputConfig", + "Model", + "GlossaryConfig", + "Labels", + }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, + new java.lang.String[] { + "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", + }); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, + new java.lang.String[] { + "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "Models", + "InputConfigs", + "OutputConfig", + "Glossaries", + "Labels", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, + new java.lang.String[] { + "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, + new java.lang.String[] { + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, + new java.lang.String[] { + "Name", + "LanguagePair", + "LanguageCodesSet", + "InputConfig", + "EntryCount", + "SubmitTime", + "EndTime", + "Languages", + }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, + new java.lang.String[] { + "SourceLanguageCode", "TargetLanguageCode", + }); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = + internal_static_google_cloud_translation_v3beta1_Glossary_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, + new java.lang.String[] { + "LanguageCodes", + }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, + new java.lang.String[] { + "Parent", "Glossary", + }); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, + new java.lang.String[] { + "Glossaries", "NextPageToken", + }); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, + new java.lang.String[] { + "Name", "State", "SubmitTime", + }); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, + new java.lang.String[] { + "Name", "SubmitTime", "EndTime", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, + new java.lang.String[] { + "Parent", + "SourceLanguageCode", + "TargetLanguageCodes", + "InputConfigs", + "OutputConfig", + "Models", + "Glossaries", + "FormatConversions", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "Source", + }); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, + new java.lang.String[] { + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + "EndTime", + }); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, + new java.lang.String[] { + "State", + "TotalPages", + "TranslatedPages", + "FailedPages", + "TotalBillablePages", + "TotalCharacters", + "TranslatedCharacters", + "FailedCharacters", + "TotalBillableCharacters", + "SubmitTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto rename to java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/detectlanguage/SyncDetectLanguageStringStringStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/AsyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesLocationname.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/listglossaries/SyncListGlossariesString.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/AsyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextLocationnameStringStringStringStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/translatetext/SyncTranslateTextStringStringStringStringStringListstring.java diff --git a/owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservicesettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/stub/translationservicestubsettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/AsyncBatchTranslateTextLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatetext/SyncBatchTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/AsyncCreateGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryLocationnameGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/createglossary/SyncCreateGlossaryStringGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/AsyncDeleteGlossaryLRO.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/deleteglossary/SyncDeleteGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/AsyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguage.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageLocationnameStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/detectlanguage/SyncDetectLanguageStringStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/AsyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossary.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryGlossaryname.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getglossary/SyncGetGlossaryString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/AsyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguages.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/AsyncListGlossariesPaged.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossaries.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesLocationnameString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/listglossaries/SyncListGlossariesStringString.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/AsyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java similarity index 100% rename from owl-bot-staging/java-translate/v3beta1/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java rename to java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservicesettings/translatetext/SyncTranslateText.java diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java deleted file mode 100644 index 2be31aa95c39..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java +++ /dev/null @@ -1,2010 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.stub.TranslationServiceStub; -import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Provides natural language translation operations. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String targetLanguageCode = "targetLanguageCode-106414698";
- *   List contents = new ArrayList<>();
- *   TranslateTextResponse response =
- *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
- * }
- * }
- * - *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources - * such as threads. In the example above, try-with-resources is used, which automatically calls - * close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of TranslationServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newHttpJsonBuilder().build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class TranslationServiceClient implements BackgroundResource { - private final TranslationServiceSettings settings; - private final TranslationServiceStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of TranslationServiceClient with default settings. */ - public static final TranslationServiceClient create() throws IOException { - return create(TranslationServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final TranslationServiceClient create(TranslationServiceSettings settings) - throws IOException { - return new TranslationServiceClient(settings); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(TranslationServiceSettings). - */ - public static final TranslationServiceClient create(TranslationServiceStub stub) { - return new TranslationServiceClient(stub); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected TranslationServiceClient(TranslationServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final TranslationServiceSettings getSettings() { - return settings; - } - - public TranslationServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - LocationName parent, String targetLanguageCode, List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - String parent, String targetLanguageCode, List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(
-   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The `model` type requested for this translation. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

For global (non-regionalized) requests, use `location-id` `global`. For example, - * `projects/{project-number-or-id}/locations/global/models/general/nmt`. - *

If not provided, the default Google model (NMT) will be used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for - * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If - * the source language isn't specified, the API attempts to identify the source language - * automatically and returns the source language within the response. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - LocationName parent, - String model, - String mimeType, - String sourceLanguageCode, - String targetLanguageCode, - List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setMimeType(mimeType) - .setSourceLanguageCode(sourceLanguageCode) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   String targetLanguageCode = "targetLanguageCode-106414698";
-   *   List contents = new ArrayList<>();
-   *   TranslateTextResponse response =
-   *       translationServiceClient.translateText(
-   *           parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for requests using AutoML models or custom glossaries. - *

Models and glossaries must be within the same region (have same location-id), otherwise - * an INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The `model` type requested for this translation. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

For global (non-regionalized) requests, use `location-id` `global`. For example, - * `projects/{project-number-or-id}/locations/global/models/general/nmt`. - *

If not provided, the default Google model (NMT) will be used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for - * example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If - * the source language isn't specified, the API attempts to identify the source language - * automatically and returns the source language within the response. - * @param targetLanguageCode Required. The ISO-639 language code to use for translation of the - * input text, set to one of the language codes listed in Language Support. - * @param contents Required. The content of the input in string format. We recommend the total - * content be less than 30,000 codepoints. The max length of this field is 1024. Use - * BatchTranslateText for larger text. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText( - String parent, - String model, - String mimeType, - String sourceLanguageCode, - String targetLanguageCode, - List contents) { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setMimeType(mimeType) - .setSourceLanguageCode(sourceLanguageCode) - .setTargetLanguageCode(targetLanguageCode) - .addAllContents(contents) - .build(); - return translateText(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   TranslateTextResponse response = translationServiceClient.translateText(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText(TranslateTextRequest request) { - return translateTextCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateTextCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateTextResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable translateTextCallable() { - return stub.translateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String content = "content951530617";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param content The content of the input stored as a string. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage( - LocationName parent, String model, String mimeType, String content) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setMimeType(mimeType) - .setContent(content) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   String content = "content951530617";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType, content);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @param content The content of the input stored as a string. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage( - String parent, String model, String mimeType, String content) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setMimeType(mimeType) - .setContent(content) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { - return detectLanguageCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.detectLanguageCallable().futureCall(request);
-   *   // Do something.
-   *   DetectLanguageResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - detectLanguageCallable() { - return stub.detectLanguageCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - LocationName parent, String model, String displayLanguageCode) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setDisplayLanguageCode(displayLanguageCode) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - String parent, String model, String displayLanguageCode) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setDisplayLanguageCode(displayLanguageCode) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { - return getSupportedLanguagesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
-   *   // Do something.
-   *   SupportedLanguages response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getSupportedLanguagesCallable() { - return stub.getSupportedLanguagesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .setIsTranslateNativePdfOnly(true)
-   *           .setEnableShadowRemovalNativePdf(true)
-   *           .build();
-   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { - return translateDocumentCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .setIsTranslateNativePdfOnly(true)
-   *           .setEnableShadowRemovalNativePdf(true)
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - translateDocumentCallable() { - return stub.translateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   BatchTranslateResponse response =
-   *       translationServiceClient.batchTranslateTextAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateTextAsync(BatchTranslateTextRequest request) { - return batchTranslateTextOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return stub.batchTranslateTextOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable batchTranslateTextCallable() { - return stub.batchTranslateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - LocationName parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The ISO-639 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The ISO-639 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - String parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { - return batchTranslateDocumentOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return stub.batchTranslateDocumentOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of document in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .setCustomizedAttribution("customizedAttribution557650238")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchTranslateDocumentCallable() { - return stub.batchTranslateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - LocationName parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setGlossary(glossary) - .build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - String parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - CreateGlossaryRequest request) { - return createGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createGlossaryOperationCallable() { - return stub.createGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.createGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createGlossaryCallable() { - return stub.createGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(LocationName parent) { - ListGlossariesRequest request = - ListGlossariesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Glossary element : translationServiceClient.listGlossaries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(String parent) { - ListGlossariesRequest request = ListGlossariesRequest.newBuilder().setParent(parent).build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { - return listGlossariesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Glossary element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesPagedCallable() { - return stub.listGlossariesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListGlossariesResponse response =
-   *         translationServiceClient.listGlossariesCallable().call(request);
-   *     for (Glossary element : response.getGlossariesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesCallable() { - return stub.listGlossariesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GlossaryName name) { - GetGlossaryRequest request = - GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(String name) { - GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   Glossary response = translationServiceClient.getGlossary(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GetGlossaryRequest request) { - return getGlossaryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getGlossaryCallable() { - return stub.getGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - GlossaryName name) { - DeleteGlossaryRequest request = - DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - String name) { - DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - DeleteGlossaryRequest request) { - return deleteGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   DeleteGlossaryResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable() { - return stub.deleteGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteGlossaryCallable() { - return stub.deleteGlossaryCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListGlossariesPagedResponse - extends AbstractPagedListResponse< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListGlossariesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListGlossariesPagedResponse(ListGlossariesPage page) { - super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGlossariesPage - extends AbstractPage< - ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { - - private ListGlossariesPage( - PageContext context, - ListGlossariesResponse response) { - super(context, response); - } - - private static ListGlossariesPage createEmptyPage() { - return new ListGlossariesPage(null, null); - } - - @Override - protected ListGlossariesPage createPage( - PageContext context, - ListGlossariesResponse response) { - return new ListGlossariesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGlossariesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGlossariesFixedSizeCollection createEmptyCollection() { - return new ListGlossariesFixedSizeCollection(null, 0); - } - - @Override - protected ListGlossariesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGlossariesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java deleted file mode 100644 index 7bd9560be9eb..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java +++ /dev/null @@ -1,375 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.translate.v3.stub.TranslationServiceStubSettings; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class TranslationServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateTextOperationSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateDocumentOperationSettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); - } - - public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) - throws IOException { - return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return TranslationServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return TranslationServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return TranslationServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for TranslationServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(TranslationServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(TranslationServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(TranslationServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(TranslationServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); - } - - public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { - return ((TranslationServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return getStubSettingsBuilder().translateTextSettings(); - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return getStubSettingsBuilder().detectLanguageSettings(); - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getStubSettingsBuilder().getSupportedLanguagesSettings(); - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return getStubSettingsBuilder().translateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return getStubSettingsBuilder().batchTranslateTextSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return getStubSettingsBuilder().batchTranslateTextOperationSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return getStubSettingsBuilder().batchTranslateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return getStubSettingsBuilder().createGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return getStubSettingsBuilder().createGlossaryOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return getStubSettingsBuilder().listGlossariesSettings(); - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getStubSettingsBuilder().getGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return getStubSettingsBuilder().deleteGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return getStubSettingsBuilder().deleteGlossaryOperationSettings(); - } - - @Override - public TranslationServiceSettings build() throws IOException { - return new TranslationServiceSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json deleted file mode 100644 index b5190737c2ce..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.translation.v3", - "libraryPackage": "com.google.cloud.translate.v3", - "services": { - "TranslationService": { - "clients": { - "grpc": { - "libraryClient": "TranslationServiceClient", - "rpcs": { - "BatchTranslateDocument": { - "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] - }, - "BatchTranslateText": { - "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] - }, - "CreateGlossary": { - "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] - }, - "DeleteGlossary": { - "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] - }, - "DetectLanguage": { - "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] - }, - "GetGlossary": { - "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] - }, - "GetSupportedLanguages": { - "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] - }, - "ListGlossaries": { - "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] - }, - "TranslateDocument": { - "methods": ["translateDocument", "translateDocumentCallable"] - }, - "TranslateText": { - "methods": ["translateText", "translateText", "translateText", "translateText", "translateText", "translateTextCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java deleted file mode 100644 index cefd0d9f7223..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Cloud Translation API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= TranslationServiceClient ======================= - * - *

Service Description: Provides natural language translation operations. - * - *

Sample for TranslationServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String targetLanguageCode = "targetLanguageCode-106414698";
- *   List contents = new ArrayList<>();
- *   TranslateTextResponse response =
- *       translationServiceClient.translateText(parent, targetLanguageCode, contents);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.translate.v3; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java deleted file mode 100644 index 9bf80365681a..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java deleted file mode 100644 index 248781dac1b5..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceStub extends TranslationServiceStub { - private static final MethodDescriptor - translateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - detectLanguageMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") - .setRequestMarshaller( - ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getSupportedLanguagesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") - .setRequestMarshaller( - ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - translateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listGlossariesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") - .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcTranslationServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings translateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - detectLanguageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getSupportedLanguagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - translateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings batchTranslateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchTranslateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listGlossariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - operationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - operationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - operationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java deleted file mode 100644 index 97038ade44c6..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonTranslationServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java deleted file mode 100644 index 18d3e72b5280..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/HttpJsonTranslationServiceStub.java +++ /dev/null @@ -1,910 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.HttpRule; -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonTranslationServiceStub extends TranslationServiceStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(DeleteGlossaryMetadata.getDescriptor()) - .add(BatchTranslateResponse.getDescriptor()) - .add(BatchTranslateMetadata.getDescriptor()) - .add(Glossary.getDescriptor()) - .add(CreateGlossaryMetadata.getDescriptor()) - .add(BatchTranslateDocumentResponse.getDescriptor()) - .add(DeleteGlossaryResponse.getDescriptor()) - .add(BatchTranslateDocumentMetadata.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - translateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:translateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3/{parent=projects/*}:translateText") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - detectLanguageMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/DetectLanguage") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:detectLanguage", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3/{parent=projects/*}:detectLanguage") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getSupportedLanguagesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/GetSupportedLanguages") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}/supportedLanguages", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3/{parent=projects/*}/supportedLanguages") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "displayLanguageCode", request.getDisplayLanguageCode()); - serializer.putQueryParam(fields, "model", request.getModel()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SupportedLanguages.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - translateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/TranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:translateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - batchTranslateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:batchTranslateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateTextRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - batchTranslateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3.TranslationService/BatchTranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}:batchTranslateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateDocumentRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - createGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/CreateGlossary") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("glossary", request.getGlossary(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listGlossariesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/ListGlossaries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/GetGlossary") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Glossary.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3.TranslationService/DeleteGlossary") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonTranslationServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create( - clientContext, - callableFactory, - typeRegistry, - ImmutableMap.builder() - .put( - "google.longrunning.Operations.CancelOperation", - HttpRule.newBuilder() - .setPost("/v3/{name=projects/*/locations/*/operations/*}:cancel") - .build()) - .put( - "google.longrunning.Operations.DeleteOperation", - HttpRule.newBuilder() - .setDelete("/v3/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.GetOperation", - HttpRule.newBuilder() - .setGet("/v3/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.ListOperations", - HttpRule.newBuilder() - .setGet("/v3/{name=projects/*/locations/*}/operations") - .build()) - .put( - "google.longrunning.Operations.WaitOperation", - HttpRule.newBuilder() - .setPost("/v3/{name=projects/*/locations/*/operations/*}:wait") - .build()) - .build()); - - HttpJsonCallSettings - translateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - detectLanguageTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - getSupportedLanguagesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - translateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings batchTranslateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - batchTranslateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings createGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listGlossariesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(translateTextMethodDescriptor); - methodDescriptors.add(detectLanguageMethodDescriptor); - methodDescriptors.add(getSupportedLanguagesMethodDescriptor); - methodDescriptors.add(translateDocumentMethodDescriptor); - methodDescriptors.add(batchTranslateTextMethodDescriptor); - methodDescriptors.add(batchTranslateDocumentMethodDescriptor); - methodDescriptors.add(createGlossaryMethodDescriptor); - methodDescriptors.add(listGlossariesMethodDescriptor); - methodDescriptors.add(getGlossaryMethodDescriptor); - methodDescriptors.add(deleteGlossaryMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java deleted file mode 100644 index 9b277a5ca6a4..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class TranslationServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable translateTextCallable() { - throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); - } - - public UnaryCallable detectLanguageCallable() { - throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); - } - - public UnaryCallable - getSupportedLanguagesCallable() { - throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); - } - - public UnaryCallable - translateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); - } - - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateTextOperationCallable()"); - } - - public UnaryCallable batchTranslateTextCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); - } - - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateDocumentOperationCallable()"); - } - - public UnaryCallable batchTranslateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); - } - - public OperationCallable - createGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); - } - - public UnaryCallable createGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); - } - - public UnaryCallable - listGlossariesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); - } - - public UnaryCallable listGlossariesCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); - } - - public UnaryCallable getGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); - } - - public OperationCallable - deleteGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); - } - - public UnaryCallable deleteGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java deleted file mode 100644 index 96107b428481..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java +++ /dev/null @@ -1,868 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.stub; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3.BatchTranslateMetadata; -import com.google.cloud.translate.v3.BatchTranslateResponse; -import com.google.cloud.translate.v3.BatchTranslateTextRequest; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.DetectLanguageRequest; -import com.google.cloud.translate.v3.DetectLanguageResponse; -import com.google.cloud.translate.v3.GetGlossaryRequest; -import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.ListGlossariesRequest; -import com.google.cloud.translate.v3.ListGlossariesResponse; -import com.google.cloud.translate.v3.SupportedLanguages; -import com.google.cloud.translate.v3.TranslateDocumentRequest; -import com.google.cloud.translate.v3.TranslateDocumentResponse; -import com.google.cloud.translate.v3.TranslateTextRequest; -import com.google.cloud.translate.v3.TranslateTextResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceStubSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceStubSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class TranslationServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-translation") - .build(); - - private final UnaryCallSettings - translateTextSettings; - private final UnaryCallSettings - detectLanguageSettings; - private final UnaryCallSettings - getSupportedLanguagesSettings; - private final UnaryCallSettings - translateDocumentSettings; - private final UnaryCallSettings batchTranslateTextSettings; - private final OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings - batchTranslateDocumentSettings; - private final OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings createGlossarySettings; - private final OperationCallSettings - createGlossaryOperationSettings; - private final PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings getGlossarySettings; - private final UnaryCallSettings deleteGlossarySettings; - private final OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - - private static final PagedListDescriptor - LIST_GLOSSARIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { - return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListGlossariesRequest injectPageSize( - ListGlossariesRequest payload, int pageSize) { - return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListGlossariesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGlossariesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListGlossariesResponse payload) { - return payload.getGlossariesList() == null - ? ImmutableList.of() - : payload.getGlossariesList(); - } - }; - - private static final PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - LIST_GLOSSARIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListGlossariesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); - return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return translateTextSettings; - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - public TranslationServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcTranslationServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonTranslationServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "translate.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "translate.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - translateTextSettings = settingsBuilder.translateTextSettings().build(); - detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); - getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); - translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); - batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); - batchTranslateTextOperationSettings = - settingsBuilder.batchTranslateTextOperationSettings().build(); - batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); - batchTranslateDocumentOperationSettings = - settingsBuilder.batchTranslateDocumentOperationSettings().build(); - createGlossarySettings = settingsBuilder.createGlossarySettings().build(); - createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); - listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); - getGlossarySettings = settingsBuilder.getGlossarySettings().build(); - deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); - deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); - } - - /** Builder for TranslationServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - translateTextSettings; - private final UnaryCallSettings.Builder - detectLanguageSettings; - private final UnaryCallSettings.Builder - getSupportedLanguagesSettings; - private final UnaryCallSettings.Builder - translateDocumentSettings; - private final UnaryCallSettings.Builder - batchTranslateTextSettings; - private final OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings.Builder - batchTranslateDocumentSettings; - private final OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings.Builder - createGlossarySettings; - private final OperationCallSettings.Builder< - CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> - createGlossaryOperationSettings; - private final PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings.Builder getGlossarySettings; - private final UnaryCallSettings.Builder - deleteGlossarySettings; - private final OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("no_retry_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); - batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); - createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createGlossaryOperationSettings = OperationCallSettings.newBuilder(); - listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); - getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - initDefaults(this); - } - - protected Builder(TranslationServiceStubSettings settings) { - super(settings); - - translateTextSettings = settings.translateTextSettings.toBuilder(); - detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); - getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); - translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); - batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); - batchTranslateTextOperationSettings = - settings.batchTranslateTextOperationSettings.toBuilder(); - batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); - batchTranslateDocumentOperationSettings = - settings.batchTranslateDocumentOperationSettings.toBuilder(); - createGlossarySettings = settings.createGlossarySettings.toBuilder(); - createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); - listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); - getGlossarySettings = settings.getGlossarySettings.toBuilder(); - deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); - deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .translateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .detectLanguageSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getSupportedLanguagesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .translateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchTranslateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchTranslateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listGlossariesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .batchTranslateTextOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .batchTranslateDocumentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - BatchTranslateDocumentResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create( - BatchTranslateDocumentMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return translateTextSettings; - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - @Override - public TranslationServiceStubSettings build() throws IOException { - return new TranslationServiceStubSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json deleted file mode 100644 index 50a0b6fd1797..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json +++ /dev/null @@ -1,1946 +0,0 @@ -[ - { - "name": "com.google.api.ClientLibraryDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryOrganization", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.FieldBehavior", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LaunchStage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$History", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Style", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchDocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.BatchTranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.CreateGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DeleteGlossaryResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectLanguageResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DetectedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentTranslation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.DocumentTranslation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsDestination$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GcsSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GetSupportedLanguagesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodePair$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Glossary$LanguageCodesSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GlossaryInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.GlossaryInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.InputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.InputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.ListGlossariesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.OutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.OutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguages", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.SupportedLanguages$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextGlossaryConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.TranslateTextResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Translation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3.Translation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - } -] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java deleted file mode 100644 index 2dbe7ffafa73..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationService implements MockGrpcService { - private final MockTranslationServiceImpl serviceImpl; - - public MockTranslationService() { - serviceImpl = new MockTranslationServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java deleted file mode 100644 index f5d5d4f8e4af..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import com.google.api.core.BetaApi; -import com.google.cloud.translate.v3.TranslationServiceGrpc.TranslationServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationServiceImpl extends TranslationServiceImplBase { - private List requests; - private Queue responses; - - public MockTranslationServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void translateText( - TranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateTextResponse) { - requests.add(request); - responseObserver.onNext(((TranslateTextResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateTextResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void detectLanguage( - DetectLanguageRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DetectLanguageResponse) { - requests.add(request); - responseObserver.onNext(((DetectLanguageResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DetectLanguage, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DetectLanguageResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getSupportedLanguages( - GetSupportedLanguagesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SupportedLanguages) { - requests.add(request); - responseObserver.onNext(((SupportedLanguages) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SupportedLanguages.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void translateDocument( - TranslateDocumentRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateDocumentResponse) { - requests.add(request); - responseObserver.onNext(((TranslateDocumentResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateDocumentResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateText( - BatchTranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateDocument( - BatchTranslateDocumentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createGlossary( - CreateGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listGlossaries( - ListGlossariesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListGlossariesResponse) { - requests.add(request); - responseObserver.onNext(((ListGlossariesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListGlossaries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListGlossariesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Glossary) { - requests.add(request); - responseObserver.onNext(((Glossary) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Glossary.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteGlossary( - DeleteGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java deleted file mode 100644 index 1a414ea7557d..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java +++ /dev/null @@ -1,1197 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.translate.v3.stub.HttpJsonTranslationServiceStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonTranslationServiceStub.getMethodDescriptors(), - TranslationServiceSettings.getDefaultEndpoint()); - TranslationServiceSettings settings = - TranslationServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest2() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest3() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest4() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest4() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } -} diff --git a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java deleted file mode 100644 index 9293f056bd67..000000000000 --- a/owl-bot-staging/java-translate/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java +++ /dev/null @@ -1,1161 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3; - -import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTranslationService mockTranslationService; - private LocalChannelProvider channelProvider; - private TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTranslationService = new MockTranslationService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TranslationServiceSettings settings = - TranslationServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest2() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText(parent, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText(parent, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest3() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateTextTest4() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - - TranslateTextResponse actualResponse = - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCode, actualRequest.getTargetLanguageCode()); - Assert.assertEquals(contents, actualRequest.getContentsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - String targetLanguageCode = "targetLanguageCode-106414698"; - List contents = new ArrayList<>(); - client.translateText( - parent, model, mimeType, sourceLanguageCode, targetLanguageCode, contents); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(content, actualRequest.getContent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType, content); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertEquals(content, actualRequest.getContent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - String content = "content951530617"; - client.detectLanguage(parent, model, mimeType, content); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - client.getSupportedLanguages(parent, model, displayLanguageCode); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); - Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); - Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); - Assert.assertEquals(request.getModel(), actualRequest.getModel()); - Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertEquals( - request.getCustomizedAttribution(), actualRequest.getCustomizedAttribution()); - Assert.assertEquals( - request.getIsTranslateNativePdfOnly(), actualRequest.getIsTranslateNativePdfOnly()); - Assert.assertEquals( - request.getEnableShadowRemovalNativePdf(), actualRequest.getEnableShadowRemovalNativePdf()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setCustomizedAttribution("customizedAttribution557650238") - .setIsTranslateNativePdfOnly(true) - .setEnableShadowRemovalNativePdf(true) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals( - request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); - Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); - Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); - Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listGlossaries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockTranslationService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .build(); - mockTranslationService.addResponse(expectedResponse); - - String name = "name3373707"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String name = "name3373707"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java deleted file mode 100644 index f773156a3adf..000000000000 --- a/owl-bot-staging/java-translate/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java +++ /dev/null @@ -1,1157 +0,0 @@ -package com.google.cloud.translate.v3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateTextMethod() { - io.grpc.MethodDescriptor getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDetectLanguageMethod() { - io.grpc.MethodDescriptor getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DetectLanguageResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.SupportedLanguages.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { - io.grpc.MethodDescriptor getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.TranslateDocumentResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { - io.grpc.MethodDescriptor getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListGlossariesMethod() { - io.grpc.MethodDescriptor getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.ListGlossariesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGlossaryMethod() { - io.grpc.MethodDescriptor getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.Glossary.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3.DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TranslationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static abstract class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText(com.google.cloud.translate.v3.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateTextResponse translateText(com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3.Glossary getGlossary(com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateText( - com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of document in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText((com.google.cloud.translate.v3.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage((com.google.cloud.translate.v3.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument((com.google.cloud.translate.v3.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText((com.google.cloud.translate.v3.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary((com.google.cloud.translate.v3.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries((com.google.cloud.translate.v3.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary((com.google.cloud.translate.v3.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary((com.google.cloud.translate.v3.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateTextRequest, - com.google.cloud.translate.v3.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.TranslateDocumentRequest, - com.google.cloud.translate.v3.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.CreateGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary>( - service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DeleteGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private static abstract class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index cf8b52647f65..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface CreateGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The glossary. - */ - com.google.cloud.translate.v3.Glossary getGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index a062efef4d30..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface DeleteGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 741637e2de6f..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public interface GetGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java deleted file mode 100644 index ff6ad57a5288..000000000000 --- a/owl-bot-staging/java-translate/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java +++ /dev/null @@ -1,879 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3/translation_service.proto - -package com.google.cloud.translate.v3; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Translation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/translate/v3/translation_" + - "service.proto\022\033google.cloud.translation." + - "v3\032\034google/api/annotations.proto\032\027google" + - "/api/client.proto\032\037google/api/field_beha" + - "vior.proto\032\031google/api/resource.proto\032#g" + - "oogle/longrunning/operations.proto\032\037goog" + - "le/protobuf/timestamp.proto\"P\n\033Translate" + - "TextGlossaryConfig\022\026\n\010glossary\030\001 \001(\tB\004\342A" + - "\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"\275\003\n\024Transl" + - "ateTextRequest\022\026\n\010contents\030\001 \003(\tB\004\342A\001\002\022\027" + - "\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024source_langua" + - "ge_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_language_c" + - "ode\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(\tB*\342A\001\002\372A#" + - "\n!locations.googleapis.com/Location\022\023\n\005m" + - "odel\030\006 \001(\tB\004\342A\001\001\022W\n\017glossary_config\030\007 \001(" + - "\01328.google.cloud.translation.v3.Translat" + - "eTextGlossaryConfigB\004\342A\001\001\022S\n\006labels\030\n \003(" + - "\0132=.google.cloud.translation.v3.Translat" + - "eTextRequest.LabelsEntryB\004\342A\001\001\032-\n\013Labels" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001" + - "\n\025TranslateTextResponse\022>\n\014translations\030" + - "\001 \003(\0132(.google.cloud.translation.v3.Tran" + - "slation\022G\n\025glossary_translations\030\003 \003(\0132(" + - ".google.cloud.translation.v3.Translation" + - "\"\250\001\n\013Translation\022\027\n\017translated_text\030\001 \001(" + - "\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_language_co" + - "de\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328.goog" + - "le.cloud.translation.v3.TranslateTextGlo" + - "ssaryConfig\"\243\002\n\025DetectLanguageRequest\022:\n" + - "\006parent\030\005 \001(\tB*\342A\001\002\372A#\n!locations.google" + - "apis.com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021" + - "\n\007content\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A" + - "\001\001\022T\n\006labels\030\006 \003(\0132>.google.cloud.transl" + - "ation.v3.DetectLanguageRequest.LabelsEnt" + - "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + - "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + - "ce\030\002 \001(\002\"Z\n\026DetectLanguageResponse\022@\n\tla" + - "nguages\030\001 \003(\0132-.google.cloud.translation" + - ".v3.DetectedLanguage\"\224\001\n\034GetSupportedLan" + - "guagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002\372A#\n!" + - "locations.googleapis.com/Location\022#\n\025dis" + - "play_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005model\030" + - "\002 \001(\tB\004\342A\001\001\"W\n\022SupportedLanguages\022A\n\tlan" + - "guages\030\001 \003(\0132..google.cloud.translation." + - "v3.SupportedLanguage\"p\n\021SupportedLanguag" + - "e\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014display_name" + - "\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010\022\026\n\016suppor" + - "t_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n\tinput_uri" + - "\030\001 \001(\tB\004\342A\001\002\"n\n\013InputConfig\022\027\n\tmime_type" + - "\030\001 \001(\tB\004\342A\001\001\022<\n\ngcs_source\030\002 \001(\0132&.googl" + - "e.cloud.translation.v3.GcsSourceH\000B\010\n\006so" + - "urce\"1\n\016GcsDestination\022\037\n\021output_uri_pre" + - "fix\030\001 \001(\tB\004\342A\001\002\"e\n\014OutputConfig\022F\n\017gcs_d" + - "estination\030\001 \001(\0132+.google.cloud.translat" + - "ion.v3.GcsDestinationH\000B\r\n\013destination\"\203" + - "\001\n\023DocumentInputConfig\022\021\n\007content\030\001 \001(\014H" + - "\000\022<\n\ngcs_source\030\002 \001(\0132&.google.cloud.tra" + - "nslation.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001" + - "(\tB\010\n\006source\"\214\001\n\024DocumentOutputConfig\022L\n" + - "\017gcs_destination\030\001 \001(\0132+.google.cloud.tr" + - "anslation.v3.GcsDestinationB\004\342A\001\001H\000\022\027\n\tm" + - "ime_type\030\003 \001(\tB\004\342A\001\001B\r\n\013destination\"\240\005\n\030" + - "TranslateDocumentRequest\022\024\n\006parent\030\001 \001(\t" + - "B\004\342A\001\002\022\"\n\024source_language_code\030\002 \001(\tB\004\342A" + - "\001\001\022\"\n\024target_language_code\030\003 \001(\tB\004\342A\001\002\022U" + - "\n\025document_input_config\030\004 \001(\01320.google.c" + - "loud.translation.v3.DocumentInputConfigB" + - "\004\342A\001\002\022W\n\026document_output_config\030\005 \001(\01321." + - "google.cloud.translation.v3.DocumentOutp" + - "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022W\n\017g" + - "lossary_config\030\007 \001(\01328.google.cloud.tran" + - "slation.v3.TranslateTextGlossaryConfigB\004" + - "\342A\001\001\022W\n\006labels\030\010 \003(\0132A.google.cloud.tran" + - "slation.v3.TranslateDocumentRequest.Labe" + - "lsEntryB\004\342A\001\001\022$\n\026customized_attribution\030" + - "\n \001(\tB\004\342A\001\001\022*\n\034is_translate_native_pdf_o" + - "nly\030\013 \001(\010B\004\342A\001\001\022.\n enable_shadow_removal" + - "_native_pdf\030\014 \001(\010B\004\342A\001\001\032-\n\013LabelsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + - "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + - "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + - "ge_code\030\003 \001(\t\"\246\002\n\031TranslateDocumentRespo" + - "nse\022N\n\024document_translation\030\001 \001(\01320.goog" + - "le.cloud.translation.v3.DocumentTranslat" + - "ion\022W\n\035glossary_document_translation\030\002 \001" + - "(\01320.google.cloud.translation.v3.Documen" + - "tTranslation\022\r\n\005model\030\003 \001(\t\022Q\n\017glossary_" + - "config\030\004 \001(\01328.google.cloud.translation." + - "v3.TranslateTextGlossaryConfig\"\220\006\n\031Batch" + - "TranslateTextRequest\022:\n\006parent\030\001 \001(\tB*\342A" + - "\001\002\372A#\n!locations.googleapis.com/Location" + - "\022\"\n\024source_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025" + - "target_language_codes\030\003 \003(\tB\004\342A\001\002\022X\n\006mod" + - "els\030\004 \003(\0132B.google.cloud.translation.v3." + - "BatchTranslateTextRequest.ModelsEntryB\004\342" + - "A\001\001\022E\n\rinput_configs\030\005 \003(\0132(.google.clou" + - "d.translation.v3.InputConfigB\004\342A\001\002\022F\n\rou" + - "tput_config\030\006 \001(\0132).google.cloud.transla" + - "tion.v3.OutputConfigB\004\342A\001\002\022`\n\nglossaries" + - "\030\007 \003(\0132F.google.cloud.translation.v3.Bat" + - "chTranslateTextRequest.GlossariesEntryB\004" + - "\342A\001\001\022X\n\006labels\030\t \003(\0132B.google.cloud.tran" + - "slation.v3.BatchTranslateTextRequest.Lab" + - "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017GlossariesEntry" + - "\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cl" + - "oud.translation.v3.TranslateTextGlossary" + - "Config:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"\316\002\n\026BatchTranslateMeta" + - "data\022H\n\005state\030\001 \001(\01629.google.cloud.trans" + - "lation.v3.BatchTranslateMetadata.State\022\035" + - "\n\025translated_characters\030\002 \001(\003\022\031\n\021failed_" + - "characters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001" + - "(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.protobu" + - "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + - "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + - "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\313\001\n\026B" + - "atchTranslateResponse\022\030\n\020total_character" + - "s\030\001 \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031" + - "\n\021failed_characters\030\003 \001(\003\022/\n\013submit_time" + - "\030\004 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" + - "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + - "\"]\n\023GlossaryInputConfig\022<\n\ngcs_source\030\001 " + - "\001(\0132&.google.cloud.translation.v3.GcsSou" + - "rceH\000B\010\n\006source\"\237\005\n\010Glossary\022\022\n\004name\030\001 \001" + - "(\tB\004\342A\001\002\022O\n\rlanguage_pair\030\003 \001(\01326.google" + - ".cloud.translation.v3.Glossary.LanguageC" + - "odePairH\000\022T\n\022language_codes_set\030\004 \001(\01326." + - "google.cloud.translation.v3.Glossary.Lan" + - "guageCodesSetH\000\022F\n\014input_config\030\005 \001(\01320." + - "google.cloud.translation.v3.GlossaryInpu" + - "tConfig\022\031\n\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013su" + - "bmit_time\030\007 \001(\0132\032.google.protobuf.Timest" + - "ampB\004\342A\001\003\0222\n\010end_time\030\010 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\003\022\032\n\014display_name\030\t " + - "\001(\tB\004\342A\001\001\032N\n\020LanguageCodePair\022\034\n\024source_" + - "language_code\030\001 \001(\t\022\034\n\024target_language_c" + - "ode\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016languag" + - "e_codes\030\001 \003(\t:e\352Ab\n!translate.googleapis" + - ".com/Glossary\022=projects/{project}/locati" + - "ons/{location}/glossaries/{glossary}B\013\n\t" + - "languages\"\222\001\n\025CreateGlossaryRequest\022:\n\006p" + - "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + - "is.com/Location\022=\n\010glossary\030\002 \001(\0132%.goog" + - "le.cloud.translation.v3.GlossaryB\004\342A\001\002\"N" + - "\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + - "\372A#\n!translate.googleapis.com/Glossary\"Q" + - "\n\025DeleteGlossaryRequest\0228\n\004name\030\001 \001(\tB*\342" + - "A\001\002\372A#\n!translate.googleapis.com/Glossar" + - "y\"\234\001\n\025ListGlossariesRequest\022:\n\006parent\030\001 " + - "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" + - "ocation\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + - "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + - "\"l\n\026ListGlossariesResponse\0229\n\nglossaries" + - "\030\001 \003(\0132%.google.cloud.translation.v3.Glo" + - "ssary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n\026Creat" + - "eGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state" + - "\030\002 \001(\01629.google.cloud.translation.v3.Cre" + - "ateGlossaryMetadata.State\022/\n\013submit_time" + - "\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n\005St" + - "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" + - "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING" + - "\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossaryMeta" + - "data\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\01629.goog" + - "le.cloud.translation.v3.DeleteGlossaryMe" + - "tadata.State\022/\n\013submit_time\030\003 \001(\0132\032.goog" + - "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + - "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + - "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + - "ED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030" + - "\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.prot" + - "obuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.googl" + - "e.protobuf.Timestamp\"\202\007\n\035BatchTranslateD" + - "ocumentRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + - "!locations.googleapis.com/Location\022\"\n\024so" + - "urce_language_code\030\002 \001(\tB\004\342A\001\002\022#\n\025target" + - "_language_codes\030\003 \003(\tB\004\342A\001\002\022R\n\rinput_con" + - "figs\030\004 \003(\01325.google.cloud.translation.v3" + - ".BatchDocumentInputConfigB\004\342A\001\002\022S\n\routpu" + - "t_config\030\005 \001(\01326.google.cloud.translatio" + - "n.v3.BatchDocumentOutputConfigB\004\342A\001\002\022\\\n\006" + - "models\030\006 \003(\0132F.google.cloud.translation." + - "v3.BatchTranslateDocumentRequest.ModelsE" + - "ntryB\004\342A\001\001\022d\n\nglossaries\030\007 \003(\0132J.google." + - "cloud.translation.v3.BatchTranslateDocum" + - "entRequest.GlossariesEntryB\004\342A\001\001\022s\n\022form" + - "at_conversions\030\010 \003(\0132Q.google.cloud.tran" + - "slation.v3.BatchTranslateDocumentRequest" + - ".FormatConversionsEntryB\004\342A\001\001\022$\n\026customi" + - "zed_attribution\030\n \001(\tB\004\342A\001\001\032-\n\013ModelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Gl" + - "ossariesEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(" + - "\01328.google.cloud.translation.v3.Translat" + - "eTextGlossaryConfig:\0028\001\0328\n\026FormatConvers" + - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"b\n\030BatchDocumentInputConfig\022<\n\ngcs_sou" + - "rce\030\001 \001(\0132&.google.cloud.translation.v3." + - "GcsSourceH\000B\010\n\006source\"r\n\031BatchDocumentOu" + - "tputConfig\022F\n\017gcs_destination\030\001 \001(\0132+.go" + - "ogle.cloud.translation.v3.GcsDestination" + - "H\000B\r\n\013destination\"\331\002\n\036BatchTranslateDocu" + - "mentResponse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020tra" + - "nslated_pages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(" + - "\003\022\034\n\024total_billable_pages\030\004 \001(\003\022\030\n\020total" + - "_characters\030\005 \001(\003\022\035\n\025translated_characte" + - "rs\030\006 \001(\003\022\031\n\021failed_characters\030\007 \001(\003\022!\n\031t" + - "otal_billable_characters\030\010 \001(\003\022/\n\013submit" + - "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + - ",\n\010end_time\030\n \001(\0132\032.google.protobuf.Time" + - "stamp\"\344\003\n\036BatchTranslateDocumentMetadata" + - "\022P\n\005state\030\001 \001(\0162A.google.cloud.translati" + - "on.v3.BatchTranslateDocumentMetadata.Sta" + - "te\022\023\n\013total_pages\030\002 \001(\003\022\030\n\020translated_pa" + - "ges\030\003 \001(\003\022\024\n\014failed_pages\030\004 \001(\003\022\034\n\024total" + - "_billable_pages\030\005 \001(\003\022\030\n\020total_character" + - "s\030\006 \001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031" + - "\n\021failed_characters\030\010 \001(\003\022!\n\031total_billa" + - "ble_characters\030\t \001(\003\022/\n\013submit_time\030\n \001(" + - "\0132\032.google.protobuf.Timestamp\"e\n\005State\022\025" + - "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSU" + - "CCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n" + - "\tCANCELLED\020\0052\246\024\n\022TranslationService\022\324\002\n\r" + - "TranslateText\0221.google.cloud.translation" + - ".v3.TranslateTextRequest\0322.google.cloud." + - "translation.v3.TranslateTextResponse\"\333\001\332" + - "A$parent,target_language_code,contents\332A" + - "Iparent,model,mime_type,source_language_" + - "code,target_language_code,contents\202\323\344\223\002b" + - "\"1/v3/{parent=projects/*/locations/*}:tr" + - "anslateText:\001*Z*\"%/v3/{parent=projects/*" + - "}:translateText:\001*\022\207\002\n\016DetectLanguage\0222." + - "google.cloud.translation.v3.DetectLangua" + - "geRequest\0323.google.cloud.translation.v3." + - "DetectLanguageResponse\"\213\001\332A\036parent,model" + - ",mime_type,content\202\323\344\223\002d\"2/v3/{parent=pr" + - "ojects/*/locations/*}:detectLanguage:\001*Z" + - "+\"&/v3/{parent=projects/*}:detectLanguag" + - "e:\001*\022\227\002\n\025GetSupportedLanguages\0229.google." + - "cloud.translation.v3.GetSupportedLanguag" + - "esRequest\032/.google.cloud.translation.v3." + - "SupportedLanguages\"\221\001\332A\"parent,model,dis" + - "play_language_code\202\323\344\223\002f\0226/v3/{parent=pr" + - "ojects/*/locations/*}/supportedLanguages" + - "Z,\022*/v3/{parent=projects/*}/supportedLan" + - "guages\022\304\001\n\021TranslateDocument\0225.google.cl" + - "oud.translation.v3.TranslateDocumentRequ" + - "est\0326.google.cloud.translation.v3.Transl" + - "ateDocumentResponse\"@\202\323\344\223\002:\"5/v3/{parent" + - "=projects/*/locations/*}:translateDocume" + - "nt:\001*\022\341\001\n\022BatchTranslateText\0226.google.cl" + - "oud.translation.v3.BatchTranslateTextReq" + - "uest\032\035.google.longrunning.Operation\"t\312A0" + - "\n\026BatchTranslateResponse\022\026BatchTranslate" + - "Metadata\202\323\344\223\002;\"6/v3/{parent=projects/*/l" + - "ocations/*}:batchTranslateText:\001*\022\316\002\n\026Ba" + - "tchTranslateDocument\022:.google.cloud.tran" + - "slation.v3.BatchTranslateDocumentRequest" + - "\032\035.google.longrunning.Operation\"\330\001\312A@\n\036B" + - "atchTranslateDocumentResponse\022\036BatchTran" + - "slateDocumentMetadata\332AMparent,source_la" + - "nguage_code,target_language_codes,input_" + - "configs,output_config\202\323\344\223\002?\":/v3/{parent" + - "=projects/*/locations/*}:batchTranslateD" + - "ocument:\001*\022\334\001\n\016CreateGlossary\0222.google.c" + - "loud.translation.v3.CreateGlossaryReques" + - "t\032\035.google.longrunning.Operation\"w\312A\"\n\010G" + - "lossary\022\026CreateGlossaryMetadata\332A\017parent" + - ",glossary\202\323\344\223\002:\"./v3/{parent=projects/*/" + - "locations/*}/glossaries:\010glossary\022\272\001\n\016Li" + - "stGlossaries\0222.google.cloud.translation." + - "v3.ListGlossariesRequest\0323.google.cloud." + - "translation.v3.ListGlossariesResponse\"?\332" + - "A\006parent\202\323\344\223\0020\022./v3/{parent=projects/*/l" + - "ocations/*}/glossaries\022\244\001\n\013GetGlossary\022/" + - ".google.cloud.translation.v3.GetGlossary" + - "Request\032%.google.cloud.translation.v3.Gl" + - "ossary\"=\332A\004name\202\323\344\223\0020\022./v3/{name=project" + - "s/*/locations/*/glossaries/*}\022\325\001\n\016Delete" + - "Glossary\0222.google.cloud.translation.v3.D" + - "eleteGlossaryRequest\032\035.google.longrunnin" + - "g.Operation\"p\312A0\n\026DeleteGlossaryResponse" + - "\022\026DeleteGlossaryMetadata\332A\004name\202\323\344\223\0020*./" + - "v3/{name=projects/*/locations/*/glossari" + - "es/*}\032~\312A\030translate.googleapis.com\322A`htt" + - "ps://www.googleapis.com/auth/cloud-platf" + - "orm,https://www.googleapis.com/auth/clou" + - "d-translationB\321\001\n\035com.google.cloud.trans" + - "late.v3B\027TranslationServiceProtoP\001Z;clou" + - "d.google.com/go/translate/apiv3/translat" + - "epb;translatepb\370\001\001\252\002\031Google.Cloud.Transl" + - "ate.V3\312\002\031Google\\Cloud\\Translate\\V3\352\002\034Goo" + - "gle::Cloud::Translate::V3b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { "Glossary", "IgnoreCase", }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3_TranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor, - new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3_TranslateTextResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateTextResponse_descriptor, - new java.lang.String[] { "Translations", "GlossaryTranslations", }); - internal_static_google_cloud_translation_v3_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3_Translation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Translation_descriptor, - new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor, - new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_DetectLanguageRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3_DetectLanguageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DetectLanguageResponse_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3_SupportedLanguages_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguages_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3_SupportedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_SupportedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); - internal_static_google_cloud_translation_v3_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsSource_descriptor, - new java.lang.String[] { "InputUri", }); - internal_static_google_cloud_translation_v3_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_InputConfig_descriptor, - new java.lang.String[] { "MimeType", "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GcsDestination_descriptor, - new java.lang.String[] { "OutputUriPrefix", }); - internal_static_google_cloud_translation_v3_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3_DocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentInputConfig_descriptor, - new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3_DocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", "CustomizedAttribution", "IsTranslateNativePdfOnly", "EnableShadowRemovalNativePdf", }); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3_DocumentTranslation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DocumentTranslation_descriptor, - new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_TranslateDocumentResponse_descriptor, - new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateMetadata_descriptor, - new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3_BatchTranslateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateResponse_descriptor, - new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3_GlossaryInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GlossaryInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3_Glossary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_descriptor, - new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "DisplayName", "Languages", }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3_Glossary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { "LanguageCodes", }); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryRequest_descriptor, - new java.lang.String[] { "Parent", "Glossary", }); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3_GetGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_GetGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3_ListGlossariesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3_ListGlossariesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_ListGlossariesResponse_descriptor, - new java.lang.String[] { "Glossaries", "NextPageToken", }); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", "CustomizedAttribution", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java deleted file mode 100644 index 44ac257f47c2..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ /dev/null @@ -1,1790 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.stub.TranslationServiceStub; -import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Provides natural language translation operations. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   TranslateTextRequest request =
- *       TranslateTextRequest.newBuilder()
- *           .addAllContents(new ArrayList())
- *           .setMimeType("mimeType-1392120434")
- *           .setSourceLanguageCode("sourceLanguageCode1645917472")
- *           .setTargetLanguageCode("targetLanguageCode-106414698")
- *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- *           .setModel("model104069929")
- *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
- *           .putAllLabels(new HashMap())
- *           .build();
- *   TranslateTextResponse response = translationServiceClient.translateText(request);
- * }
- * }
- * - *

Note: close() needs to be called on the TranslationServiceClient object to clean up resources - * such as threads. In the example above, try-with-resources is used, which automatically calls - * close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of TranslationServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newHttpJsonBuilder().build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class TranslationServiceClient implements BackgroundResource { - private final TranslationServiceSettings settings; - private final TranslationServiceStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of TranslationServiceClient with default settings. */ - public static final TranslationServiceClient create() throws IOException { - return create(TranslationServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final TranslationServiceClient create(TranslationServiceSettings settings) - throws IOException { - return new TranslationServiceClient(settings); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(TranslationServiceSettings). - */ - public static final TranslationServiceClient create(TranslationServiceStub stub) { - return new TranslationServiceClient(stub); - } - - /** - * Constructs an instance of TranslationServiceClient, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected TranslationServiceClient(TranslationServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((TranslationServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected TranslationServiceClient(TranslationServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final TranslationServiceSettings getSettings() { - return settings; - } - - public TranslationServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   TranslateTextResponse response = translationServiceClient.translateText(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateTextResponse translateText(TranslateTextRequest request) { - return translateTextCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateTextRequest request =
-   *       TranslateTextRequest.newBuilder()
-   *           .addAllContents(new ArrayList())
-   *           .setMimeType("mimeType-1392120434")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateTextCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateTextResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable translateTextCallable() { - return stub.translateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage( - LocationName parent, String model, String mimeType) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModel(model) - .setMimeType(mimeType) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String model = "model104069929";
-   *   String mimeType = "mimeType-1392120434";
-   *   DetectLanguageResponse response =
-   *       translationServiceClient.detectLanguage(parent, model, mimeType);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}/locations/{location-id}` or - * `projects/{project-number-or-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Only models within the same region (has same location-id) can be used. Otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param model Optional. The language detection model to be used. - *

Format: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` - *

Only one language detection model is currently supported: - * `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. - *

If not specified, the default model is used. - * @param mimeType Optional. The format of the source text, for example, "text/html", - * "text/plain". If left blank, the MIME type defaults to "text/html". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage(String parent, String model, String mimeType) { - DetectLanguageRequest request = - DetectLanguageRequest.newBuilder() - .setParent(parent) - .setModel(model) - .setMimeType(mimeType) - .build(); - return detectLanguage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   DetectLanguageResponse response = translationServiceClient.detectLanguage(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request) { - return detectLanguageCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Detects the language of text within a request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DetectLanguageRequest request =
-   *       DetectLanguageRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setModel("model104069929")
-   *           .setMimeType("mimeType-1392120434")
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.detectLanguageCallable().futureCall(request);
-   *   // Do something.
-   *   DetectLanguageResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - detectLanguageCallable() { - return stub.detectLanguageCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   String model = "model104069929";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - LocationName parent, String displayLanguageCode, String model) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDisplayLanguageCode(displayLanguageCode) - .setModel(model) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String displayLanguageCode = "displayLanguageCode-1457478841";
-   *   String model = "model104069929";
-   *   SupportedLanguages response =
-   *       translationServiceClient.getSupportedLanguages(parent, displayLanguageCode, model);
-   * }
-   * }
- * - * @param parent Required. Project or location to make a call. Must refer to a caller's project. - *

Format: `projects/{project-number-or-id}` or - * `projects/{project-number-or-id}/locations/{location-id}`. - *

For global calls, use `projects/{project-number-or-id}/locations/global` or - * `projects/{project-number-or-id}`. - *

Non-global location is required for AutoML models. - *

Only models within the same region (have same location-id) can be used, otherwise an - * INVALID_ARGUMENT (400) error is returned. - * @param displayLanguageCode Optional. The language to use to return localized, human readable - * names of supported languages. If missing, then display names are not returned in a - * response. - * @param model Optional. Get supported languages of this model. - *

The format depends on model type: - *

- AutoML Translation models: - * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - *

- General (built-in) models: - * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - *

Returns languages supported by the specified model. If missing, we get supported - * languages of Google general NMT model. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages( - String parent, String displayLanguageCode, String model) { - GetSupportedLanguagesRequest request = - GetSupportedLanguagesRequest.newBuilder() - .setParent(parent) - .setDisplayLanguageCode(displayLanguageCode) - .setModel(model) - .build(); - return getSupportedLanguages(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   SupportedLanguages response = translationServiceClient.getSupportedLanguages(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request) { - return getSupportedLanguagesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of supported languages for translation. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetSupportedLanguagesRequest request =
-   *       GetSupportedLanguagesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDisplayLanguageCode("displayLanguageCode-1457478841")
-   *           .setModel("model104069929")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getSupportedLanguagesCallable().futureCall(request);
-   *   // Do something.
-   *   SupportedLanguages response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getSupportedLanguagesCallable() { - return stub.getSupportedLanguagesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   TranslateDocumentResponse response = translationServiceClient.translateDocument(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TranslateDocumentResponse translateDocument(TranslateDocumentRequest request) { - return translateDocumentCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates documents in synchronous mode. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   TranslateDocumentRequest request =
-   *       TranslateDocumentRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .setTargetLanguageCode("targetLanguageCode-106414698")
-   *           .setDocumentInputConfig(DocumentInputConfig.newBuilder().build())
-   *           .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
-   *           .setModel("model104069929")
-   *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.translateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   TranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - translateDocumentCallable() { - return stub.translateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   BatchTranslateResponse response =
-   *       translationServiceClient.batchTranslateTextAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateTextAsync(BatchTranslateTextRequest request) { - return batchTranslateTextOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateTextOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return stub.batchTranslateTextOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of text in asynchronous batch mode. This function provides real-time - * output as the inputs are being processed. If caller cancels a request, the partial results (for - * an input file, it's all or nothing) may still be available on the specified output location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateTextRequest request =
-   *       BatchTranslateTextRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .putAllModels(new HashMap())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(OutputConfig.newBuilder().build())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllLabels(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateTextCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable batchTranslateTextCallable() { - return stub.batchTranslateTextCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - LocationName parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String sourceLanguageCode = "sourceLanguageCode1645917472";
-   *   List targetLanguageCodes = new ArrayList<>();
-   *   List inputConfigs = new ArrayList<>();
-   *   BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient
-   *           .batchTranslateDocumentAsync(
-   *               parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. Location to make a regional call. - *

Format: `projects/{project-number-or-id}/locations/{location-id}`. - *

The `global` location is not supported for batch translation. - *

Only AutoML Translation models or glossaries within the same region (have the same - * location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param sourceLanguageCode Required. The BCP-47 language code of the input document if known, - * for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language - * Support](https://cloud.google.com/translate/docs/languages). - * @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the - * input document. Specify up to 10 language codes here. - * @param inputConfigs Required. Input configurations. The total number of files matched should be - * <= 100. The total content size to translate should be <= 100M Unicode codepoints. The - * files must use UTF-8 encoding. - * @param outputConfig Required. Output configuration. If 2 input configs match to the same file - * (that is, same input path), we don't generate output for duplicate inputs. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync( - String parent, - String sourceLanguageCode, - List targetLanguageCodes, - List inputConfigs, - BatchDocumentOutputConfig outputConfig) { - BatchTranslateDocumentRequest request = - BatchTranslateDocumentRequest.newBuilder() - .setParent(parent) - .setSourceLanguageCode(sourceLanguageCode) - .addAllTargetLanguageCodes(targetLanguageCodes) - .addAllInputConfigs(inputConfigs) - .setOutputConfig(outputConfig) - .build(); - return batchTranslateDocumentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .build();
-   *   BatchTranslateDocumentResponse response =
-   *       translationServiceClient.batchTranslateDocumentAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - batchTranslateDocumentAsync(BatchTranslateDocumentRequest request) { - return batchTranslateDocumentOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request);
-   *   // Do something.
-   *   BatchTranslateDocumentResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return stub.batchTranslateDocumentOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates a large volume of documents in asynchronous batch mode. This function provides - * real-time output as the inputs are being processed. If caller cancels a request, the partial - * results (for an input file, it's all or nothing) may still be available on the specified output - * location. - * - *

This call returns immediately and you can use google.longrunning.Operation.name to poll the - * status of the call. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   BatchTranslateDocumentRequest request =
-   *       BatchTranslateDocumentRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
-   *           .addAllTargetLanguageCodes(new ArrayList())
-   *           .addAllInputConfigs(new ArrayList())
-   *           .setOutputConfig(BatchDocumentOutputConfig.newBuilder().build())
-   *           .putAllModels(new HashMap())
-   *           .putAllGlossaries(new HashMap())
-   *           .putAllFormatConversions(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.batchTranslateDocumentCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchTranslateDocumentCallable() { - return stub.batchTranslateDocumentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - LocationName parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setGlossary(glossary) - .build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Glossary glossary = Glossary.newBuilder().build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(parent, glossary).get();
-   * }
-   * }
- * - * @param parent Required. The project name. - * @param glossary Required. The glossary to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - String parent, Glossary glossary) { - CreateGlossaryRequest request = - CreateGlossaryRequest.newBuilder().setParent(parent).setGlossary(glossary).build(); - return createGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   Glossary response = translationServiceClient.createGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createGlossaryAsync( - CreateGlossaryRequest request) { - return createGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.createGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createGlossaryOperationCallable() { - return stub.createGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project - * doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   CreateGlossaryRequest request =
-   *       CreateGlossaryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setGlossary(Glossary.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.createGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createGlossaryCallable() { - return stub.createGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String filter = "filter-1274492040";
-   *   for (Glossary element :
-   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @param filter Optional. Filter specifying constraints of a list operation. Specify the - * constraint by the format of "key=value", where key must be "src" or "tgt", and the value - * must be a valid language code. For multiple restrictions, concatenate them by "AND" - * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used - * here, which means using 'en-US' and 'en' can lead to different results, which depends on - * the language code you used when you create the glossary. For the unidirectional glossaries, - * the "src" and "tgt" add restrictions on the source and target language code separately. For - * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term - * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries - * which exactly match the source language code as "en-US" and the target language code - * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their - * language set will be picked. If missing, no filtering is performed. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(LocationName parent, String filter) { - ListGlossariesRequest request = - ListGlossariesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setFilter(filter) - .build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String filter = "filter-1274492040";
-   *   for (Glossary element :
-   *       translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project from which to list all of the glossaries. - * @param filter Optional. Filter specifying constraints of a list operation. Specify the - * constraint by the format of "key=value", where key must be "src" or "tgt", and the value - * must be a valid language code. For multiple restrictions, concatenate them by "AND" - * (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used - * here, which means using 'en-US' and 'en' can lead to different results, which depends on - * the language code you used when you create the glossary. For the unidirectional glossaries, - * the "src" and "tgt" add restrictions on the source and target language code separately. For - * the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term - * set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries - * which exactly match the source language code as "en-US" and the target language code - * "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their - * language set will be picked. If missing, no filtering is performed. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) { - ListGlossariesRequest request = - ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build(); - return listGlossaries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Glossary element : translationServiceClient.listGlossaries(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest request) { - return listGlossariesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.listGlossariesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Glossary element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesPagedCallable() { - return stub.listGlossariesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   ListGlossariesRequest request =
-   *       ListGlossariesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListGlossariesResponse response =
-   *         translationServiceClient.listGlossariesCallable().call(request);
-   *     for (Glossary element : response.getGlossariesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGlossariesCallable() { - return stub.listGlossariesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GlossaryName name) { - GetGlossaryRequest request = - GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   Glossary response = translationServiceClient.getGlossary(name);
-   * }
-   * }
- * - * @param name Required. The name of the glossary to retrieve. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(String name) { - GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); - return getGlossary(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   Glossary response = translationServiceClient.getGlossary(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Glossary getGlossary(GetGlossaryRequest request) { - return getGlossaryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GetGlossaryRequest request =
-   *       GetGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.getGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Glossary response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getGlossaryCallable() { - return stub.getGlossaryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - GlossaryName name) { - DeleteGlossaryRequest request = - DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   String name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the glossary to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - String name) { - DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name).build(); - return deleteGlossaryAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   DeleteGlossaryResponse response = translationServiceClient.deleteGlossaryAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteGlossaryAsync( - DeleteGlossaryRequest request) { - return deleteGlossaryOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   OperationFuture future =
-   *       translationServiceClient.deleteGlossaryOperationCallable().futureCall(request);
-   *   // Do something.
-   *   DeleteGlossaryResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable() { - return stub.deleteGlossaryOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns - * NOT_FOUND, if the glossary doesn't exist. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
-   *   DeleteGlossaryRequest request =
-   *       DeleteGlossaryRequest.newBuilder()
-   *           .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       translationServiceClient.deleteGlossaryCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteGlossaryCallable() { - return stub.deleteGlossaryCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListGlossariesPagedResponse - extends AbstractPagedListResponse< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGlossariesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListGlossariesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListGlossariesPagedResponse(ListGlossariesPage page) { - super(page, ListGlossariesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGlossariesPage - extends AbstractPage< - ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { - - private ListGlossariesPage( - PageContext context, - ListGlossariesResponse response) { - super(context, response); - } - - private static ListGlossariesPage createEmptyPage() { - return new ListGlossariesPage(null, null); - } - - @Override - protected ListGlossariesPage createPage( - PageContext context, - ListGlossariesResponse response) { - return new ListGlossariesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGlossariesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGlossariesRequest, - ListGlossariesResponse, - Glossary, - ListGlossariesPage, - ListGlossariesFixedSizeCollection> { - - private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGlossariesFixedSizeCollection createEmptyCollection() { - return new ListGlossariesFixedSizeCollection(null, 0); - } - - @Override - protected ListGlossariesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGlossariesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java deleted file mode 100644 index 33915307ad62..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.translate.v3beta1.stub.TranslationServiceStubSettings; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class TranslationServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateTextSettings(); - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).detectLanguageSettings(); - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getSupportedLanguagesSettings(); - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).translateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateTextSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateTextOperationSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).batchTranslateDocumentSettings(); - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()) - .batchTranslateDocumentOperationSettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossarySettings(); - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).createGlossaryOperationSettings(); - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).listGlossariesSettings(); - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).getGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossarySettings(); - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); - } - - public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) - throws IOException { - return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return TranslationServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return TranslationServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return TranslationServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return TranslationServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return TranslationServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for TranslationServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(TranslationServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(TranslationServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(TranslationServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(TranslationServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(TranslationServiceStubSettings.newHttpJsonBuilder()); - } - - public TranslationServiceStubSettings.Builder getStubSettingsBuilder() { - return ((TranslationServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return getStubSettingsBuilder().translateTextSettings(); - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return getStubSettingsBuilder().detectLanguageSettings(); - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getStubSettingsBuilder().getSupportedLanguagesSettings(); - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return getStubSettingsBuilder().translateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return getStubSettingsBuilder().batchTranslateTextSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return getStubSettingsBuilder().batchTranslateTextOperationSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return getStubSettingsBuilder().batchTranslateDocumentSettings(); - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return getStubSettingsBuilder().batchTranslateDocumentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return getStubSettingsBuilder().createGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return getStubSettingsBuilder().createGlossaryOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return getStubSettingsBuilder().listGlossariesSettings(); - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getStubSettingsBuilder().getGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return getStubSettingsBuilder().deleteGlossarySettings(); - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return getStubSettingsBuilder().deleteGlossaryOperationSettings(); - } - - @Override - public TranslationServiceSettings build() throws IOException { - return new TranslationServiceSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json deleted file mode 100644 index 5cf5bb9020d7..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.translation.v3beta1", - "libraryPackage": "com.google.cloud.translate.v3beta1", - "services": { - "TranslationService": { - "clients": { - "grpc": { - "libraryClient": "TranslationServiceClient", - "rpcs": { - "BatchTranslateDocument": { - "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] - }, - "BatchTranslateText": { - "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] - }, - "CreateGlossary": { - "methods": ["createGlossaryAsync", "createGlossaryAsync", "createGlossaryAsync", "createGlossaryOperationCallable", "createGlossaryCallable"] - }, - "DeleteGlossary": { - "methods": ["deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryAsync", "deleteGlossaryOperationCallable", "deleteGlossaryCallable"] - }, - "DetectLanguage": { - "methods": ["detectLanguage", "detectLanguage", "detectLanguage", "detectLanguageCallable"] - }, - "GetGlossary": { - "methods": ["getGlossary", "getGlossary", "getGlossary", "getGlossaryCallable"] - }, - "GetSupportedLanguages": { - "methods": ["getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguages", "getSupportedLanguagesCallable"] - }, - "ListGlossaries": { - "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] - }, - "TranslateDocument": { - "methods": ["translateDocument", "translateDocumentCallable"] - }, - "TranslateText": { - "methods": ["translateText", "translateTextCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java deleted file mode 100644 index 46b58825f0fb..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Cloud Translation API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= TranslationServiceClient ======================= - * - *

Service Description: Provides natural language translation operations. - * - *

Sample for TranslationServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
- *   TranslateTextRequest request =
- *       TranslateTextRequest.newBuilder()
- *           .addAllContents(new ArrayList())
- *           .setMimeType("mimeType-1392120434")
- *           .setSourceLanguageCode("sourceLanguageCode1645917472")
- *           .setTargetLanguageCode("targetLanguageCode-106414698")
- *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- *           .setModel("model104069929")
- *           .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
- *           .putAllLabels(new HashMap())
- *           .build();
- *   TranslateTextResponse response = translationServiceClient.translateText(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.translate.v3beta1; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java deleted file mode 100644 index f623f52746f8..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java deleted file mode 100644 index d77b266c740e..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java +++ /dev/null @@ -1,556 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcTranslationServiceStub extends TranslationServiceStub { - private static final MethodDescriptor - translateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateTextResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - detectLanguageMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") - .setRequestMarshaller( - ProtoUtils.marshaller(DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DetectLanguageResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getSupportedLanguagesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") - .setRequestMarshaller( - ProtoUtils.marshaller(GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SupportedLanguages.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - translateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TranslateDocumentResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateTextMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchTranslateDocumentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listGlossariesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGlossariesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") - .setRequestMarshaller(ProtoUtils.marshaller(GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Glossary.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteGlossaryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new GrpcTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcTranslationServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcTranslationServiceStub( - TranslationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings translateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - detectLanguageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getSupportedLanguagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - translateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings batchTranslateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchTranslateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listGlossariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - operationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - operationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - operationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java deleted file mode 100644 index 0e01b94ccf16..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the TranslationService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonTranslationServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java deleted file mode 100644 index df047db06e10..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java +++ /dev/null @@ -1,916 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.HttpRule; -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonTranslationServiceStub extends TranslationServiceStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(BatchTranslateDocumentResponse.getDescriptor()) - .add(Glossary.getDescriptor()) - .add(DeleteGlossaryMetadata.getDescriptor()) - .add(CreateGlossaryMetadata.getDescriptor()) - .add(BatchTranslateMetadata.getDescriptor()) - .add(BatchTranslateDocumentMetadata.getDescriptor()) - .add(DeleteGlossaryResponse.getDescriptor()) - .add(BatchTranslateResponse.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - translateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:translateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3beta1/{parent=projects/*}:translateText") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateTextResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - detectLanguageMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DetectLanguage") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:detectLanguage", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3beta1/{parent=projects/*}:detectLanguage") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DetectLanguageResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getSupportedLanguagesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/GetSupportedLanguages") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}/supportedLanguages", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v3beta1/{parent=projects/*}/supportedLanguages") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "displayLanguageCode", request.getDisplayLanguageCode()); - serializer.putQueryParam(fields, "model", request.getModel()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SupportedLanguages.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - translateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/TranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:translateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TranslateDocumentResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - batchTranslateTextMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateText") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:batchTranslateText", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateTextRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - batchTranslateDocumentMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/BatchTranslateDocument") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}:batchTranslateDocument", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (BatchTranslateDocumentRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - createGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/CreateGlossary") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("glossary", request.getGlossary(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listGlossariesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/ListGlossaries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{parent=projects/*/locations/*}/glossaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListGlossariesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/GetGlossary") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Glossary.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteGlossaryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.translation.v3beta1.TranslationService/DeleteGlossary") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v3beta1/{name=projects/*/locations/*/glossaries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteGlossaryRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private final UnaryCallable translateTextCallable; - private final UnaryCallable detectLanguageCallable; - private final UnaryCallable - getSupportedLanguagesCallable; - private final UnaryCallable - translateDocumentCallable; - private final UnaryCallable batchTranslateTextCallable; - private final OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable; - private final UnaryCallable - batchTranslateDocumentCallable; - private final OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable; - private final UnaryCallable createGlossaryCallable; - private final OperationCallable - createGlossaryOperationCallable; - private final UnaryCallable listGlossariesCallable; - private final UnaryCallable - listGlossariesPagedCallable; - private final UnaryCallable getGlossaryCallable; - private final UnaryCallable deleteGlossaryCallable; - private final OperationCallable< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) - throws IOException { - return new HttpJsonTranslationServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonTranslationServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonTranslationServiceStub( - TranslationServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonTranslationServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonTranslationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected HttpJsonTranslationServiceStub( - TranslationServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create( - clientContext, - callableFactory, - typeRegistry, - ImmutableMap.builder() - .put( - "google.longrunning.Operations.CancelOperation", - HttpRule.newBuilder() - .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:cancel") - .build()) - .put( - "google.longrunning.Operations.DeleteOperation", - HttpRule.newBuilder() - .setDelete("/v3beta1/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.GetOperation", - HttpRule.newBuilder() - .setGet("/v3beta1/{name=projects/*/locations/*/operations/*}") - .build()) - .put( - "google.longrunning.Operations.ListOperations", - HttpRule.newBuilder() - .setGet("/v3beta1/{name=projects/*/locations/*}/operations") - .build()) - .put( - "google.longrunning.Operations.WaitOperation", - HttpRule.newBuilder() - .setPost("/v3beta1/{name=projects/*/locations/*/operations/*}:wait") - .build()) - .build()); - - HttpJsonCallSettings - translateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - detectLanguageTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - getSupportedLanguagesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - translateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings batchTranslateTextTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - batchTranslateDocumentTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings createGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listGlossariesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteGlossaryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.translateTextCallable = - callableFactory.createUnaryCallable( - translateTextTransportSettings, settings.translateTextSettings(), clientContext); - this.detectLanguageCallable = - callableFactory.createUnaryCallable( - detectLanguageTransportSettings, settings.detectLanguageSettings(), clientContext); - this.getSupportedLanguagesCallable = - callableFactory.createUnaryCallable( - getSupportedLanguagesTransportSettings, - settings.getSupportedLanguagesSettings(), - clientContext); - this.translateDocumentCallable = - callableFactory.createUnaryCallable( - translateDocumentTransportSettings, - settings.translateDocumentSettings(), - clientContext); - this.batchTranslateTextCallable = - callableFactory.createUnaryCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextSettings(), - clientContext); - this.batchTranslateTextOperationCallable = - callableFactory.createOperationCallable( - batchTranslateTextTransportSettings, - settings.batchTranslateTextOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.batchTranslateDocumentCallable = - callableFactory.createUnaryCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentSettings(), - clientContext); - this.batchTranslateDocumentOperationCallable = - callableFactory.createOperationCallable( - batchTranslateDocumentTransportSettings, - settings.batchTranslateDocumentOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.createGlossaryCallable = - callableFactory.createUnaryCallable( - createGlossaryTransportSettings, settings.createGlossarySettings(), clientContext); - this.createGlossaryOperationCallable = - callableFactory.createOperationCallable( - createGlossaryTransportSettings, - settings.createGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listGlossariesCallable = - callableFactory.createUnaryCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.listGlossariesPagedCallable = - callableFactory.createPagedCallable( - listGlossariesTransportSettings, settings.listGlossariesSettings(), clientContext); - this.getGlossaryCallable = - callableFactory.createUnaryCallable( - getGlossaryTransportSettings, settings.getGlossarySettings(), clientContext); - this.deleteGlossaryCallable = - callableFactory.createUnaryCallable( - deleteGlossaryTransportSettings, settings.deleteGlossarySettings(), clientContext); - this.deleteGlossaryOperationCallable = - callableFactory.createOperationCallable( - deleteGlossaryTransportSettings, - settings.deleteGlossaryOperationSettings(), - clientContext, - httpJsonOperationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(translateTextMethodDescriptor); - methodDescriptors.add(detectLanguageMethodDescriptor); - methodDescriptors.add(getSupportedLanguagesMethodDescriptor); - methodDescriptors.add(translateDocumentMethodDescriptor); - methodDescriptors.add(batchTranslateTextMethodDescriptor); - methodDescriptors.add(batchTranslateDocumentMethodDescriptor); - methodDescriptors.add(createGlossaryMethodDescriptor); - methodDescriptors.add(listGlossariesMethodDescriptor); - methodDescriptors.add(getGlossaryMethodDescriptor); - methodDescriptors.add(deleteGlossaryMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable translateTextCallable() { - return translateTextCallable; - } - - @Override - public UnaryCallable detectLanguageCallable() { - return detectLanguageCallable; - } - - @Override - public UnaryCallable - getSupportedLanguagesCallable() { - return getSupportedLanguagesCallable; - } - - @Override - public UnaryCallable - translateDocumentCallable() { - return translateDocumentCallable; - } - - @Override - public UnaryCallable batchTranslateTextCallable() { - return batchTranslateTextCallable; - } - - @Override - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - return batchTranslateTextOperationCallable; - } - - @Override - public UnaryCallable batchTranslateDocumentCallable() { - return batchTranslateDocumentCallable; - } - - @Override - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - return batchTranslateDocumentOperationCallable; - } - - @Override - public UnaryCallable createGlossaryCallable() { - return createGlossaryCallable; - } - - @Override - public OperationCallable - createGlossaryOperationCallable() { - return createGlossaryOperationCallable; - } - - @Override - public UnaryCallable listGlossariesCallable() { - return listGlossariesCallable; - } - - @Override - public UnaryCallable - listGlossariesPagedCallable() { - return listGlossariesPagedCallable; - } - - @Override - public UnaryCallable getGlossaryCallable() { - return getGlossaryCallable; - } - - @Override - public UnaryCallable deleteGlossaryCallable() { - return deleteGlossaryCallable; - } - - @Override - public OperationCallable - deleteGlossaryOperationCallable() { - return deleteGlossaryOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java deleted file mode 100644 index 7c8a11caf086..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the TranslationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class TranslationServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable translateTextCallable() { - throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); - } - - public UnaryCallable detectLanguageCallable() { - throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); - } - - public UnaryCallable - getSupportedLanguagesCallable() { - throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); - } - - public UnaryCallable - translateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); - } - - public OperationCallable< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateTextOperationCallable()"); - } - - public UnaryCallable batchTranslateTextCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); - } - - public OperationCallable< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: batchTranslateDocumentOperationCallable()"); - } - - public UnaryCallable batchTranslateDocumentCallable() { - throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); - } - - public OperationCallable - createGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); - } - - public UnaryCallable createGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); - } - - public UnaryCallable - listGlossariesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); - } - - public UnaryCallable listGlossariesCallable() { - throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); - } - - public UnaryCallable getGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); - } - - public OperationCallable - deleteGlossaryOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); - } - - public UnaryCallable deleteGlossaryCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java deleted file mode 100644 index 8db1ff5aae6d..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java +++ /dev/null @@ -1,869 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.stub; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateMetadata; -import com.google.cloud.translate.v3beta1.BatchTranslateResponse; -import com.google.cloud.translate.v3beta1.BatchTranslateTextRequest; -import com.google.cloud.translate.v3beta1.CreateGlossaryMetadata; -import com.google.cloud.translate.v3beta1.CreateGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3beta1.DeleteGlossaryRequest; -import com.google.cloud.translate.v3beta1.DeleteGlossaryResponse; -import com.google.cloud.translate.v3beta1.DetectLanguageRequest; -import com.google.cloud.translate.v3beta1.DetectLanguageResponse; -import com.google.cloud.translate.v3beta1.GetGlossaryRequest; -import com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest; -import com.google.cloud.translate.v3beta1.Glossary; -import com.google.cloud.translate.v3beta1.ListGlossariesRequest; -import com.google.cloud.translate.v3beta1.ListGlossariesResponse; -import com.google.cloud.translate.v3beta1.SupportedLanguages; -import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; -import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; -import com.google.cloud.translate.v3beta1.TranslateTextRequest; -import com.google.cloud.translate.v3beta1.TranslateTextResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link TranslationServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (translate.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of translateText to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * TranslationServiceStubSettings.Builder translationServiceSettingsBuilder =
- *     TranslationServiceStubSettings.newBuilder();
- * translationServiceSettingsBuilder
- *     .translateTextSettings()
- *     .setRetrySettings(
- *         translationServiceSettingsBuilder
- *             .translateTextSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * TranslationServiceStubSettings translationServiceSettings =
- *     translationServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class TranslationServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-translation") - .build(); - - private final UnaryCallSettings - translateTextSettings; - private final UnaryCallSettings - detectLanguageSettings; - private final UnaryCallSettings - getSupportedLanguagesSettings; - private final UnaryCallSettings - translateDocumentSettings; - private final UnaryCallSettings batchTranslateTextSettings; - private final OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings - batchTranslateDocumentSettings; - private final OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings createGlossarySettings; - private final OperationCallSettings - createGlossaryOperationSettings; - private final PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings getGlossarySettings; - private final UnaryCallSettings deleteGlossarySettings; - private final OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - - private static final PagedListDescriptor - LIST_GLOSSARIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGlossariesRequest injectToken(ListGlossariesRequest payload, String token) { - return ListGlossariesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListGlossariesRequest injectPageSize( - ListGlossariesRequest payload, int pageSize) { - return ListGlossariesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListGlossariesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGlossariesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListGlossariesResponse payload) { - return payload.getGlossariesList() == null - ? ImmutableList.of() - : payload.getGlossariesList(); - } - }; - - private static final PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - LIST_GLOSSARIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListGlossariesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_GLOSSARIES_PAGE_STR_DESC, request, context); - return ListGlossariesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to translateText. */ - public UnaryCallSettings translateTextSettings() { - return translateTextSettings; - } - - /** Returns the object with the settings used for calls to detectLanguage. */ - public UnaryCallSettings detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the object with the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the object with the settings used for calls to translateDocument. */ - public UnaryCallSettings - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public UnaryCallSettings batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateText. */ - public OperationCallSettings< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the object with the settings used for calls to batchTranslateDocument. */ - public OperationCallSettings< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public UnaryCallSettings createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the object with the settings used for calls to createGlossary. */ - public OperationCallSettings - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the object with the settings used for calls to listGlossaries. */ - public PagedCallSettings< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the object with the settings used for calls to getGlossary. */ - public UnaryCallSettings getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public UnaryCallSettings deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the object with the settings used for calls to deleteGlossary. */ - public OperationCallSettings< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - public TranslationServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcTranslationServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonTranslationServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "translate.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "translate.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - translateTextSettings = settingsBuilder.translateTextSettings().build(); - detectLanguageSettings = settingsBuilder.detectLanguageSettings().build(); - getSupportedLanguagesSettings = settingsBuilder.getSupportedLanguagesSettings().build(); - translateDocumentSettings = settingsBuilder.translateDocumentSettings().build(); - batchTranslateTextSettings = settingsBuilder.batchTranslateTextSettings().build(); - batchTranslateTextOperationSettings = - settingsBuilder.batchTranslateTextOperationSettings().build(); - batchTranslateDocumentSettings = settingsBuilder.batchTranslateDocumentSettings().build(); - batchTranslateDocumentOperationSettings = - settingsBuilder.batchTranslateDocumentOperationSettings().build(); - createGlossarySettings = settingsBuilder.createGlossarySettings().build(); - createGlossaryOperationSettings = settingsBuilder.createGlossaryOperationSettings().build(); - listGlossariesSettings = settingsBuilder.listGlossariesSettings().build(); - getGlossarySettings = settingsBuilder.getGlossarySettings().build(); - deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); - deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); - } - - /** Builder for TranslationServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - translateTextSettings; - private final UnaryCallSettings.Builder - detectLanguageSettings; - private final UnaryCallSettings.Builder - getSupportedLanguagesSettings; - private final UnaryCallSettings.Builder - translateDocumentSettings; - private final UnaryCallSettings.Builder - batchTranslateTextSettings; - private final OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings; - private final UnaryCallSettings.Builder - batchTranslateDocumentSettings; - private final OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings; - private final UnaryCallSettings.Builder - createGlossarySettings; - private final OperationCallSettings.Builder< - CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> - createGlossaryOperationSettings; - private final PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings; - private final UnaryCallSettings.Builder getGlossarySettings; - private final UnaryCallSettings.Builder - deleteGlossarySettings; - private final OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("no_retry_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - detectLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getSupportedLanguagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - translateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateTextOperationSettings = OperationCallSettings.newBuilder(); - batchTranslateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchTranslateDocumentOperationSettings = OperationCallSettings.newBuilder(); - createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createGlossaryOperationSettings = OperationCallSettings.newBuilder(); - listGlossariesSettings = PagedCallSettings.newBuilder(LIST_GLOSSARIES_PAGE_STR_FACT); - getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - initDefaults(this); - } - - protected Builder(TranslationServiceStubSettings settings) { - super(settings); - - translateTextSettings = settings.translateTextSettings.toBuilder(); - detectLanguageSettings = settings.detectLanguageSettings.toBuilder(); - getSupportedLanguagesSettings = settings.getSupportedLanguagesSettings.toBuilder(); - translateDocumentSettings = settings.translateDocumentSettings.toBuilder(); - batchTranslateTextSettings = settings.batchTranslateTextSettings.toBuilder(); - batchTranslateTextOperationSettings = - settings.batchTranslateTextOperationSettings.toBuilder(); - batchTranslateDocumentSettings = settings.batchTranslateDocumentSettings.toBuilder(); - batchTranslateDocumentOperationSettings = - settings.batchTranslateDocumentOperationSettings.toBuilder(); - createGlossarySettings = settings.createGlossarySettings.toBuilder(); - createGlossaryOperationSettings = settings.createGlossaryOperationSettings.toBuilder(); - listGlossariesSettings = settings.listGlossariesSettings.toBuilder(); - getGlossarySettings = settings.getGlossarySettings.toBuilder(); - deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); - deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - translateTextSettings, - detectLanguageSettings, - getSupportedLanguagesSettings, - translateDocumentSettings, - batchTranslateTextSettings, - batchTranslateDocumentSettings, - createGlossarySettings, - listGlossariesSettings, - getGlossarySettings, - deleteGlossarySettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .translateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .detectLanguageSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .getSupportedLanguagesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .translateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .batchTranslateTextSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .batchTranslateDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .createGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .listGlossariesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .deleteGlossarySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .batchTranslateTextOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(BatchTranslateResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(BatchTranslateMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .batchTranslateDocumentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - BatchTranslateDocumentResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create( - BatchTranslateDocumentMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Glossary.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(CreateGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteGlossaryOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DeleteGlossaryResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(DeleteGlossaryMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to translateText. */ - public UnaryCallSettings.Builder - translateTextSettings() { - return translateTextSettings; - } - - /** Returns the builder for the settings used for calls to detectLanguage. */ - public UnaryCallSettings.Builder - detectLanguageSettings() { - return detectLanguageSettings; - } - - /** Returns the builder for the settings used for calls to getSupportedLanguages. */ - public UnaryCallSettings.Builder - getSupportedLanguagesSettings() { - return getSupportedLanguagesSettings; - } - - /** Returns the builder for the settings used for calls to translateDocument. */ - public UnaryCallSettings.Builder - translateDocumentSettings() { - return translateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - public UnaryCallSettings.Builder - batchTranslateTextSettings() { - return batchTranslateTextSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateText. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> - batchTranslateTextOperationSettings() { - return batchTranslateTextOperationSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - public UnaryCallSettings.Builder - batchTranslateDocumentSettings() { - return batchTranslateDocumentSettings; - } - - /** Returns the builder for the settings used for calls to batchTranslateDocument. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - BatchTranslateDocumentRequest, - BatchTranslateDocumentResponse, - BatchTranslateDocumentMetadata> - batchTranslateDocumentOperationSettings() { - return batchTranslateDocumentOperationSettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - public UnaryCallSettings.Builder createGlossarySettings() { - return createGlossarySettings; - } - - /** Returns the builder for the settings used for calls to createGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createGlossaryOperationSettings() { - return createGlossaryOperationSettings; - } - - /** Returns the builder for the settings used for calls to listGlossaries. */ - public PagedCallSettings.Builder< - ListGlossariesRequest, ListGlossariesResponse, ListGlossariesPagedResponse> - listGlossariesSettings() { - return listGlossariesSettings; - } - - /** Returns the builder for the settings used for calls to getGlossary. */ - public UnaryCallSettings.Builder getGlossarySettings() { - return getGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - public UnaryCallSettings.Builder deleteGlossarySettings() { - return deleteGlossarySettings; - } - - /** Returns the builder for the settings used for calls to deleteGlossary. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> - deleteGlossaryOperationSettings() { - return deleteGlossaryOperationSettings; - } - - @Override - public TranslationServiceStubSettings build() throws IOException { - return new TranslationServiceStubSettings(this); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json deleted file mode 100644 index d3385a0a400e..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json +++ /dev/null @@ -1,1946 +0,0 @@ -[ - { - "name": "com.google.api.ClientLibraryDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryOrganization", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.FieldBehavior", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LaunchStage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$History", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Style", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.BatchTranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.CreateGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata$State", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DeleteGlossaryResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectLanguageResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DetectedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentOutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentTranslation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.DocumentTranslation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsDestination$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GcsSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetGlossaryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodePair$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Glossary$LanguageCodesSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.GlossaryInputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.InputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.InputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.ListGlossariesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.OutputConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.OutputConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguages", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.SupportedLanguages$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateDocumentResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.TranslateTextResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Translation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.translate.v3beta1.Translation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - } -] \ No newline at end of file diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java deleted file mode 100644 index 6a2b27a48654..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationService implements MockGrpcService { - private final MockTranslationServiceImpl serviceImpl; - - public MockTranslationService() { - serviceImpl = new MockTranslationServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java deleted file mode 100644 index fa60bcd84b2f..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.translate.v3beta1.TranslationServiceGrpc.TranslationServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTranslationServiceImpl extends TranslationServiceImplBase { - private List requests; - private Queue responses; - - public MockTranslationServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void translateText( - TranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateTextResponse) { - requests.add(request); - responseObserver.onNext(((TranslateTextResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateTextResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void detectLanguage( - DetectLanguageRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DetectLanguageResponse) { - requests.add(request); - responseObserver.onNext(((DetectLanguageResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DetectLanguage, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DetectLanguageResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getSupportedLanguages( - GetSupportedLanguagesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SupportedLanguages) { - requests.add(request); - responseObserver.onNext(((SupportedLanguages) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetSupportedLanguages, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SupportedLanguages.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void translateDocument( - TranslateDocumentRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TranslateDocumentResponse) { - requests.add(request); - responseObserver.onNext(((TranslateDocumentResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TranslateDocumentResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateText( - BatchTranslateTextRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateText, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchTranslateDocument( - BatchTranslateDocumentRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchTranslateDocument, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createGlossary( - CreateGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listGlossaries( - ListGlossariesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListGlossariesResponse) { - requests.add(request); - responseObserver.onNext(((ListGlossariesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListGlossaries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListGlossariesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getGlossary(GetGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Glossary) { - requests.add(request); - responseObserver.onNext(((Glossary) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Glossary.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteGlossary( - DeleteGlossaryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteGlossary, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java deleted file mode 100644 index 833b24cd2ee2..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java +++ /dev/null @@ -1,1036 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.translate.v3beta1.stub.HttpJsonTranslationServiceStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonTranslationServiceStub.getMethodDescriptors(), - TranslationServiceSettings.getDefaultEndpoint()); - TranslationServiceSettings settings = - TranslationServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - TranslationServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateTextResponse actualResponse = client.translateText(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateText(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9868/locations/location-9868/glossaries/glossarie-9868"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java deleted file mode 100644 index 49f53b41e820..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java +++ /dev/null @@ -1,1005 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1; - -import static com.google.cloud.translate.v3beta1.TranslationServiceClient.ListGlossariesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TranslationServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTranslationService mockTranslationService; - private LocalChannelProvider channelProvider; - private TranslationServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTranslationService = new MockTranslationService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTranslationService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TranslationServiceSettings settings = - TranslationServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TranslationServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void translateTextTest() throws Exception { - TranslateTextResponse expectedResponse = - TranslateTextResponse.newBuilder() - .addAllTranslations(new ArrayList()) - .addAllGlossaryTranslations(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateTextResponse actualResponse = client.translateText(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateTextRequest actualRequest = ((TranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList()); - Assert.assertEquals(request.getMimeType(), actualRequest.getMimeType()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getModel(), actualRequest.getModel()); - Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - TranslateTextRequest request = - TranslateTextRequest.newBuilder() - .addAllContents(new ArrayList()) - .setMimeType("mimeType-1392120434") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateText(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void detectLanguageTest2() throws Exception { - DetectLanguageResponse expectedResponse = - DetectLanguageResponse.newBuilder() - .addAllLanguages(new ArrayList()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - - DetectLanguageResponse actualResponse = client.detectLanguage(parent, model, mimeType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DetectLanguageRequest actualRequest = ((DetectLanguageRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertEquals(mimeType, actualRequest.getMimeType()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void detectLanguageExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String model = "model104069929"; - String mimeType = "mimeType-1392120434"; - client.detectLanguage(parent, model, mimeType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSupportedLanguagesTest2() throws Exception { - SupportedLanguages expectedResponse = - SupportedLanguages.newBuilder().addAllLanguages(new ArrayList()).build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - - SupportedLanguages actualResponse = - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSupportedLanguagesRequest actualRequest = - ((GetSupportedLanguagesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(displayLanguageCode, actualRequest.getDisplayLanguageCode()); - Assert.assertEquals(model, actualRequest.getModel()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSupportedLanguagesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String displayLanguageCode = "displayLanguageCode-1457478841"; - String model = "model104069929"; - client.getSupportedLanguages(parent, displayLanguageCode, model); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void translateDocumentTest() throws Exception { - TranslateDocumentResponse expectedResponse = - TranslateDocumentResponse.newBuilder() - .setDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setGlossaryDocumentTranslation(DocumentTranslation.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - TranslateDocumentResponse actualResponse = client.translateDocument(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TranslateDocumentRequest actualRequest = ((TranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); - Assert.assertEquals(request.getDocumentInputConfig(), actualRequest.getDocumentInputConfig()); - Assert.assertEquals(request.getDocumentOutputConfig(), actualRequest.getDocumentOutputConfig()); - Assert.assertEquals(request.getModel(), actualRequest.getModel()); - Assert.assertEquals(request.getGlossaryConfig(), actualRequest.getGlossaryConfig()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void translateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - TranslateDocumentRequest request = - TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") - .setSourceLanguageCode("sourceLanguageCode1645917472") - .setTargetLanguageCode("targetLanguageCode-106414698") - .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) - .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build()) - .setModel("model104069929") - .setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.translateDocument(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchTranslateTextTest() throws Exception { - BatchTranslateResponse expectedResponse = - BatchTranslateResponse.newBuilder() - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateTextTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - - BatchTranslateResponse actualResponse = client.batchTranslateTextAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateTextRequest actualRequest = ((BatchTranslateTextRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals( - request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); - Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); - Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); - Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); - Assert.assertEquals(request.getLabelsMap(), actualRequest.getLabelsMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateTextExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - BatchTranslateTextRequest request = - BatchTranslateTextRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setSourceLanguageCode("sourceLanguageCode1645917472") - .addAllTargetLanguageCodes(new ArrayList()) - .putAllModels(new HashMap()) - .addAllInputConfigs(new ArrayList()) - .setOutputConfig(OutputConfig.newBuilder().build()) - .putAllGlossaries(new HashMap()) - .putAllLabels(new HashMap()) - .build(); - client.batchTranslateTextAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void batchTranslateDocumentTest2() throws Exception { - BatchTranslateDocumentResponse expectedResponse = - BatchTranslateDocumentResponse.newBuilder() - .setTotalPages(-396186871) - .setTranslatedPages(-1652747493) - .setFailedPages(-2002254526) - .setTotalBillablePages(1292117569) - .setTotalCharacters(-1368640955) - .setTranslatedCharacters(-1337326221) - .setFailedCharacters(1723028396) - .setTotalBillableCharacters(1242495501) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("batchTranslateDocumentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - - BatchTranslateDocumentResponse actualResponse = - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchTranslateDocumentRequest actualRequest = - ((BatchTranslateDocumentRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(sourceLanguageCode, actualRequest.getSourceLanguageCode()); - Assert.assertEquals(targetLanguageCodes, actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(inputConfigs, actualRequest.getInputConfigsList()); - Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchTranslateDocumentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String sourceLanguageCode = "sourceLanguageCode1645917472"; - List targetLanguageCodes = new ArrayList<>(); - List inputConfigs = new ArrayList<>(); - BatchDocumentOutputConfig outputConfig = BatchDocumentOutputConfig.newBuilder().build(); - client - .batchTranslateDocumentAsync( - parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - - Glossary actualResponse = client.createGlossaryAsync(parent, glossary).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGlossaryRequest actualRequest = ((CreateGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(glossary, actualRequest.getGlossary()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - Glossary glossary = Glossary.newBuilder().build(); - client.createGlossaryAsync(parent, glossary).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listGlossariesTest() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGlossariesTest2() throws Exception { - Glossary responsesElement = Glossary.newBuilder().build(); - ListGlossariesResponse expectedResponse = - ListGlossariesResponse.newBuilder() - .setNextPageToken("") - .addAllGlossaries(Arrays.asList(responsesElement)) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String filter = "filter-1274492040"; - - ListGlossariesPagedResponse pagedListResponse = client.listGlossaries(parent, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGlossariesList().get(0), resources.get(0)); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGlossariesRequest actualRequest = ((ListGlossariesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGlossariesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String parent = "parent-995424086"; - String filter = "filter-1274492040"; - client.listGlossaries(parent, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlossaryTest2() throws Exception { - Glossary expectedResponse = - Glossary.newBuilder() - .setName(GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]").toString()) - .setInputConfig(GlossaryInputConfig.newBuilder().build()) - .setEntryCount(-811131134) - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - mockTranslationService.addResponse(expectedResponse); - - String name = "name3373707"; - - Glossary actualResponse = client.getGlossary(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlossaryRequest actualRequest = ((GetGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.getGlossary(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGlossaryTest() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - GlossaryName name = GlossaryName.of("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteGlossaryTest2() throws Exception { - DeleteGlossaryResponse expectedResponse = - DeleteGlossaryResponse.newBuilder() - .setName("name3373707") - .setSubmitTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGlossaryTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockTranslationService.addResponse(resultOperation); - - String name = "name3373707"; - - DeleteGlossaryResponse actualResponse = client.deleteGlossaryAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTranslationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGlossaryRequest actualRequest = ((DeleteGlossaryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGlossaryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTranslationService.addException(exception); - - try { - String name = "name3373707"; - client.deleteGlossaryAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java deleted file mode 100644 index c48a6cfe3d9c..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java +++ /dev/null @@ -1,1157 +0,0 @@ -package com.google.cloud.translate.v3beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Provides natural language translation operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TranslationServiceGrpc { - - private TranslationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.translation.v3beta1.TranslationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateText", - requestType = com.google.cloud.translate.v3beta1.TranslateTextRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateTextResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateTextMethod() { - io.grpc.MethodDescriptor getTranslateTextMethod; - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateTextMethod = TranslationServiceGrpc.getTranslateTextMethod) == null) { - TranslationServiceGrpc.getTranslateTextMethod = getTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateTextResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateText")) - .build(); - } - } - } - return getTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getDetectLanguageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectLanguage", - requestType = com.google.cloud.translate.v3beta1.DetectLanguageRequest.class, - responseType = com.google.cloud.translate.v3beta1.DetectLanguageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDetectLanguageMethod() { - io.grpc.MethodDescriptor getDetectLanguageMethod; - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDetectLanguageMethod = TranslationServiceGrpc.getDetectLanguageMethod) == null) { - TranslationServiceGrpc.getDetectLanguageMethod = getDetectLanguageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectLanguage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DetectLanguageResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DetectLanguage")) - .build(); - } - } - } - return getDetectLanguageMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSupportedLanguages", - requestType = com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.class, - responseType = com.google.cloud.translate.v3beta1.SupportedLanguages.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSupportedLanguagesMethod() { - io.grpc.MethodDescriptor getGetSupportedLanguagesMethod; - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetSupportedLanguagesMethod = TranslationServiceGrpc.getGetSupportedLanguagesMethod) == null) { - TranslationServiceGrpc.getGetSupportedLanguagesMethod = getGetSupportedLanguagesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSupportedLanguages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.SupportedLanguages.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetSupportedLanguages")) - .build(); - } - } - } - return getGetSupportedLanguagesMethod; - } - - private static volatile io.grpc.MethodDescriptor getTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TranslateDocument", - requestType = com.google.cloud.translate.v3beta1.TranslateDocumentRequest.class, - responseType = com.google.cloud.translate.v3beta1.TranslateDocumentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateDocumentMethod() { - io.grpc.MethodDescriptor getTranslateDocumentMethod; - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getTranslateDocumentMethod = TranslationServiceGrpc.getTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getTranslateDocumentMethod = getTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.TranslateDocumentResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("TranslateDocument")) - .build(); - } - } - } - return getTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateText", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateTextMethod() { - io.grpc.MethodDescriptor getBatchTranslateTextMethod; - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateTextMethod = TranslationServiceGrpc.getBatchTranslateTextMethod) == null) { - TranslationServiceGrpc.getBatchTranslateTextMethod = getBatchTranslateTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateText")) - .build(); - } - } - } - return getBatchTranslateTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchTranslateDocument", - requestType = com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchTranslateDocumentMethod() { - io.grpc.MethodDescriptor getBatchTranslateDocumentMethod; - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getBatchTranslateDocumentMethod = TranslationServiceGrpc.getBatchTranslateDocumentMethod) == null) { - TranslationServiceGrpc.getBatchTranslateDocumentMethod = getBatchTranslateDocumentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchTranslateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("BatchTranslateDocument")) - .build(); - } - } - } - return getBatchTranslateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGlossary", - requestType = com.google.cloud.translate.v3beta1.CreateGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateGlossaryMethod() { - io.grpc.MethodDescriptor getCreateGlossaryMethod; - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getCreateGlossaryMethod = TranslationServiceGrpc.getCreateGlossaryMethod) == null) { - TranslationServiceGrpc.getCreateGlossaryMethod = getCreateGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("CreateGlossary")) - .build(); - } - } - } - return getCreateGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getListGlossariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGlossaries", - requestType = com.google.cloud.translate.v3beta1.ListGlossariesRequest.class, - responseType = com.google.cloud.translate.v3beta1.ListGlossariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListGlossariesMethod() { - io.grpc.MethodDescriptor getListGlossariesMethod; - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getListGlossariesMethod = TranslationServiceGrpc.getListGlossariesMethod) == null) { - TranslationServiceGrpc.getListGlossariesMethod = getListGlossariesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGlossaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.ListGlossariesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("ListGlossaries")) - .build(); - } - } - } - return getListGlossariesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlossary", - requestType = com.google.cloud.translate.v3beta1.GetGlossaryRequest.class, - responseType = com.google.cloud.translate.v3beta1.Glossary.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGlossaryMethod() { - io.grpc.MethodDescriptor getGetGlossaryMethod; - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getGetGlossaryMethod = TranslationServiceGrpc.getGetGlossaryMethod) == null) { - TranslationServiceGrpc.getGetGlossaryMethod = getGetGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.GetGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.Glossary.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("GetGlossary")) - .build(); - } - } - } - return getGetGlossaryMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteGlossaryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGlossary", - requestType = com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteGlossaryMethod() { - io.grpc.MethodDescriptor getDeleteGlossaryMethod; - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - synchronized (TranslationServiceGrpc.class) { - if ((getDeleteGlossaryMethod = TranslationServiceGrpc.getDeleteGlossaryMethod) == null) { - TranslationServiceGrpc.getDeleteGlossaryMethod = getDeleteGlossaryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGlossary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("DeleteGlossary")) - .build(); - } - } - } - return getDeleteGlossaryMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TranslationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - }; - return TranslationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TranslationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - }; - return TranslationServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TranslationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - }; - return TranslationServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Provides natural language translation operations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - default void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - default void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - default void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - default void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateTextMethod(), responseObserver); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - default void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchTranslateDocumentMethod(), responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - default void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGlossaryMethod(), responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - default void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGlossariesMethod(), responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - default void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlossaryMethod(), responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - default void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static abstract class TranslationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return TranslationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TranslationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public void translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public void detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public void getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public void translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public void batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public void createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public void listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public void getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TranslationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText(com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage(com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectLanguageMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages(com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument(com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateText(com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.longrunning.Operation batchTranslateDocument(com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation createGlossary(com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries(com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGlossariesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.translate.v3beta1.Glossary getGlossary(com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlossaryMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.longrunning.Operation deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService. - *
-   * Provides natural language translation operations.
-   * 
- */ - public static final class TranslationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TranslationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TranslationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TranslationServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Translates input text and returns translated text.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Detects the language of text within a request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectLanguageMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of supported languages for translation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSupportedLanguagesMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of text in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can
-     * use google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Translates a large volume of documents in asynchronous batch mode.
-     * This function provides real-time output as the inputs are being processed.
-     * If caller cancels a request, the partial results (for an input file, it's
-     * all or nothing) may still be available on the specified output location.
-     * This call returns immediately and you can use
-     * google.longrunning.Operation.name to poll the status of the call.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchTranslateDocumentMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a glossary and returns the long-running operation. Returns
-     * NOT_FOUND, if the project doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGlossariesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlossaryMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a glossary, or cancels glossary construction
-     * if the glossary isn't created yet.
-     * Returns NOT_FOUND, if the glossary doesn't exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TRANSLATE_TEXT = 0; - private static final int METHODID_DETECT_LANGUAGE = 1; - private static final int METHODID_GET_SUPPORTED_LANGUAGES = 2; - private static final int METHODID_TRANSLATE_DOCUMENT = 3; - private static final int METHODID_BATCH_TRANSLATE_TEXT = 4; - private static final int METHODID_BATCH_TRANSLATE_DOCUMENT = 5; - private static final int METHODID_CREATE_GLOSSARY = 6; - private static final int METHODID_LIST_GLOSSARIES = 7; - private static final int METHODID_GET_GLOSSARY = 8; - private static final int METHODID_DELETE_GLOSSARY = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TRANSLATE_TEXT: - serviceImpl.translateText((com.google.cloud.translate.v3beta1.TranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETECT_LANGUAGE: - serviceImpl.detectLanguage((com.google.cloud.translate.v3beta1.DetectLanguageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SUPPORTED_LANGUAGES: - serviceImpl.getSupportedLanguages((com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRANSLATE_DOCUMENT: - serviceImpl.translateDocument((com.google.cloud.translate.v3beta1.TranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_TEXT: - serviceImpl.batchTranslateText((com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_TRANSLATE_DOCUMENT: - serviceImpl.batchTranslateDocument((com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GLOSSARY: - serviceImpl.createGlossary((com.google.cloud.translate.v3beta1.CreateGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GLOSSARIES: - serviceImpl.listGlossaries((com.google.cloud.translate.v3beta1.ListGlossariesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GLOSSARY: - serviceImpl.getGlossary((com.google.cloud.translate.v3beta1.GetGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GLOSSARY: - serviceImpl.deleteGlossary((com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateTextRequest, - com.google.cloud.translate.v3beta1.TranslateTextResponse>( - service, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse>( - service, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages>( - service, METHODID_GET_SUPPORTED_LANGUAGES))) - .addMethod( - getTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.TranslateDocumentRequest, - com.google.cloud.translate.v3beta1.TranslateDocumentResponse>( - service, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>( - service, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse>( - service, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary>( - service, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_GLOSSARY))) - .build(); - } - - private static abstract class TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TranslationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.translate.v3beta1.TranslationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TranslationService"); - } - } - - private static final class TranslationServiceFileDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier { - TranslationServiceFileDescriptorSupplier() {} - } - - private static final class TranslationServiceMethodDescriptorSupplier - extends TranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TranslationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TranslationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateTextMethod()) - .addMethod(getDetectLanguageMethod()) - .addMethod(getGetSupportedLanguagesMethod()) - .addMethod(getTranslateDocumentMethod()) - .addMethod(getBatchTranslateTextMethod()) - .addMethod(getBatchTranslateDocumentMethod()) - .addMethod(getCreateGlossaryMethod()) - .addMethod(getListGlossariesMethod()) - .addMethod(getGetGlossaryMethod()) - .addMethod(getDeleteGlossaryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index 148408b6d92a..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface CreateGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.CreateGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The project name.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the glossary field is set. - */ - boolean hasGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The glossary. - */ - com.google.cloud.translate.v3beta1.Glossary getGlossary(); - /** - *
-   * Required. The glossary to create.
-   * 
- * - * .google.cloud.translation.v3beta1.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 0285761073ae..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface DeleteGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.DeleteGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 28d83bb94b87..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public interface GetGlossaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.GetGlossaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the glossary to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java deleted file mode 100644 index 47f86e7725fd..000000000000 --- a/owl-bot-staging/java-translate/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java +++ /dev/null @@ -1,882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/translate/v3beta1/translation_service.proto - -package com.google.cloud.translate.v3beta1; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Translation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/translate/v3beta1/transla" + - "tion_service.proto\022 google.cloud.transla" + - "tion.v3beta1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032#google/longrunning/operations.p" + - "roto\032\037google/protobuf/timestamp.proto\"P\n" + - "\033TranslateTextGlossaryConfig\022\026\n\010glossary" + - "\030\001 \001(\tB\004\342A\001\002\022\031\n\013ignore_case\030\002 \001(\010B\004\342A\001\001\"" + - "\307\003\n\024TranslateTextRequest\022\026\n\010contents\030\001 \003" + - "(\tB\004\342A\001\002\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022\"\n\024sou" + - "rce_language_code\030\004 \001(\tB\004\342A\001\001\022\"\n\024target_" + - "language_code\030\005 \001(\tB\004\342A\001\002\022:\n\006parent\030\010 \001(" + - "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" + - "ation\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017glossary_c" + - "onfig\030\007 \001(\0132=.google.cloud.translation.v" + - "3beta1.TranslateTextGlossaryConfigB\004\342A\001\001" + - "\022X\n\006labels\030\n \003(\0132B.google.cloud.translat" + - "ion.v3beta1.TranslateTextRequest.LabelsE" + - "ntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\025TranslateTextRespo" + - "nse\022C\n\014translations\030\001 \003(\0132-.google.cloud" + - ".translation.v3beta1.Translation\022L\n\025glos" + - "sary_translations\030\003 \003(\0132-.google.cloud.t" + - "ranslation.v3beta1.Translation\"\255\001\n\013Trans" + - "lation\022\027\n\017translated_text\030\001 \001(\t\022\r\n\005model" + - "\030\002 \001(\t\022\036\n\026detected_language_code\030\004 \001(\t\022V" + - "\n\017glossary_config\030\003 \001(\0132=.google.cloud.t" + - "ranslation.v3beta1.TranslateTextGlossary" + - "Config\"\250\002\n\025DetectLanguageRequest\022:\n\006pare" + - "nt\030\005 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." + - "com/Location\022\023\n\005model\030\004 \001(\tB\004\342A\001\001\022\021\n\007con" + - "tent\030\001 \001(\tH\000\022\027\n\tmime_type\030\003 \001(\tB\004\342A\001\001\022Y\n" + - "\006labels\030\006 \003(\0132C.google.cloud.translation" + - ".v3beta1.DetectLanguageRequest.LabelsEnt" + - "ryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020DetectedLan" + - "guage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfiden" + - "ce\030\002 \001(\002\"_\n\026DetectLanguageResponse\022E\n\tla" + - "nguages\030\001 \003(\01322.google.cloud.translation" + - ".v3beta1.DetectedLanguage\"\224\001\n\034GetSupport" + - "edLanguagesRequest\022:\n\006parent\030\003 \001(\tB*\342A\001\002" + - "\372A#\n!locations.googleapis.com/Location\022#" + - "\n\025display_language_code\030\001 \001(\tB\004\342A\001\001\022\023\n\005m" + - "odel\030\002 \001(\tB\004\342A\001\001\"\\\n\022SupportedLanguages\022F" + - "\n\tlanguages\030\001 \003(\01323.google.cloud.transla" + - "tion.v3beta1.SupportedLanguage\"p\n\021Suppor" + - "tedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022\024\n\014di" + - "splay_name\030\002 \001(\t\022\026\n\016support_source\030\003 \001(\010" + - "\022\026\n\016support_target\030\004 \001(\010\"$\n\tGcsSource\022\027\n" + - "\tinput_uri\030\001 \001(\tB\004\342A\001\002\"s\n\013InputConfig\022\027\n" + - "\tmime_type\030\001 \001(\tB\004\342A\001\001\022A\n\ngcs_source\030\002 \001" + - "(\0132+.google.cloud.translation.v3beta1.Gc" + - "sSourceH\000B\010\n\006source\"1\n\016GcsDestination\022\037\n" + - "\021output_uri_prefix\030\001 \001(\tB\004\342A\001\002\"j\n\014Output" + - "Config\022K\n\017gcs_destination\030\001 \001(\01320.google" + - ".cloud.translation.v3beta1.GcsDestinatio" + - "nH\000B\r\n\013destination\"\210\001\n\023DocumentInputConf" + - "ig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source\030\002 \001(" + - "\0132+.google.cloud.translation.v3beta1.Gcs" + - "SourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006source\"\221\001" + - "\n\024DocumentOutputConfig\022Q\n\017gcs_destinatio" + - "n\030\001 \001(\01320.google.cloud.translation.v3bet" + - "a1.GcsDestinationB\004\342A\001\001H\000\022\027\n\tmime_type\030\003" + - " \001(\tB\004\342A\001\001B\r\n\013destination\"\262\004\n\030TranslateD" + - "ocumentRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\"\n\024" + - "source_language_code\030\002 \001(\tB\004\342A\001\001\022\"\n\024targ" + - "et_language_code\030\003 \001(\tB\004\342A\001\002\022Z\n\025document" + - "_input_config\030\004 \001(\01325.google.cloud.trans" + - "lation.v3beta1.DocumentInputConfigB\004\342A\001\002" + - "\022\\\n\026document_output_config\030\005 \001(\01326.googl" + - "e.cloud.translation.v3beta1.DocumentOutp" + - "utConfigB\004\342A\001\001\022\023\n\005model\030\006 \001(\tB\004\342A\001\001\022\\\n\017g" + - "lossary_config\030\007 \001(\0132=.google.cloud.tran" + - "slation.v3beta1.TranslateTextGlossaryCon" + - "figB\004\342A\001\001\022\\\n\006labels\030\010 \003(\0132F.google.cloud" + - ".translation.v3beta1.TranslateDocumentRe" + - "quest.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023Docume" + - "ntTranslation\022\033\n\023byte_stream_outputs\030\001 \003" + - "(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026detected_langua" + - "ge_code\030\003 \001(\t\"\265\002\n\031TranslateDocumentRespo" + - "nse\022S\n\024document_translation\030\001 \001(\01325.goog" + - "le.cloud.translation.v3beta1.DocumentTra" + - "nslation\022\\\n\035glossary_document_translatio" + - "n\030\002 \001(\01325.google.cloud.translation.v3bet" + - "a1.DocumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n" + - "\017glossary_config\030\004 \001(\0132=.google.cloud.tr" + - "anslation.v3beta1.TranslateTextGlossaryC" + - "onfig\"\256\006\n\031BatchTranslateTextRequest\022:\n\006p" + - "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap" + - "is.com/Location\022\"\n\024source_language_code\030" + - "\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 \003" + - "(\tB\004\342A\001\002\022]\n\006models\030\004 \003(\0132G.google.cloud." + - "translation.v3beta1.BatchTranslateTextRe" + - "quest.ModelsEntryB\004\342A\001\001\022J\n\rinput_configs" + - "\030\005 \003(\0132-.google.cloud.translation.v3beta" + - "1.InputConfigB\004\342A\001\002\022K\n\routput_config\030\006 \001" + - "(\0132..google.cloud.translation.v3beta1.Ou" + - "tputConfigB\004\342A\001\002\022e\n\nglossaries\030\007 \003(\0132K.g" + - "oogle.cloud.translation.v3beta1.BatchTra" + - "nslateTextRequest.GlossariesEntryB\004\342A\001\001\022" + - "]\n\006labels\030\t \003(\0132G.google.cloud.translati" + - "on.v3beta1.BatchTranslateTextRequest.Lab" + - "elsEntryB\004\342A\001\001\032-\n\013ModelsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032p\n\017GlossariesEntry" + - "\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.google.cl" + - "oud.translation.v3beta1.TranslateTextGlo" + - "ssaryConfig:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323\002\n\026BatchTranslat" + - "eMetadata\022M\n\005state\030\001 \001(\0162>.google.cloud." + - "translation.v3beta1.BatchTranslateMetada" + - "ta.State\022\035\n\025translated_characters\030\002 \001(\003\022" + - "\031\n\021failed_characters\030\003 \001(\003\022\030\n\020total_char" + - "acters\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.goog" + - "le.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_" + - "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020" + - "\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELL" + - "ED\020\005\"\313\001\n\026BatchTranslateResponse\022\030\n\020total" + - "_characters\030\001 \001(\003\022\035\n\025translated_characte" + - "rs\030\002 \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013s" + - "ubmit_time\030\004 \001(\0132\032.google.protobuf.Times" + - "tamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf" + - ".Timestamp\"b\n\023GlossaryInputConfig\022A\n\ngcs" + - "_source\030\001 \001(\0132+.google.cloud.translation" + - ".v3beta1.GcsSourceH\000B\010\n\006source\"\222\005\n\010Gloss" + - "ary\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022T\n\rlanguage_pair" + - "\030\003 \001(\0132;.google.cloud.translation.v3beta" + - "1.Glossary.LanguageCodePairH\000\022Y\n\022languag" + - "e_codes_set\030\004 \001(\0132;.google.cloud.transla" + - "tion.v3beta1.Glossary.LanguageCodesSetH\000" + - "\022K\n\014input_config\030\005 \001(\01325.google.cloud.tr" + - "anslation.v3beta1.GlossaryInputConfig\022\031\n" + - "\013entry_count\030\006 \001(\005B\004\342A\001\003\0225\n\013submit_time\030" + - "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + - "2\n\010end_time\030\010 \001(\0132\032.google.protobuf.Time" + - "stampB\004\342A\001\003\032N\n\020LanguageCodePair\022\034\n\024sourc" + - "e_language_code\030\001 \001(\t\022\034\n\024target_language" + - "_code\030\002 \001(\t\032*\n\020LanguageCodesSet\022\026\n\016langu" + - "age_codes\030\001 \003(\t:e\352Ab\n!translate.googleap" + - "is.com/Glossary\022=projects/{project}/loca" + - "tions/{location}/glossaries/{glossary}B\013" + - "\n\tlanguages\"\227\001\n\025CreateGlossaryRequest\022:\n" + - "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" + - "apis.com/Location\022B\n\010glossary\030\002 \001(\0132*.go" + - "ogle.cloud.translation.v3beta1.GlossaryB" + - "\004\342A\001\002\"N\n\022GetGlossaryRequest\0228\n\004name\030\001 \001(" + - "\tB*\342A\001\002\372A#\n!translate.googleapis.com/Glo" + - "ssary\"Q\n\025DeleteGlossaryRequest\0228\n\004name\030\001" + - " \001(\tB*\342A\001\002\372A#\n!translate.googleapis.com/" + - "Glossary\"\234\001\n\025ListGlossariesRequest\022:\n\006pa" + - "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi" + - "s.com/Location\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + - "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(" + - "\tB\004\342A\001\001\"q\n\026ListGlossariesResponse\022>\n\nglo" + - "ssaries\030\001 \003(\0132*.google.cloud.translation" + - ".v3beta1.Glossary\022\027\n\017next_page_token\030\002 \001" + - "(\t\"\215\002\n\026CreateGlossaryMetadata\022\014\n\004name\030\001 " + - "\001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud.transl" + - "ation.v3beta1.CreateGlossaryMetadata.Sta" + - "te\022/\n\013submit_time\030\003 \001(\0132\032.google.protobu" + - "f.Timestamp\"e\n\005State\022\025\n\021STATE_UNSPECIFIE" + - "D\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + - "D\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\215\002\n\026D" + - "eleteGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022M\n\005s" + - "tate\030\002 \001(\0162>.google.cloud.translation.v3" + - "beta1.DeleteGlossaryMetadata.State\022/\n\013su" + - "bmit_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "amp\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007R" + - "UNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nC" + - "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\"\205\001\n\026DeleteGlo" + - "ssaryResponse\022\014\n\004name\030\001 \001(\t\022/\n\013submit_ti" + - "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + - "end_time\030\003 \001(\0132\032.google.protobuf.Timesta" + - "mp\"\372\006\n\035BatchTranslateDocumentRequest\022:\n\006" + - "parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googlea" + - "pis.com/Location\022\"\n\024source_language_code" + - "\030\002 \001(\tB\004\342A\001\002\022#\n\025target_language_codes\030\003 " + - "\003(\tB\004\342A\001\002\022W\n\rinput_configs\030\004 \003(\0132:.googl" + - "e.cloud.translation.v3beta1.BatchDocumen" + - "tInputConfigB\004\342A\001\002\022X\n\routput_config\030\005 \001(" + - "\0132;.google.cloud.translation.v3beta1.Bat" + - "chDocumentOutputConfigB\004\342A\001\002\022a\n\006models\030\006" + - " \003(\0132K.google.cloud.translation.v3beta1." + - "BatchTranslateDocumentRequest.ModelsEntr" + - "yB\004\342A\001\001\022i\n\nglossaries\030\007 \003(\0132O.google.clo" + - "ud.translation.v3beta1.BatchTranslateDoc" + - "umentRequest.GlossariesEntryB\004\342A\001\001\022x\n\022fo" + - "rmat_conversions\030\010 \003(\0132V.google.cloud.tr" + - "anslation.v3beta1.BatchTranslateDocument" + - "Request.FormatConversionsEntryB\004\342A\001\001\032-\n\013" + - "ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\032p\n\017GlossariesEntry\022\013\n\003key\030\001 \001(\t\022L\n\005v" + - "alue\030\002 \001(\0132=.google.cloud.translation.v3" + - "beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + - "\026FormatConversionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentInputCon" + - "fig\022A\n\ngcs_source\030\001 \001(\0132+.google.cloud.t" + - "ranslation.v3beta1.GcsSourceH\000B\010\n\006source" + - "\"w\n\031BatchDocumentOutputConfig\022K\n\017gcs_des" + - "tination\030\001 \001(\01320.google.cloud.translatio" + - "n.v3beta1.GcsDestinationH\000B\r\n\013destinatio" + - "n\"\331\002\n\036BatchTranslateDocumentResponse\022\023\n\013" + - "total_pages\030\001 \001(\003\022\030\n\020translated_pages\030\002 " + - "\001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024total_billa" + - "ble_pages\030\004 \001(\003\022\030\n\020total_characters\030\005 \001(" + - "\003\022\035\n\025translated_characters\030\006 \001(\003\022\031\n\021fail" + - "ed_characters\030\007 \001(\003\022!\n\031total_billable_ch" + - "aracters\030\010 \001(\003\022/\n\013submit_time\030\t \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022,\n\010end_time\030\n \001(" + - "\0132\032.google.protobuf.Timestamp\"\351\003\n\036BatchT" + - "ranslateDocumentMetadata\022U\n\005state\030\001 \001(\0162" + - "F.google.cloud.translation.v3beta1.Batch" + - "TranslateDocumentMetadata.State\022\023\n\013total" + - "_pages\030\002 \001(\003\022\030\n\020translated_pages\030\003 \001(\003\022\024" + - "\n\014failed_pages\030\004 \001(\003\022\034\n\024total_billable_p" + - "ages\030\005 \001(\003\022\030\n\020total_characters\030\006 \001(\003\022\035\n\025" + - "translated_characters\030\007 \001(\003\022\031\n\021failed_ch" + - "aracters\030\010 \001(\003\022!\n\031total_billable_charact" + - "ers\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032.google." + - "protobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNS" + - "PECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + - "\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + - "\0052\302\024\n\022TranslationService\022\364\001\n\rTranslateTe" + - "xt\0226.google.cloud.translation.v3beta1.Tr" + - "anslateTextRequest\0327.google.cloud.transl" + - "ation.v3beta1.TranslateTextResponse\"r\202\323\344" + - "\223\002l\"6/v3beta1/{parent=projects/*/locatio" + - "ns/*}:translateText:\001*Z/\"*/v3beta1/{pare" + - "nt=projects/*}:translateText:\001*\022\223\002\n\016Dete" + - "ctLanguage\0227.google.cloud.translation.v3" + - "beta1.DetectLanguageRequest\0328.google.clo" + - "ud.translation.v3beta1.DetectLanguageRes" + - "ponse\"\215\001\332A\026parent,model,mime_type\202\323\344\223\002n\"" + - "7/v3beta1/{parent=projects/*/locations/*" + - "}:detectLanguage:\001*Z0\"+/v3beta1/{parent=" + - "projects/*}:detectLanguage:\001*\022\253\002\n\025GetSup" + - "portedLanguages\022>.google.cloud.translati" + - "on.v3beta1.GetSupportedLanguagesRequest\032" + - "4.google.cloud.translation.v3beta1.Suppo" + - "rtedLanguages\"\233\001\332A\"parent,display_langua" + - "ge_code,model\202\323\344\223\002p\022;/v3beta1/{parent=pr" + - "ojects/*/locations/*}/supportedLanguages" + - "Z1\022//v3beta1/{parent=projects/*}/support" + - "edLanguages\022\323\001\n\021TranslateDocument\022:.goog" + - "le.cloud.translation.v3beta1.TranslateDo" + - "cumentRequest\032;.google.cloud.translation" + - ".v3beta1.TranslateDocumentResponse\"E\202\323\344\223" + - "\002?\":/v3beta1/{parent=projects/*/location" + - "s/*}:translateDocument:\001*\022\353\001\n\022BatchTrans" + - "lateText\022;.google.cloud.translation.v3be" + - "ta1.BatchTranslateTextRequest\032\035.google.l" + - "ongrunning.Operation\"y\312A0\n\026BatchTranslat" + - "eResponse\022\026BatchTranslateMetadata\202\323\344\223\002@\"" + - ";/v3beta1/{parent=projects/*/locations/*" + - "}:batchTranslateText:\001*\022\330\002\n\026BatchTransla" + - "teDocument\022?.google.cloud.translation.v3" + - "beta1.BatchTranslateDocumentRequest\032\035.go" + - "ogle.longrunning.Operation\"\335\001\312A@\n\036BatchT" + - "ranslateDocumentResponse\022\036BatchTranslate" + - "DocumentMetadata\332AMparent,source_languag" + - "e_code,target_language_codes,input_confi" + - "gs,output_config\202\323\344\223\002D\"?/v3beta1/{parent" + - "=projects/*/locations/*}:batchTranslateD" + - "ocument:\001*\022\346\001\n\016CreateGlossary\0227.google.c" + - "loud.translation.v3beta1.CreateGlossaryR" + - "equest\032\035.google.longrunning.Operation\"|\312" + - "A\"\n\010Glossary\022\026CreateGlossaryMetadata\332A\017p" + - "arent,glossary\202\323\344\223\002?\"3/v3beta1/{parent=p" + - "rojects/*/locations/*}/glossaries:\010gloss" + - "ary\022\320\001\n\016ListGlossaries\0227.google.cloud.tr" + - "anslation.v3beta1.ListGlossariesRequest\032" + - "8.google.cloud.translation.v3beta1.ListG" + - "lossariesResponse\"K\332A\rparent,filter\202\323\344\223\002" + - "5\0223/v3beta1/{parent=projects/*/locations" + - "/*}/glossaries\022\263\001\n\013GetGlossary\0224.google." + - "cloud.translation.v3beta1.GetGlossaryReq" + - "uest\032*.google.cloud.translation.v3beta1." + - "Glossary\"B\332A\004name\202\323\344\223\0025\0223/v3beta1/{name=" + - "projects/*/locations/*/glossaries/*}\022\337\001\n" + - "\016DeleteGlossary\0227.google.cloud.translati" + - "on.v3beta1.DeleteGlossaryRequest\032\035.googl" + - "e.longrunning.Operation\"u\312A0\n\026DeleteGlos" + - "saryResponse\022\026DeleteGlossaryMetadata\332A\004n" + - "ame\202\323\344\223\0025*3/v3beta1/{name=projects/*/loc" + - "ations/*/glossaries/*}\032~\312A\030translate.goo" + - "gleapis.com\322A`https://www.googleapis.com" + - "/auth/cloud-platform,https://www.googlea" + - "pis.com/auth/cloud-translationB\360\001\n\"com.g" + - "oogle.cloud.translate.v3beta1B\027Translati" + - "onServiceProtoP\001ZFcloud.google.com/go/tr" + - "anslation/apiv3beta1/translationpb;trans" + - "lationpb\370\001\001\252\002\036Google.Cloud.Translate.V3B" + - "eta1\312\002\036Google\\Cloud\\Translate\\V3beta1\352\002!" + - "Google::Cloud::Translate::V3beta1b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, - new java.lang.String[] { "Glossary", "IgnoreCase", }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor, - new java.lang.String[] { "Contents", "MimeType", "SourceLanguageCode", "TargetLanguageCode", "Parent", "Model", "GlossaryConfig", "Labels", }); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateTextResponse_descriptor, - new java.lang.String[] { "Translations", "GlossaryTranslations", }); - internal_static_google_cloud_translation_v3beta1_Translation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_translation_v3beta1_Translation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Translation_descriptor, - new java.lang.String[] { "TranslatedText", "Model", "DetectedLanguageCode", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor, - new java.lang.String[] { "Parent", "Model", "Content", "MimeType", "Labels", "Source", }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "Confidence", }); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DetectLanguageResponse_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetSupportedLanguagesRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayLanguageCode", "Model", }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguages_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_SupportedLanguage_descriptor, - new java.lang.String[] { "LanguageCode", "DisplayName", "SupportSource", "SupportTarget", }); - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_translation_v3beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsSource_descriptor, - new java.lang.String[] { "InputUri", }); - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_translation_v3beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_InputConfig_descriptor, - new java.lang.String[] { "MimeType", "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_translation_v3beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GcsDestination_descriptor, - new java.lang.String[] { "OutputUriPrefix", }); - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_translation_v3beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentInputConfig_descriptor, - new java.lang.String[] { "Content", "GcsSource", "MimeType", "Source", }); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "MimeType", "Destination", }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCode", "DocumentInputConfig", "DocumentOutputConfig", "Model", "GlossaryConfig", "Labels", }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DocumentTranslation_descriptor, - new java.lang.String[] { "ByteStreamOutputs", "MimeType", "DetectedLanguageCode", }); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_TranslateDocumentResponse_descriptor, - new java.lang.String[] { "DocumentTranslation", "GlossaryDocumentTranslation", "Model", "GlossaryConfig", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "Models", "InputConfigs", "OutputConfig", "Glossaries", "Labels", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateTextRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateMetadata_descriptor, - new java.lang.String[] { "State", "TranslatedCharacters", "FailedCharacters", "TotalCharacters", "SubmitTime", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateResponse_descriptor, - new java.lang.String[] { "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GlossaryInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_translation_v3beta1_Glossary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor, - new java.lang.String[] { "Name", "LanguagePair", "LanguageCodesSet", "InputConfig", "EntryCount", "SubmitTime", "EndTime", "Languages", }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodePair_descriptor, - new java.lang.String[] { "SourceLanguageCode", "TargetLanguageCode", }); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor = - internal_static_google_cloud_translation_v3beta1_Glossary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_Glossary_LanguageCodesSet_descriptor, - new java.lang.String[] { "LanguageCodes", }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryRequest_descriptor, - new java.lang.String[] { "Parent", "Glossary", }); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_GetGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_ListGlossariesResponse_descriptor, - new java.lang.String[] { "Glossaries", "NextPageToken", }); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_CreateGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryMetadata_descriptor, - new java.lang.String[] { "Name", "State", "SubmitTime", }); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_DeleteGlossaryResponse_descriptor, - new java.lang.String[] { "Name", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor, - new java.lang.String[] { "Parent", "SourceLanguageCode", "TargetLanguageCodes", "InputConfigs", "OutputConfig", "Models", "Glossaries", "FormatConversions", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_GlossariesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor = - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_FormatConversionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentInputConfig_descriptor, - new java.lang.String[] { "GcsSource", "Source", }); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchDocumentOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentResponse_descriptor, - new java.lang.String[] { "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", "EndTime", }); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor, - new java.lang.String[] { "State", "TotalPages", "TranslatedPages", "FailedPages", "TotalBillablePages", "TotalCharacters", "TranslatedCharacters", "FailedCharacters", "TotalBillableCharacters", "SubmitTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}